Package com.inductiveautomation.rm.swing
Class RJColorPanel
- java.lang.Object
- 
- com.inductiveautomation.snap.ui.UIOwner<SwingEvent,javax.swing.JComponent>
- 
- com.inductiveautomation.snap.swing.SwingOwner
- 
- com.inductiveautomation.rm.swing.RJColorPanel
 
 
 
- 
- Direct Known Subclasses:
- AttributesPanel.APColorPanel
 
 public class RJColorPanel extends SwingOwner This class provides Swing UI for selecting a color.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classRJColorPanel.ImagePickerLabelAn inner class to act as an image color picker.
 - 
Field Summary- 
Fields inherited from class com.inductiveautomation.snap.ui.UIOwnerDragDrop, DragEnter, DragEvents, DragExit, DragOver, KeyEvents, KeyFinished, KeyPressed, KeyReleased, KeyTyped, MouseClicked, MouseDragged, MouseEntered, MouseEvents, MouseExited, MouseFinished, MouseMoved, MousePressed, MouseReleased
 
- 
 - 
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.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.protected voidinitUI()Initialize UI panel.static voidinstallGradientUI(javax.swing.JSlider aSlider)Install Gradient UI in slider.voidresetUI()Resets UI controls.voidrespondUI(SwingEvent anEvent)Responds to changes to the UI controls.voidsetColor(java.awt.Color aColor)Sets the current color of the color panel.voidsetColorWell(RJColorWell aColorWell)Sets the currently selected color well.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.- 
Methods inherited from class com.inductiveautomation.snap.swing.SwingOwneraddKeyActionEvent, createTimer, createUI, createUI, createWindow, getNode, getNode, getNodeHelper, getTimer, getTimer, getUI, getWindow, isEventThread, isWindowVisible, requestFocus, requestFocusImpl, runLater, sendEvent, setWindowVisible
 - 
Methods inherited from class com.inductiveautomation.snap.ui.UIOwneraddNodeBinding, 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
 
- 
 
- 
- 
- 
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.
 - 
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.
 - 
addRecentColorpublic void addRecentColor(java.awt.Color aColor) Add to the list of Recent Colors shown on the Color Panel
 - 
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).
 - 
initUIprotected void initUI() Initialize UI panel.- Overrides:
- initUIin class- UIOwner<SwingEvent,javax.swing.JComponent>
 
 - 
resetUIpublic void resetUI() Resets UI controls.- Overrides:
- resetUIin class- UIOwner<SwingEvent,javax.swing.JComponent>
 
 - 
respondUIpublic void respondUI(SwingEvent anEvent) Responds to changes to the UI controls.- Overrides:
- respondUIin class- UIOwner<SwingEvent,javax.swing.JComponent>
 
 - 
installGradientUIpublic static void installGradientUI(javax.swing.JSlider aSlider) Install Gradient UI in slider.
 
- 
 
-