Class HexTable

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, CellEditorListener, ListSelectionListener, RowSorterListener, TableColumnModelListener, TableModelListener, Scrollable

public class HexTable extends JTable
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • hexEditor

      private final HexEditor hexEditor
    • model

      private HexTableModel model
    • leadSelectionIndex

      int leadSelectionIndex
    • anchorSelectionIndex

      int anchorSelectionIndex
    • ALTERNATING_CELL_COLOR

      private static final Color ALTERNATING_CELL_COLOR
  • Constructor Details

  • Method Details

    • adjustColumn

      private int adjustColumn(int row, int col)
    • cellToOffset

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

      public void changeSelection(int row, int col, boolean toggle, boolean extend)
      Overrides:
      changeSelection in class JTable
    • changeSelectionByOffset

      public void changeSelectionByOffset(int offset, boolean extend)
    • clearSelection

      public void clearSelection()
      Overrides:
      clearSelection in class JTable
    • ensureCellIsVisible

      private void ensureCellIsVisible(int row, int col)
    • getByte

      public byte getByte(int offset)
    • getByteCount

      public int getByteCount()
    • getLargestSelectionIndex

      public int getLargestSelectionIndex()
    • getSmallestSelectionIndex

      public int getSmallestSelectionIndex()
    • isCellEditable

      public boolean isCellEditable(int row, int col)
      Overrides:
      isCellEditable in class JTable
    • isCellSelected

      public boolean isCellSelected(int row, int col)
      Overrides:
      isCellSelected in class JTable
    • offsetToCell

      public Point offsetToCell(int offset)
    • open

      public void open(String fileName) throws IOException
      Throws:
      IOException
    • open

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

      public Component prepareRenderer(TableCellRenderer renderer, int row, int column)
      Overrides:
      prepareRenderer in class JTable
    • processKeyPressedEvent

      private void processKeyPressedEvent(KeyEvent e, boolean isExtended, int offset)
    • processKeyEvent

      protected void processKeyEvent(KeyEvent e)
      Overrides:
      processKeyEvent in class JComponent
    • redo

      public boolean redo()
    • removeBytes

      void removeBytes(int offs, int len)
    • repaintSelection

      private void repaintSelection()
    • replaceBytes

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

      public void setSelectedRows(int min, int max)
    • setSelectionByOffsets

      public void setSelectionByOffsets(int startOffs, int endOffs)
    • undo

      public boolean undo()
    • getDocBuffer

      public byte[] getDocBuffer()