public class RJColorPanel extends SwingOwner
Modifier and Type | Class and Description |
---|---|
static class |
RJColorPanel.ImagePickerLabel
An inner class to act as an image color picker.
|
DragDrop, DragEnter, DragEvents, DragExit, DragOver, KeyEvents, KeyFinished, KeyPressed, KeyReleased, KeyTyped, MouseClicked, MouseDragged, MouseEntered, MouseEvents, MouseExited, MouseFinished, MouseMoved, MousePressed, MouseReleased
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.
|
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.
|
protected void |
initUI()
Initialize UI panel.
|
static void |
installGradientUI(javax.swing.JSlider aSlider)
Install Gradient UI in slider.
|
void |
resetUI()
Resets UI controls.
|
void |
respondUI(SwingEvent anEvent)
Responds to changes to the 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 |
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.
|
addKeyActionEvent, createTimer, createUI, createUI, createWindow, getNode, getNode, getNodeHelper, getTimer, getTimer, getUI, getWindow, isEventThread, isWindowVisible, requestFocus, requestFocusImpl, runLater, sendEvent, setWindowVisible
addNodeBinding, disableEvents, enableEvents, getBindingModelValue, getBindingNodeValue, getConversionMap, getConversionMapKey, getConversionMaps, getConversionMapValue, getFirstFocus, getModelValue, getNode, getNodeAction, getNodeBoolValue, getNodeFloatValue, getNodeIntValue, getNodeItemDisplayKey, getNodeItems, getNodeSelectedIndex, getNodeSelectedItem, getNodeStringValue, getNodeText, getNodeValue, getUI, getUIHpr, initUI, isNodeEnabled, isNodeValueAdjusting, isSendEventDisabled, isUISet, processResetUI, processRespondUI, resetLater, resetNodeBindings, runLaterDelayed, runLaterOnce, sendEvent, sendNodeAction, setBindingModelValue, setBindingNodeValue, setFirstFocus, setModelValue, setNodeAction, setNodeEnabled, setNodeItemDisplayKey, setNodeItems, setNodeItems, setNodeSelectedIndex, setNodeSelectedItem, setNodeText, setNodeValue, setSendEventDisabled
public static RJColorPanel getShared()
public static java.lang.Class getSharedClass()
public static void setSharedClass(java.lang.Class aClass)
public java.awt.Color getColor()
public void setColor(java.awt.Color aColor)
public void addRecentColor(java.awt.Color aColor)
public RJColorWell getColorWell()
public void setColorWell(RJColorWell aColorWell)
public int getSelectedPicker()
public void setSelectedPicker(int aPicker)
protected void initUI()
initUI
in class UIOwner<SwingEvent,javax.swing.JComponent>
public void resetUI()
resetUI
in class UIOwner<SwingEvent,javax.swing.JComponent>
public void respondUI(SwingEvent anEvent)
respondUI
in class UIOwner<SwingEvent,javax.swing.JComponent>
public static void installGradientUI(javax.swing.JSlider aSlider)