Class ExtCodeArea

  • All Implemented Interfaces:
    java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, org.exbin.bined.capability.CaretCapable, org.exbin.bined.capability.ClipboardCapable, org.exbin.bined.capability.CodeCharactersCaseCapable, org.exbin.bined.capability.CodeTypeCapable, org.exbin.bined.capability.EditModeCapable, org.exbin.bined.capability.CharsetCapable, org.exbin.bined.capability.RowWrappingCapable, org.exbin.bined.capability.ScrollingCapable, org.exbin.bined.capability.SelectionCapable, org.exbin.bined.capability.ViewModeCapable, org.exbin.bined.CodeAreaControl, org.exbin.bined.DataProvider, org.exbin.bined.extended.capability.ExtendedScrollingCapable, org.exbin.bined.extended.capability.PositionCodeTypeCapable, org.exbin.bined.extended.capability.ShowUnprintablesCapable, org.exbin.bined.swing.capability.AntialiasingCapable, org.exbin.bined.swing.capability.FontCapable, org.exbin.bined.swing.CodeAreaSwingControl, CaretsProfileCapable, ColorsProfileCapable, LayoutProfileCapable, ThemeProfileCapable, ExtendedCodeArea

    @ParametersAreNonnullByDefault
    public class ExtCodeArea
    extends org.exbin.bined.swing.CodeAreaCore
    implements ExtendedCodeArea, org.exbin.bined.swing.CodeAreaSwingControl
    Code area component extended code area.
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class javax.swing.JComponent

        javax.swing.JComponent.AccessibleJComponent
      • Nested classes/interfaces inherited from class java.awt.Container

        java.awt.Container.AccessibleAWTContainer
      • Nested classes/interfaces inherited from class java.awt.Component

        java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
    • Field Summary

      • Fields inherited from class javax.swing.JComponent

        listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
      • Fields inherited from class java.awt.Component

        accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
      • Fields inherited from interface java.awt.image.ImageObserver

        ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
    • Constructor Summary

      Constructors 
      Constructor Description
      ExtCodeArea()
      Creates new instance with default command handler and painter.
      ExtCodeArea​(org.exbin.bined.swing.CodeAreaCommandHandler.CodeAreaCommandHandlerFactory commandHandlerFactory)
      Creates new instance with provided command handler factory method.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addCaretMovedListener​(org.exbin.bined.CaretMovedListener caretMovedListener)  
      void addEditModeChangedListener​(org.exbin.bined.EditModeChangedListener editModeChangedListener)  
      void addScrollingListener​(org.exbin.bined.ScrollingListener scrollingListener)  
      void addSelectionChangedListener​(org.exbin.bined.SelectionChangedListener selectionChangedListener)  
      void centerOnCursor()  
      void centerOnPosition​(long dataPosition, int dataOffset, org.exbin.bined.CodeAreaSection section)  
      void centerOnPosition​(org.exbin.bined.CodeAreaCaretPosition caretPosition)  
      void clearSelection()  
      org.exbin.bined.CodeAreaCaretPosition computeMovePosition​(org.exbin.bined.CodeAreaCaretPosition position, org.exbin.bined.basic.MovementDirection direction)  
      org.exbin.bined.basic.CodeAreaScrollPosition computeScrolling​(org.exbin.bined.basic.CodeAreaScrollPosition startPosition, org.exbin.bined.basic.ScrollingDirection scrollingShift)  
      org.exbin.bined.EditOperation getActiveOperation()  
      org.exbin.bined.CodeAreaSection getActiveSection()  
      org.exbin.bined.swing.basic.AntialiasingMode getAntialiasingMode()  
      org.exbin.bined.swing.basic.DefaultCodeAreaCaret getCaret()  
      org.exbin.bined.CodeAreaCaretPosition getCaretPosition()  
      ExtendedCodeAreaCaretsProfile getCaretsProfile()
      Returns carets profile.
      org.exbin.bined.ClipboardHandlingMode getClipboardHandlingMode()  
      java.awt.Font getCodeFont()  
      org.exbin.bined.CodeCharactersCase getCodeCharactersCase()  
      int getCodeOffset()  
      org.exbin.bined.CodeType getCodeType()  
      org.exbin.bined.swing.basic.color.CodeAreaColorsProfile getColorsProfile()
      Returns colors profile.
      long getDataPosition()  
      org.exbin.bined.EditMode getEditMode()  
      org.exbin.bined.EditOperation getEditOperation()  
      org.exbin.bined.ScrollBarVisibility getHorizontalScrollBarVisibility()  
      org.exbin.bined.extended.ExtendedHorizontalScrollUnit getHorizontalScrollUnit()  
      java.nio.charset.Charset getCharset()  
      org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile getLayoutProfile()
      Returns layout profile.
      int getMaxBytesPerRow()  
      int getMaxRowPositionLength()  
      int getMinRowPositionLength()  
      int getMouseCursorShape​(int positionX, int positionY)  
      org.exbin.bined.swing.CodeAreaPainter getPainter()  
      org.exbin.bined.PositionCodeType getPositionCodeType()  
      org.exbin.bined.RowWrappingMode getRowWrapping()  
      org.exbin.bined.basic.CodeAreaScrollPosition getScrollPosition()  
      org.exbin.bined.SelectionRange getSelection()  
      org.exbin.bined.CodeAreaSelection getSelectionHandler()  
      ExtendedCodeAreaThemeProfile getThemeProfile()
      Returns theme profile.
      org.exbin.bined.ScrollBarVisibility getVerticalScrollBarVisibility()  
      org.exbin.bined.basic.VerticalScrollUnit getVerticalScrollUnit()  
      org.exbin.bined.basic.CodeAreaViewMode getViewMode()  
      int getWrappingBytesGroupSize()  
      boolean hasSelection()  
      boolean isEditable()  
      boolean isInitialized()  
      boolean isShowMirrorCursor()  
      boolean isShowUnprintables()  
      org.exbin.bined.CodeAreaCaretPosition mousePositionToClosestCaretPosition​(int positionX, int positionY, org.exbin.bined.CaretOverlapMode overflowMode)  
      protected void notifyCaretChanged()  
      protected void notifyCaretMoved()  
      void notifyDataChanged()  
      protected void notifyScrolled()  
      void notifySelectionChanged()  
      void paintComponent​(java.awt.Graphics g)  
      void removeCaretMovedListener​(org.exbin.bined.CaretMovedListener caretMovedListener)  
      void removeEditModeChangedListener​(org.exbin.bined.EditModeChangedListener editModeChangedListener)  
      void removeScrollingListener​(org.exbin.bined.ScrollingListener scrollingListener)  
      void removeSelectionChangedListener​(org.exbin.bined.SelectionChangedListener selectionChangedListener)  
      void repaint()  
      void reset()  
      void resetColors()  
      void resetPainter()  
      void revealCursor()  
      void revealPosition​(long dataPosition, int dataOffset, org.exbin.bined.CodeAreaSection section)  
      void revealPosition​(org.exbin.bined.CodeAreaCaretPosition caretPosition)  
      void setAntialiasingMode​(org.exbin.bined.swing.basic.AntialiasingMode antialiasingMode)  
      void setBorder​(javax.swing.border.Border border)  
      void setCaretPosition​(long dataPosition)  
      void setCaretPosition​(long dataPosition, int codeOffset)  
      void setCaretPosition​(org.exbin.bined.CodeAreaCaretPosition caretPosition)  
      void setCaretsProfile​(ExtendedCodeAreaCaretsProfile caretsProfile)
      Sets carets profile.
      void setClipboardHandlingMode​(org.exbin.bined.ClipboardHandlingMode clipboardHandlingMode)  
      void setCodeFont​(java.awt.Font codeFont)  
      void setCodeCharactersCase​(org.exbin.bined.CodeCharactersCase codeCharactersCase)  
      void setCodeType​(org.exbin.bined.CodeType codeType)  
      void setColorsProfile​(org.exbin.bined.swing.basic.color.CodeAreaColorsProfile colorsProfile)
      Sets colors profile.
      void setEditMode​(org.exbin.bined.EditMode editMode)  
      void setEditOperation​(org.exbin.bined.EditOperation editOperation)  
      void setHorizontalScrollBarVisibility​(org.exbin.bined.ScrollBarVisibility horizontalScrollBarVisibility)  
      void setHorizontalScrollUnit​(org.exbin.bined.extended.ExtendedHorizontalScrollUnit horizontalScrollUnit)  
      void setCharset​(java.nio.charset.Charset charset)  
      void setLayoutProfile​(org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile layoutProfile)
      Sets layout profile.
      void setMaxBytesPerRow​(int maxBytesPerRow)  
      void setMaxRowPositionLength​(int maxRowPositionLength)  
      void setMinRowPositionLength​(int minRowPositionLength)  
      void setPainter​(org.exbin.bined.swing.CodeAreaPainter painter)  
      void setPositionCodeType​(org.exbin.bined.PositionCodeType positionCodeType)  
      void setRowWrapping​(org.exbin.bined.RowWrappingMode rowWrapping)  
      void setScrollPosition​(org.exbin.bined.basic.CodeAreaScrollPosition scrollPosition)  
      void setSelection​(long start, long end)  
      void setSelection​(org.exbin.bined.SelectionRange selectionRange)  
      void setShowMirrorCursor​(boolean showMirrorCursor)  
      void setShowUnprintables​(boolean show)  
      void setThemeProfile​(ExtendedCodeAreaThemeProfile themeProfile)
      Sets theme profile.
      void setVerticalScrollBarVisibility​(org.exbin.bined.ScrollBarVisibility verticalScrollBarVisibility)  
      void setVerticalScrollUnit​(org.exbin.bined.basic.VerticalScrollUnit verticalScrollUnit)  
      void setViewMode​(org.exbin.bined.basic.CodeAreaViewMode viewMode)  
      void setWrappingBytesGroupSize​(int groupSize)  
      void updateLayout()  
      protected void updateScrollBars()  
      void updateScrollPosition​(org.exbin.bined.basic.CodeAreaScrollPosition scrollPosition)  
      void updateUI()  
      void validateCaret()  
      • Methods inherited from class org.exbin.bined.swing.CodeAreaCore

        addDataChangedListener, canPaste, copy, copyAsCode, cut, delete, getCommandHandler, getContentData, getDataSize, paste, pasteFromCode, removeDataChangedListener, selectAll, setCommandHandler, setContentData
      • Methods inherited from class javax.swing.JComponent

        addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUI, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printComponent, printChildren, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
      • Methods inherited from class java.awt.Container

        add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
      • Methods inherited from class java.awt.Component

        action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, checkImage, checkImage, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ExtCodeArea

        public ExtCodeArea()
        Creates new instance with default command handler and painter.
      • ExtCodeArea

        public ExtCodeArea​(org.exbin.bined.swing.CodeAreaCommandHandler.CodeAreaCommandHandlerFactory commandHandlerFactory)
        Creates new instance with provided command handler factory method.
        Parameters:
        commandHandlerFactory - command handler or null for default handler
    • Method Detail

      • getPainter

        @Nonnull
        public org.exbin.bined.swing.CodeAreaPainter getPainter()
      • setPainter

        public void setPainter​(org.exbin.bined.swing.CodeAreaPainter painter)
      • isInitialized

        public boolean isInitialized()
      • paintComponent

        public void paintComponent​(java.awt.Graphics g)
        Specified by:
        paintComponent in interface org.exbin.bined.swing.CodeAreaSwingControl
        Overrides:
        paintComponent in class javax.swing.JComponent
      • updateUI

        public void updateUI()
        Overrides:
        updateUI in class javax.swing.JComponent
      • setBorder

        public void setBorder​(@Nullable
                              javax.swing.border.Border border)
        Overrides:
        setBorder in class javax.swing.JComponent
      • getCaret

        @Nonnull
        public org.exbin.bined.swing.basic.DefaultCodeAreaCaret getCaret()
        Specified by:
        getCaret in interface org.exbin.bined.capability.CaretCapable
      • isShowMirrorCursor

        public boolean isShowMirrorCursor()
        Specified by:
        isShowMirrorCursor in interface org.exbin.bined.capability.CaretCapable
      • setShowMirrorCursor

        public void setShowMirrorCursor​(boolean showMirrorCursor)
        Specified by:
        setShowMirrorCursor in interface org.exbin.bined.capability.CaretCapable
      • getMinRowPositionLength

        public int getMinRowPositionLength()
        Specified by:
        getMinRowPositionLength in interface org.exbin.bined.capability.RowWrappingCapable
      • setMinRowPositionLength

        public void setMinRowPositionLength​(int minRowPositionLength)
        Specified by:
        setMinRowPositionLength in interface org.exbin.bined.capability.RowWrappingCapable
      • getMaxRowPositionLength

        public int getMaxRowPositionLength()
        Specified by:
        getMaxRowPositionLength in interface org.exbin.bined.capability.RowWrappingCapable
      • setMaxRowPositionLength

        public void setMaxRowPositionLength​(int maxRowPositionLength)
        Specified by:
        setMaxRowPositionLength in interface org.exbin.bined.capability.RowWrappingCapable
      • getDataPosition

        public long getDataPosition()
        Specified by:
        getDataPosition in interface org.exbin.bined.capability.CaretCapable
      • getCodeOffset

        public int getCodeOffset()
        Specified by:
        getCodeOffset in interface org.exbin.bined.capability.CaretCapable
      • getActiveSection

        @Nonnull
        public org.exbin.bined.CodeAreaSection getActiveSection()
        Specified by:
        getActiveSection in interface org.exbin.bined.capability.CaretCapable
      • getCaretPosition

        @Nonnull
        public org.exbin.bined.CodeAreaCaretPosition getCaretPosition()
        Specified by:
        getCaretPosition in interface org.exbin.bined.capability.CaretCapable
      • setCaretPosition

        public void setCaretPosition​(org.exbin.bined.CodeAreaCaretPosition caretPosition)
        Specified by:
        setCaretPosition in interface org.exbin.bined.capability.CaretCapable
      • setCaretPosition

        public void setCaretPosition​(long dataPosition)
        Specified by:
        setCaretPosition in interface org.exbin.bined.capability.CaretCapable
      • setCaretPosition

        public void setCaretPosition​(long dataPosition,
                                     int codeOffset)
        Specified by:
        setCaretPosition in interface org.exbin.bined.capability.CaretCapable
      • getMouseCursorShape

        public int getMouseCursorShape​(int positionX,
                                       int positionY)
        Specified by:
        getMouseCursorShape in interface org.exbin.bined.capability.CaretCapable
      • getCodeCharactersCase

        @Nonnull
        public org.exbin.bined.CodeCharactersCase getCodeCharactersCase()
        Specified by:
        getCodeCharactersCase in interface org.exbin.bined.capability.CodeCharactersCaseCapable
      • setCodeCharactersCase

        public void setCodeCharactersCase​(org.exbin.bined.CodeCharactersCase codeCharactersCase)
        Specified by:
        setCodeCharactersCase in interface org.exbin.bined.capability.CodeCharactersCaseCapable
      • resetColors

        public void resetColors()
        Specified by:
        resetColors in interface org.exbin.bined.swing.CodeAreaSwingControl
      • getViewMode

        @Nonnull
        public org.exbin.bined.basic.CodeAreaViewMode getViewMode()
        Specified by:
        getViewMode in interface org.exbin.bined.capability.ViewModeCapable
      • setViewMode

        public void setViewMode​(org.exbin.bined.basic.CodeAreaViewMode viewMode)
        Specified by:
        setViewMode in interface org.exbin.bined.capability.ViewModeCapable
      • getCodeType

        @Nonnull
        public org.exbin.bined.CodeType getCodeType()
        Specified by:
        getCodeType in interface org.exbin.bined.capability.CodeTypeCapable
      • setCodeType

        public void setCodeType​(org.exbin.bined.CodeType codeType)
        Specified by:
        setCodeType in interface org.exbin.bined.capability.CodeTypeCapable
      • validateCaret

        public void validateCaret()
      • revealCursor

        public void revealCursor()
        Specified by:
        revealCursor in interface org.exbin.bined.capability.ScrollingCapable
      • revealPosition

        public void revealPosition​(org.exbin.bined.CodeAreaCaretPosition caretPosition)
        Specified by:
        revealPosition in interface org.exbin.bined.capability.ScrollingCapable
      • revealPosition

        public void revealPosition​(long dataPosition,
                                   int dataOffset,
                                   org.exbin.bined.CodeAreaSection section)
      • centerOnCursor

        public void centerOnCursor()
        Specified by:
        centerOnCursor in interface org.exbin.bined.capability.ScrollingCapable
      • centerOnPosition

        public void centerOnPosition​(org.exbin.bined.CodeAreaCaretPosition caretPosition)
        Specified by:
        centerOnPosition in interface org.exbin.bined.capability.ScrollingCapable
      • centerOnPosition

        public void centerOnPosition​(long dataPosition,
                                     int dataOffset,
                                     org.exbin.bined.CodeAreaSection section)
      • mousePositionToClosestCaretPosition

        @Nonnull
        public org.exbin.bined.CodeAreaCaretPosition mousePositionToClosestCaretPosition​(int positionX,
                                                                                         int positionY,
                                                                                         org.exbin.bined.CaretOverlapMode overflowMode)
        Specified by:
        mousePositionToClosestCaretPosition in interface org.exbin.bined.capability.CaretCapable
      • computeMovePosition

        @Nonnull
        public org.exbin.bined.CodeAreaCaretPosition computeMovePosition​(org.exbin.bined.CodeAreaCaretPosition position,
                                                                         org.exbin.bined.basic.MovementDirection direction)
        Specified by:
        computeMovePosition in interface org.exbin.bined.capability.CaretCapable
      • computeScrolling

        @Nonnull
        public org.exbin.bined.basic.CodeAreaScrollPosition computeScrolling​(org.exbin.bined.basic.CodeAreaScrollPosition startPosition,
                                                                             org.exbin.bined.basic.ScrollingDirection scrollingShift)
        Specified by:
        computeScrolling in interface org.exbin.bined.capability.ScrollingCapable
      • updateScrollBars

        protected void updateScrollBars()
      • getScrollPosition

        @Nonnull
        public org.exbin.bined.basic.CodeAreaScrollPosition getScrollPosition()
        Specified by:
        getScrollPosition in interface org.exbin.bined.capability.ScrollingCapable
      • setScrollPosition

        public void setScrollPosition​(org.exbin.bined.basic.CodeAreaScrollPosition scrollPosition)
        Specified by:
        setScrollPosition in interface org.exbin.bined.capability.ScrollingCapable
      • updateScrollPosition

        public void updateScrollPosition​(org.exbin.bined.basic.CodeAreaScrollPosition scrollPosition)
        Specified by:
        updateScrollPosition in interface org.exbin.bined.swing.CodeAreaSwingControl
      • getVerticalScrollBarVisibility

        @Nonnull
        public org.exbin.bined.ScrollBarVisibility getVerticalScrollBarVisibility()
        Specified by:
        getVerticalScrollBarVisibility in interface org.exbin.bined.extended.capability.ExtendedScrollingCapable
      • setVerticalScrollBarVisibility

        public void setVerticalScrollBarVisibility​(org.exbin.bined.ScrollBarVisibility verticalScrollBarVisibility)
        Specified by:
        setVerticalScrollBarVisibility in interface org.exbin.bined.extended.capability.ExtendedScrollingCapable
      • getVerticalScrollUnit

        @Nonnull
        public org.exbin.bined.basic.VerticalScrollUnit getVerticalScrollUnit()
        Specified by:
        getVerticalScrollUnit in interface org.exbin.bined.extended.capability.ExtendedScrollingCapable
      • setVerticalScrollUnit

        public void setVerticalScrollUnit​(org.exbin.bined.basic.VerticalScrollUnit verticalScrollUnit)
        Specified by:
        setVerticalScrollUnit in interface org.exbin.bined.extended.capability.ExtendedScrollingCapable
      • getHorizontalScrollBarVisibility

        @Nonnull
        public org.exbin.bined.ScrollBarVisibility getHorizontalScrollBarVisibility()
        Specified by:
        getHorizontalScrollBarVisibility in interface org.exbin.bined.extended.capability.ExtendedScrollingCapable
      • setHorizontalScrollBarVisibility

        public void setHorizontalScrollBarVisibility​(org.exbin.bined.ScrollBarVisibility horizontalScrollBarVisibility)
        Specified by:
        setHorizontalScrollBarVisibility in interface org.exbin.bined.extended.capability.ExtendedScrollingCapable
      • getHorizontalScrollUnit

        @Nonnull
        public org.exbin.bined.extended.ExtendedHorizontalScrollUnit getHorizontalScrollUnit()
        Specified by:
        getHorizontalScrollUnit in interface org.exbin.bined.extended.capability.ExtendedScrollingCapable
      • setHorizontalScrollUnit

        public void setHorizontalScrollUnit​(org.exbin.bined.extended.ExtendedHorizontalScrollUnit horizontalScrollUnit)
        Specified by:
        setHorizontalScrollUnit in interface org.exbin.bined.extended.capability.ExtendedScrollingCapable
      • reset

        public void reset()
        Specified by:
        reset in interface org.exbin.bined.swing.CodeAreaSwingControl
      • updateLayout

        public void updateLayout()
        Specified by:
        updateLayout in interface org.exbin.bined.swing.CodeAreaSwingControl
        Specified by:
        updateLayout in class org.exbin.bined.swing.CodeAreaCore
      • repaint

        public void repaint()
        Overrides:
        repaint in class java.awt.Component
      • resetPainter

        public void resetPainter()
        Specified by:
        resetPainter in class org.exbin.bined.swing.CodeAreaCore
      • notifyCaretChanged

        protected void notifyCaretChanged()
      • notifyDataChanged

        public void notifyDataChanged()
        Overrides:
        notifyDataChanged in class org.exbin.bined.swing.CodeAreaCore
      • getAntialiasingMode

        @Nonnull
        public org.exbin.bined.swing.basic.AntialiasingMode getAntialiasingMode()
        Specified by:
        getAntialiasingMode in interface org.exbin.bined.swing.capability.AntialiasingCapable
      • setAntialiasingMode

        public void setAntialiasingMode​(org.exbin.bined.swing.basic.AntialiasingMode antialiasingMode)
        Specified by:
        setAntialiasingMode in interface org.exbin.bined.swing.capability.AntialiasingCapable
      • getSelection

        @Nonnull
        public org.exbin.bined.SelectionRange getSelection()
        Specified by:
        getSelection in interface org.exbin.bined.capability.SelectionCapable
      • setSelection

        public void setSelection​(org.exbin.bined.SelectionRange selectionRange)
        Specified by:
        setSelection in interface org.exbin.bined.capability.SelectionCapable
      • setSelection

        public void setSelection​(long start,
                                 long end)
        Specified by:
        setSelection in interface org.exbin.bined.capability.SelectionCapable
      • clearSelection

        public void clearSelection()
        Specified by:
        clearSelection in interface org.exbin.bined.CodeAreaControl
        Specified by:
        clearSelection in interface org.exbin.bined.capability.SelectionCapable
        Overrides:
        clearSelection in class org.exbin.bined.swing.CodeAreaCore
      • hasSelection

        public boolean hasSelection()
        Specified by:
        hasSelection in interface org.exbin.bined.CodeAreaControl
        Specified by:
        hasSelection in interface org.exbin.bined.capability.SelectionCapable
        Overrides:
        hasSelection in class org.exbin.bined.swing.CodeAreaCore
      • getSelectionHandler

        @Nonnull
        public org.exbin.bined.CodeAreaSelection getSelectionHandler()
        Specified by:
        getSelectionHandler in interface org.exbin.bined.capability.SelectionCapable
      • getCharset

        @Nonnull
        public java.nio.charset.Charset getCharset()
        Specified by:
        getCharset in interface org.exbin.bined.capability.CharsetCapable
      • setCharset

        public void setCharset​(java.nio.charset.Charset charset)
        Specified by:
        setCharset in interface org.exbin.bined.capability.CharsetCapable
      • isEditable

        public boolean isEditable()
        Specified by:
        isEditable in interface org.exbin.bined.capability.EditModeCapable
      • getEditMode

        @Nonnull
        public org.exbin.bined.EditMode getEditMode()
        Specified by:
        getEditMode in interface org.exbin.bined.capability.EditModeCapable
      • setEditMode

        public void setEditMode​(org.exbin.bined.EditMode editMode)
        Specified by:
        setEditMode in interface org.exbin.bined.capability.EditModeCapable
      • getActiveOperation

        @Nonnull
        public org.exbin.bined.EditOperation getActiveOperation()
        Specified by:
        getActiveOperation in interface org.exbin.bined.capability.EditModeCapable
      • getEditOperation

        @Nonnull
        public org.exbin.bined.EditOperation getEditOperation()
        Specified by:
        getEditOperation in interface org.exbin.bined.capability.EditModeCapable
      • setEditOperation

        public void setEditOperation​(org.exbin.bined.EditOperation editOperation)
        Specified by:
        setEditOperation in interface org.exbin.bined.capability.EditModeCapable
      • getClipboardHandlingMode

        @Nonnull
        public org.exbin.bined.ClipboardHandlingMode getClipboardHandlingMode()
        Specified by:
        getClipboardHandlingMode in interface org.exbin.bined.capability.ClipboardCapable
      • setClipboardHandlingMode

        public void setClipboardHandlingMode​(org.exbin.bined.ClipboardHandlingMode clipboardHandlingMode)
        Specified by:
        setClipboardHandlingMode in interface org.exbin.bined.capability.ClipboardCapable
      • getCodeFont

        @Nonnull
        public java.awt.Font getCodeFont()
        Specified by:
        getCodeFont in interface org.exbin.bined.swing.capability.FontCapable
      • setCodeFont

        public void setCodeFont​(@Nullable
                                java.awt.Font codeFont)
        Specified by:
        setCodeFont in interface org.exbin.bined.swing.capability.FontCapable
      • getPositionCodeType

        @Nonnull
        public org.exbin.bined.PositionCodeType getPositionCodeType()
        Specified by:
        getPositionCodeType in interface org.exbin.bined.extended.capability.PositionCodeTypeCapable
      • setPositionCodeType

        public void setPositionCodeType​(org.exbin.bined.PositionCodeType positionCodeType)
        Specified by:
        setPositionCodeType in interface org.exbin.bined.extended.capability.PositionCodeTypeCapable
      • getRowWrapping

        @Nonnull
        public org.exbin.bined.RowWrappingMode getRowWrapping()
        Specified by:
        getRowWrapping in interface org.exbin.bined.capability.RowWrappingCapable
      • setRowWrapping

        public void setRowWrapping​(org.exbin.bined.RowWrappingMode rowWrapping)
        Specified by:
        setRowWrapping in interface org.exbin.bined.capability.RowWrappingCapable
      • getWrappingBytesGroupSize

        public int getWrappingBytesGroupSize()
        Specified by:
        getWrappingBytesGroupSize in interface org.exbin.bined.capability.RowWrappingCapable
      • setWrappingBytesGroupSize

        public void setWrappingBytesGroupSize​(int groupSize)
        Specified by:
        setWrappingBytesGroupSize in interface org.exbin.bined.capability.RowWrappingCapable
      • getMaxBytesPerRow

        public int getMaxBytesPerRow()
        Specified by:
        getMaxBytesPerRow in interface org.exbin.bined.capability.RowWrappingCapable
      • setMaxBytesPerRow

        public void setMaxBytesPerRow​(int maxBytesPerRow)
        Specified by:
        setMaxBytesPerRow in interface org.exbin.bined.capability.RowWrappingCapable
      • getColorsProfile

        @Nullable
        public org.exbin.bined.swing.basic.color.CodeAreaColorsProfile getColorsProfile()
        Description copied from interface: ColorsProfileCapable
        Returns colors profile.
        Specified by:
        getColorsProfile in interface ColorsProfileCapable
        Returns:
        colors profile
      • setColorsProfile

        public void setColorsProfile​(org.exbin.bined.swing.basic.color.CodeAreaColorsProfile colorsProfile)
        Description copied from interface: ColorsProfileCapable
        Sets colors profile.
        Specified by:
        setColorsProfile in interface ColorsProfileCapable
        Parameters:
        colorsProfile - colors profile
      • getLayoutProfile

        @Nullable
        public org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile getLayoutProfile()
        Description copied from interface: LayoutProfileCapable
        Returns layout profile.
        Specified by:
        getLayoutProfile in interface LayoutProfileCapable
        Returns:
        layout profile
      • setLayoutProfile

        public void setLayoutProfile​(org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile layoutProfile)
        Description copied from interface: LayoutProfileCapable
        Sets layout profile.
        Specified by:
        setLayoutProfile in interface LayoutProfileCapable
        Parameters:
        layoutProfile - layout profile
      • isShowUnprintables

        public boolean isShowUnprintables()
        Specified by:
        isShowUnprintables in interface org.exbin.bined.extended.capability.ShowUnprintablesCapable
      • setShowUnprintables

        public void setShowUnprintables​(boolean show)
        Specified by:
        setShowUnprintables in interface org.exbin.bined.extended.capability.ShowUnprintablesCapable
      • notifySelectionChanged

        public void notifySelectionChanged()
      • notifyCaretMoved

        protected void notifyCaretMoved()
      • notifyScrolled

        protected void notifyScrolled()
      • addSelectionChangedListener

        public void addSelectionChangedListener​(org.exbin.bined.SelectionChangedListener selectionChangedListener)
        Specified by:
        addSelectionChangedListener in interface org.exbin.bined.capability.SelectionCapable
      • removeSelectionChangedListener

        public void removeSelectionChangedListener​(org.exbin.bined.SelectionChangedListener selectionChangedListener)
        Specified by:
        removeSelectionChangedListener in interface org.exbin.bined.capability.SelectionCapable
      • addCaretMovedListener

        public void addCaretMovedListener​(org.exbin.bined.CaretMovedListener caretMovedListener)
        Specified by:
        addCaretMovedListener in interface org.exbin.bined.capability.CaretCapable
      • removeCaretMovedListener

        public void removeCaretMovedListener​(org.exbin.bined.CaretMovedListener caretMovedListener)
        Specified by:
        removeCaretMovedListener in interface org.exbin.bined.capability.CaretCapable
      • addScrollingListener

        public void addScrollingListener​(org.exbin.bined.ScrollingListener scrollingListener)
        Specified by:
        addScrollingListener in interface org.exbin.bined.capability.ScrollingCapable
      • removeScrollingListener

        public void removeScrollingListener​(org.exbin.bined.ScrollingListener scrollingListener)
        Specified by:
        removeScrollingListener in interface org.exbin.bined.capability.ScrollingCapable
      • addEditModeChangedListener

        public void addEditModeChangedListener​(org.exbin.bined.EditModeChangedListener editModeChangedListener)
        Specified by:
        addEditModeChangedListener in interface org.exbin.bined.capability.EditModeCapable
      • removeEditModeChangedListener

        public void removeEditModeChangedListener​(org.exbin.bined.EditModeChangedListener editModeChangedListener)
        Specified by:
        removeEditModeChangedListener in interface org.exbin.bined.capability.EditModeCapable