Class ColorThemingStylePanel

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.vividsolutions.jump.workbench.ui.renderer.style.ColorThemingStylePanel
All Implemented Interfaces:
StylePanel, ImageObserver, MenuContainer, Serializable, Accessible

public class ColorThemingStylePanel extends JPanel implements StylePanel
A panel to choose Color Theming options. The panel includes
  • a checkbox to enable Color Theming
  • a combobox to choose Attribute
  • a combobox to choose Classification Method plus additional parameters in case of range-based classification
  • a combobox to choose a Color Scheme
  • a table to display colors with two plugins to add/remove lines
  • a slider to set the transparency
  • a slider to set lineWidth
Author:

jonathan aquino (original author)

,

obedel and ebocher (2005 - added Quantile Color Theming)

,

ssteiniger (2009 - added 3 more range-based classification methods)

,

mmichaud (2011 - debug, remove deprecated code and comments, give priority to attribute value choice instead of classification choice)

(2014 - add lineWidth parameter and vetexStyleEnabled

(2014 - manage VertexStyle with XBasicStyle, an extension of BasicStyle

See Also:
  • Field Details

    • TITLE

      public static final String TITLE
  • Constructor Details

    • ColorThemingStylePanel

      public ColorThemingStylePanel(Layer layer, WorkbenchContext workbenchContext)
  • Method Details

    • getTitle

      public String getTitle()
      Specified by:
      getTitle in interface StylePanel
    • updateStyles

      public void updateStyles()
      Specified by:
      updateStyles in interface StylePanel
    • getSynchronizeCheckBox

      public JCheckBox getSynchronizeCheckBox()
    • getLayer

      public Layer getLayer()
    • enableColorThemingCheckBox_actionPerformed

      protected void enableColorThemingCheckBox_actionPerformed(ActionEvent e)
    • tableModel

      public ColorThemingTableModel tableModel()
    • populateTable

      public void populateTable()
    • applyColorScheme

      public void applyColorScheme()
    • validateInput

      public String validateInput()
      Specified by:
      validateInput in interface StylePanel
      Returns:
      an error message, or null if the input is valid
    • getTransparencySlider

      public JSlider getTransparencySlider()
    • getLineWidthSlider

      public JSlider getLineWidthSlider()
    • getTable

      public JTable getTable()
    • getAttributeValuesCount

      public SortedMap<Object,Integer> getAttributeValuesCount()