Class CurveTable

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

public class CurveTable extends JTable
A table for curve data in sPlot. This table allows users to toggle the visibility of curves and edit their names. It is designed to be used within the sPlot editing interface, providing an intuitive way to manage curve properties.

The table consists of two columns: a checkbox for visibility and a text field for the curve name. The visibility column uses a custom cell renderer to display checkboxes, while the name column uses a custom renderer to display text fields with appropriate styling.

When the visibility checkbox is toggled or the curve name is edited, the plot canvas is repainted to reflect the changes immediately.

Author:
heddle
See Also:
  • Field Details

    • _listFont

      protected static Font _listFont
  • Constructor Details

    • CurveTable

      public CurveTable(PlotCanvas plotCanvas)
      Create a table for toggling visibility (probably of logical layers)
      Parameters:
      plotCanvas - the plot
  • Method Details

    • getCurveModel

      public CurveDataModel getCurveModel()
      Get the curve data model
      Returns:
      the curve data model
    • clear

      public void clear()
      Clear the data
    • getSelectedCurve

      public ACurve getSelectedCurve()
      Get the selected curve
      Returns:
      the selected curve
    • getScrollPane

      public JScrollPane getScrollPane()
      Get the scroll pane for this data table
      Returns:
      the scroll pane for this data table