Class RJColorPanel

    • Constructor Detail

      • RJColorPanel

        public RJColorPanel()
        Creates a new color panel.
    • Method Detail

      • getShared

        public static RJColorPanel getShared()
        Returns the shared instance of the color panel.
      • getSharedClass

        public static java.lang.Class getSharedClass()
        Returns the class for the shared instance of color panel.
      • setSharedClass

        public static void setSharedClass​(java.lang.Class aClass)
        Sets the class for the shared instanceof color panel.
      • getColor

        public java.awt.Color getColor()
        Returns the current color of the color panel.
      • setColor

        public void setColor​(java.awt.Color aColor)
        Sets the current color of the color panel.
      • addRecentColor

        public void addRecentColor​(java.awt.Color aColor)
        Add to the list of Recent Colors shown on the Color Panel
      • getColorWell

        public RJColorWell getColorWell()
        Returns the currently selected color well.
      • setColorWell

        public void setColorWell​(RJColorWell aColorWell)
        Sets the currently selected color well.
      • getSelectedPicker

        public int getSelectedPicker()
        Returns the selected picker (0=Image, 1=RGB Sliders, 2=Gray Sliders, 3=SwatchPicker).
      • setSelectedPicker

        public void setSelectedPicker​(int aPicker)
        Sets the selected picker (0=Image, 1=RGB Sliders, 2=Gray Sliders, 3=SwatchPicker).
      • initUI

        protected void initUI()
        Initialize UI panel.
        Overrides:
        initUI in class UIOwner<SwingEvent,​javax.swing.JComponent>
      • resetUI

        public void resetUI()
        Resets UI controls.
        Overrides:
        resetUI in class UIOwner<SwingEvent,​javax.swing.JComponent>
      • installGradientUI

        public static void installGradientUI​(javax.swing.JSlider aSlider)
        Install Gradient UI in slider.