Class 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:
    Serialized Form
    • Field Detail

      • TITLE

        public static final String TITLE
    • Constructor Detail

      • ColorThemingStylePanel

        public ColorThemingStylePanel​(Layer layer,
                                      WorkbenchContext workbenchContext)
    • Method Detail

      • getSynchronizeCheckBox

        public JCheckBox getSynchronizeCheckBox()
      • getLayer

        public Layer getLayer()
      • enableColorThemingCheckBox_actionPerformed

        protected void enableColorThemingCheckBox_actionPerformed​(ActionEvent e)
      • 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()