public class RJColorPanel
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
RJColorPanel.CPModel
An interface for the object(s) that provide and receive color panel color.
|
static class |
RJColorPanel.ImagePickerLabel
An inner class to act as an image color picker.
|
Constructor and Description |
---|
RJColorPanel()
Creates a new color panel.
|
Modifier and Type | Method and Description |
---|---|
void |
addRecentColor(java.awt.Color aColor)
Add to the list of Recent Colors shown on the Color Panel
|
java.awt.Color |
getColor()
Returns the current color of the color panel.
|
RJColorWell |
getColorWell()
Returns the currently selected color well.
|
RJColorPanel.CPModel |
getModel()
Returns the color panel model (the object that provides color and responds to color changes).
|
int |
getSelectedPicker()
Returns the selected picker (0=Image, 1=RGB Sliders, 2=Gray Sliders, 3=SwatchPicker).
|
static RJColorPanel |
getShared()
Returns the shared instance of the color panel.
|
static java.lang.Class |
getSharedClass()
Returns the class for the shared instance of color panel.
|
RJPanel |
getUI()
Returns the Swing UI panel with color controls.
|
boolean |
isVisible()
Returns whether color panel ui window is visible.
|
void |
resetUI()
Updates the Swing UI controls.
|
void |
respondUI(java.lang.Object anObj)
Responds to changes to the Swing UI controls.
|
void |
setColor(java.awt.Color aColor)
Sets the current color of the color panel.
|
void |
setColorWell(RJColorWell aColorWell)
Sets the currently selected color well.
|
void |
setModel(java.lang.Object anObj)
Sets the color panel model (the object that provides color and responds to color changes).
|
void |
setSelectedPicker(int aPicker)
Sets the selected picker (0=Image, 1=RGB Sliders, 2=Gray Sliders, 3=SwatchPicker).
|
static void |
setSharedClass(java.lang.Class aClass)
Sets the class for the shared instanceof color panel.
|
void |
setVisible(boolean aValue)
Sets the color panel visible (true==onscreen, false==offscreen).
|
public static RJColorPanel getShared()
public static java.lang.Class getSharedClass()
public static void setSharedClass(java.lang.Class aClass)
public boolean isVisible()
public void setVisible(boolean aValue)
public java.awt.Color getColor()
public void setColor(java.awt.Color aColor)
public RJColorPanel.CPModel getModel()
public void setModel(java.lang.Object anObj)
public void addRecentColor(java.awt.Color aColor)
aColor
- the color to be addedpublic RJColorWell getColorWell()
public void setColorWell(RJColorWell aColorWell)
public int getSelectedPicker()
public void setSelectedPicker(int aPicker)
public RJPanel getUI()
public void resetUI()
public void respondUI(java.lang.Object anObj)