Package com.ribs.plus
Class RJColorPanel
java.lang.Object
com.ribs.plus.RJColorPanel
- Direct Known Subclasses:
- AttributesPanel.RMColorPanel
This class provides Swing UI for selecting a color.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic interfaceAn interface for the object(s) that provide and receive color panel color.static classAn inner class to act as an image color picker.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddRecentColor(Color aColor) Add to the list of Recent Colors shown on the Color PanelgetColor()Returns the current color of the color panel.Returns the currently selected color well.getModel()Returns the color panel model (the object that provides color and responds to color changes).intReturns the selected picker (0=Image, 1=RGB Sliders, 2=Gray Sliders, 3=SwatchPicker).static RJColorPanelReturns the shared instance of the color panel.static ClassReturns the class for the shared instance of color panel.getUI()Returns the Swing UI panel with color controls.booleanReturns whether color panel ui window is visible.voidresetUI()Updates the Swing UI controls.voidResponds to changes to the Swing UI controls.voidSets the current color of the color panel.voidsetColorWell(RJColorWell aColorWell) Sets the currently selected color well.voidSets 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(Class aClass) Sets the class for the shared instanceof color panel.voidsetVisible(boolean aValue) Sets the color panel visible (true==onscreen, false==offscreen).
- 
Constructor Details- 
RJColorPanelpublic RJColorPanel()Creates a new color panel.
 
- 
- 
Method Details
- 
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).
- 
getColorReturns the current color of the color panel.
- 
setColorSets the current color of the color panel.
- 
getModelReturns the color panel model (the object that provides color and responds to color changes).
- 
setModelSets the color panel model (the object that provides color and responds to color changes).
- 
addRecentColorAdd to the list of Recent Colors shown on the Color Panel- Parameters:
- aColor- the color to be added
 
- 
getColorWellReturns the currently selected color well.
- 
setColorWellSets 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).
- 
getUIReturns the Swing UI panel with color controls.
- 
resetUIpublic void resetUI()Updates the Swing UI controls.
- 
respondUIResponds to changes to the Swing UI controls.