Package com.ribs.plus
Class RJColorPanel
- java.lang.Object
- 
- com.ribs.plus.RJColorPanel
 
- 
- Direct Known Subclasses:
- AttributesPanel.RMColorPanel
 
 public class RJColorPanel extends java.lang.ObjectThis class provides Swing UI for selecting a color.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static interfaceRJColorPanel.CPModelAn interface for the object(s) that provide and receive color panel color.static classRJColorPanel.ImagePickerLabelAn inner class to act as an image color picker.
 - 
Constructor SummaryConstructors Constructor Description RJColorPanel()Creates a new color panel.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRecentColor(java.awt.Color aColor)Add to the list of Recent Colors shown on the Color Paneljava.awt.ColorgetColor()Returns the current color of the color panel.RJColorWellgetColorWell()Returns the currently selected color well.RJColorPanel.CPModelgetModel()Returns the color panel model (the object that provides color and responds to color changes).intgetSelectedPicker()Returns the selected picker (0=Image, 1=RGB Sliders, 2=Gray Sliders, 3=SwatchPicker).static RJColorPanelgetShared()Returns the shared instance of the color panel.static java.lang.ClassgetSharedClass()Returns the class for the shared instance of color panel.RJPanelgetUI()Returns the Swing UI panel with color controls.booleanisVisible()Returns whether color panel ui window is visible.voidresetUI()Updates the Swing UI controls.voidrespondUI(java.lang.Object anObj)Responds to changes to the Swing UI controls.voidsetColor(java.awt.Color aColor)Sets the current color of the color panel.voidsetColorWell(RJColorWell aColorWell)Sets the currently selected color well.voidsetModel(java.lang.Object anObj)Sets the color panel model (the object that provides color and responds to color changes).voidsetSelectedPicker(int aPicker)Sets the selected picker (0=Image, 1=RGB Sliders, 2=Gray Sliders, 3=SwatchPicker).static voidsetSharedClass(java.lang.Class aClass)Sets the class for the shared instanceof color panel.voidsetVisible(boolean aValue)Sets the color panel visible (true==onscreen, false==offscreen).
 
- 
- 
- 
Method Detail- 
getSharedpublic static RJColorPanel getShared() Returns the shared instance of the color panel.
 - 
getSharedClasspublic static java.lang.Class getSharedClass() Returns the class for the shared instance of color panel.
 - 
setSharedClasspublic static void setSharedClass(java.lang.Class aClass) Sets the class for the shared instanceof color panel.
 - 
isVisiblepublic boolean isVisible() Returns whether color panel ui window is visible.
 - 
setVisiblepublic void setVisible(boolean aValue) Sets the color panel visible (true==onscreen, false==offscreen).
 - 
getColorpublic java.awt.Color getColor() Returns the current color of the color panel.
 - 
setColorpublic void setColor(java.awt.Color aColor) Sets the current color of the color panel.
 - 
getModelpublic RJColorPanel.CPModel getModel() Returns the color panel model (the object that provides color and responds to color changes).
 - 
setModelpublic void setModel(java.lang.Object anObj) Sets the color panel model (the object that provides color and responds to color changes).
 - 
addRecentColorpublic void addRecentColor(java.awt.Color aColor) Add to the list of Recent Colors shown on the Color Panel- Parameters:
- aColor- the color to be added
 
 - 
getColorWellpublic RJColorWell getColorWell() Returns the currently selected color well.
 - 
setColorWellpublic void setColorWell(RJColorWell aColorWell) Sets the currently selected color well.
 - 
getSelectedPickerpublic int getSelectedPicker() Returns the selected picker (0=Image, 1=RGB Sliders, 2=Gray Sliders, 3=SwatchPicker).
 - 
setSelectedPickerpublic void setSelectedPicker(int aPicker) Sets the selected picker (0=Image, 1=RGB Sliders, 2=Gray Sliders, 3=SwatchPicker).
 - 
getUIpublic RJPanel getUI() Returns the Swing UI panel with color controls.
 - 
resetUIpublic void resetUI() Updates the Swing UI controls.
 - 
respondUIpublic void respondUI(java.lang.Object anObj) Responds to changes to the Swing UI controls.
 
- 
 
-