Class ColorsTablePanel

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.openjump.core.rasterimage.styler.ui.ColorsTablePanel
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
GradientTablePanel

public class ColorsTablePanel extends JPanel
A SWING table used to represent class intervals values and corresponding colours. The colors can be changed using a color picker.
See Also:
  • Field Details

  • Constructor Details

    • ColorsTablePanel

      public ColorsTablePanel(Component parent, ColorsTablePanel.TableType tableType, ColorMapEntry[] colorMapEntries, Double noDataValue, boolean integerValues)
      Parameters:
      parent - the parent component
      tableType - the table type is Intervals or Values
      colorMapEntries - the ColorMapEntry array
      noDataValue - a double value meaning nodata
      integerValues - true if entries are precise integer values
  • Method Details

    • updateTable

      public final void updateTable(ColorMapEntry[] colorMapEntries)
    • getColorMapEntries

      public ColorMapEntry[] getColorMapEntries() throws Exception
      Throws:
      Exception
    • addRows

      public void addRows()
    • removeRow

      public void removeRow()
    • getSelectedRowsCount

      public int getSelectedRowsCount()
    • rampColors

      public void rampColors() throws Exception
      Throws:
      Exception
    • getTable

      public JTable getTable()