Class GraphPanel.LinesTable

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

protected class GraphPanel.LinesTable extends JTable
Table used to select performance indices to be drawn
Version:
Date: JAN-2015
Author:
Bertoli Marco Date: 1-giu-2006 Time: 11.01.29, Cerotti Fixed results retrieval according to reference station
See Also:
  • Constructor Details

    • LinesTable

      public LinesTable()
      Builds a new LinesTable
  • Method Details

    • columnAdded

      public void columnAdded(TableColumnModelEvent e)
      Specified by:
      columnAdded in interface TableColumnModelListener
      Overrides:
      columnAdded in class JTable
    • getCellEditor

      public TableCellEditor getCellEditor(int row, int column)
      Returns an appropriate editor for the cell specified by row and column. If the TableColumn for this column has a non-null editor, returns that. If not, finds the class of the data in this column (using getColumnClass) and returns the default editor for this type of data.

      Overrides:
      getCellEditor in class JTable
      Parameters:
      row - the row of the cell to edit, where 0 is the first row
      column - the column of the cell to edit, where 0 is the first column
      Returns:
      the editor for this cell; if null return the default editor for this type of cell
      See Also:
    • getCellRenderer

      public TableCellRenderer getCellRenderer(int row, int column)
      Returns an appropriate renderer for the cell specified by this row and column. If the TableColumn for this column has a non-null renderer, returns that. If not, finds the class of the data in this column (using getColumnClass) and returns the default renderer for this type of data.

      Note: Throughout the table package, the internal implementations always use this method to provide renderers so that this default behavior can be safely overridden by a subclass.

      Overrides:
      getCellRenderer in class JTable
      Parameters:
      row - the row of the cell to render, where 0 is the first row
      column - the column of the cell to render, where 0 is the first column
      Returns:
      the assigned renderer; if null returns the default renderer for this type of object
      See Also:
    • getModel

      public jmva.panels.GraphPanel.LinesTableModel getModel()
      Overrides:
      getModel in class JTable
    • getColumnType

      protected jmva.panels.GraphPanel.LinesTableColumn getColumnType(int columnIndex)
      Return the type of column
      Parameters:
      columnIndex - the column index
      Returns:
      the type of column
    • showColumn

      public void showColumn(jmva.panels.GraphPanel.LinesTableColumn column)
      Shows the given column
      Parameters:
      column - the column to show
    • hideColumn

      public void hideColumn(jmva.panels.GraphPanel.LinesTableColumn column)
      Hides the given column
      Parameters:
      column - the column to hide