Class RJColorPanel

Direct Known Subclasses:
AttributesPanel.APColorPanel

public class RJColorPanel extends SwingOwner
This class provides Swing UI for selecting a color.
  • Constructor Details

    • RJColorPanel

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

    • getShared

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

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

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

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

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

      public void addRecentColor(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,JComponent>
    • resetUI

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

      public void respondUI(SwingEvent anEvent)
      Responds to changes to the UI controls.
      Overrides:
      respondUI in class UIOwner<SwingEvent,JComponent>
    • installGradientUI

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