Class HexEditor

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, ScrollPaneConstants

public class HexEditor extends JScrollPane
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • PROPERTY_ALTERNATE_COLUMN_BG

      public static final String PROPERTY_ALTERNATE_COLUMN_BG
      See Also:
    • PROPERTY_ALTERNATE_ROW_BG

      public static final String PROPERTY_ALTERNATE_ROW_BG
      See Also:
    • PROPERTY_ASCII_DUMP_HIGHLIGHT_COLOR

      public static final String PROPERTY_ASCII_DUMP_HIGHLIGHT_COLOR
      See Also:
    • PROPERTY_HIGHLIGHT_ASCII_DUMP

      public static final String PROPERTY_HIGHLIGHT_ASCII_DUMP
      See Also:
    • PROPERTY_SHOW_GRID

      public static final String PROPERTY_SHOW_GRID
      See Also:
    • table

      private HexTable table
    • alternateRowBackground

      private boolean alternateRowBackground
    • alternateColumnBackground

      private boolean alternateColumnBackground
    • highlightSelectionInAsciiDump

      private boolean highlightSelectionInAsciiDump
    • highlightSelectionInAsciiDumpColor

      private Color highlightSelectionInAsciiDumpColor
    • DEFAULT_TRANSFER_HANDLER

      private static final TransferHandler DEFAULT_TRANSFER_HANDLER
    • DUMP_COLUMN_WIDTH

      static final int DUMP_COLUMN_WIDTH
      See Also:
  • Constructor Details

    • HexEditor

      public HexEditor()
  • Method Details

    • addHexEditorListener

      public void addHexEditorListener(HexEditorListener l)
    • cellToOffset

      public int cellToOffset(int row, int col)
    • copy

      public void copy()
    • cut

      public void cut()
    • delete

      public void delete()
    • fireHexEditorEvent

      protected void fireHexEditorEvent(int offset, int added, int removed)
    • getAlternateColumnBackground

      public boolean getAlternateColumnBackground()
    • getAlternateRowBackground

      public boolean getAlternateRowBackground()
    • getByte

      public byte getByte(int offset)
    • getByteCount

      public int getByteCount()
    • getHighlightSelectionInAsciiDump

      public boolean getHighlightSelectionInAsciiDump()
    • getHighlightSelectionInAsciiDumpColor

      public Color getHighlightSelectionInAsciiDumpColor()
    • getLargestSelectionIndex

      public int getLargestSelectionIndex()
    • getSmallestSelectionIndex

      public int getSmallestSelectionIndex()
    • getTable

      HexTable getTable()
    • addKeyListenerToTable

      public void addKeyListenerToTable(KeyListener l)
    • getTableFocus

      public JComponent getTableFocus()
    • invokeAction

      private void invokeAction(Action a)
    • offsetToCell

      public Point offsetToCell(int offset)
    • get

      public byte[] get()
    • set

      public void set(byte[] b) throws Exception
      Throws:
      Exception
    • open

      public void open(InputStream in) throws IOException
      Throws:
      IOException
    • paste

      public void paste()
    • redo

      public boolean redo()
    • removeBytes

      public void removeBytes(int offs, int len)
    • removeHexEditorListener

      public void removeHexEditorListener(HexEditorListener l)
    • replaceBytes

      public void replaceBytes(int offset, int len, byte[] bytes)
    • replaceSelection

      public void replaceSelection(byte[] bytes)
    • setAlternateColumnBackground

      public void setAlternateColumnBackground(boolean alternate)
    • setAlternateRowBackground

      public void setAlternateRowBackground(boolean alternate)
    • setHighlightSelectionInAsciiDump

      public void setHighlightSelectionInAsciiDump(boolean highlight)
    • setHighlightSelectionInAsciiDumpColor

      public void setHighlightSelectionInAsciiDumpColor(Color c)
    • setSelectedRange

      public void setSelectedRange(int startOffs, int endOffs)
    • setShowColumnHeader

      public void setShowColumnHeader(boolean show)
    • setShowGrid

      public void setShowGrid(boolean show)
    • setShowRowHeader

      public void setShowRowHeader(boolean show)
    • undo

      public boolean undo()