Class JSColorPanel


  • public class JSColorPanel
    extends JSPanel
    The panel to show colors
    Author:
    gianpiero.diblasi
    • Constructor Detail

      • JSColorPanel

        public JSColorPanel()
        Creates the object
    • Method Detail

      • addExtraTab

        public void addExtraTab​(java.lang.String title,
                                JSAbstractColorExtraTabPanel panel)
        Adds an extra tab
        Parameters:
        title - The title
        panel - The extra tab
      • getSelectedColor

        public Color getSelectedColor()
        Returns the selected color
        Returns:
        The selected color
      • setSelectedColor

        public void setSelectedColor​(Color color)
        Sets the selected color
        Parameters:
        color - The selected color
      • setOpacityVisible

        public void setOpacityVisible​(boolean b)
        Sets the visibility of the opacity selectors
        Parameters:
        b - true to make the opacity selectors visible, false otherwise
      • getValueIsAdjusting

        public boolean getValueIsAdjusting()
        Returns if the selected color is "adjusting"
        Returns:
        true if the selected color is adjusting, false otherwise
      • addChangeListener

        public void addChangeListener​(ChangeListener listener)
        Adds a change listener
        Parameters:
        listener - The listener