ActionListener, MouseListener, MouseMotionListener, MouseWheelListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ChangeListenerpublic class ColorWheelPanel extends AbstractColorChooserPanel implements ActionListener, MouseListener, MouseMotionListener, MouseWheelListener, ChangeListener
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategyContainer.AccessibleAWTContainerJComponent.AccessibleJComponentJPanel.AccessibleJPanel| Modifier and Type | Field | Description |
|---|---|---|
static int |
ALWAYS_ADJUST |
|
static int |
ANALOGIC_SCHEME |
|
protected JTextField |
baseColorEdit |
|
protected JLabel |
baseColorLabel |
|
protected Ellipse2D |
borderCircle |
|
protected JTextField |
brightEdit |
|
protected JSlider |
brightnessSlider |
|
protected ModelColor |
chooserColor |
|
static int |
CONTRASTING_SCHEME |
|
static int |
CTRL_ADJUST |
|
protected JCheckBox |
decimalRGB |
|
static int |
DOUBLE_CONTRAST_SCHEME |
|
protected JPanel |
fixedPanel |
|
protected Font |
font9pt |
|
protected JTextField |
hueEdit |
|
protected org.pushingpixels.substance.internal.contrib.xoetrope.editor.color.ColorWheelPanel.ColorWheel |
imagePicker |
|
protected Ellipse2D |
innerCircle |
|
static int |
MONOCHROMATIC_SCHEME |
|
static int |
NEVER_ADJUST |
|
protected Ellipse2D |
outerCircle |
|
protected BufferedImage |
pickerImage |
|
protected JButton |
resetBtn |
|
protected JTextField |
satEdit |
|
protected JSlider |
saturationSlider |
|
protected ModelColor[] |
selectedIttenColours |
|
static int |
SOFT_CONTRAST_SCHEME |
|
protected JCheckBox |
useWebColors |
TRANSPARENCY_ENABLED_PROPERTYaccessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTHlistenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Constructor | Description |
|---|---|
ColorWheelPanel() |
Creates a new instance of ColorWheelPanel
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
actionPerformed(ActionEvent e) |
Respond to action events for the edit fields
|
void |
addChangeListener(ChangeListener l) |
Add a listener for changes in the selected color
|
protected void |
buildChooser() |
|
int |
getAdjustWheel() |
Get the adjust color wheel flag.
|
int |
getBrightness() |
Get the selected colors brightness
|
ModelColor |
getChooserColour() |
Get the chooser color
|
Color |
getColor() |
Get the selected color
|
String |
getDisplayName() |
|
int |
getHue() |
Get the selected colors hue
|
Icon |
getLargeDisplayIcon() |
|
Dimension |
getPreferredSize() |
|
boolean |
getRollover() |
Get the adjust rollover color flag.
|
int |
getSaturation() |
Get the selected colors saturation
|
Icon |
getSmallDisplayIcon() |
|
Color |
getSystemColor(String temp) |
Get the named system color
|
void |
installChooserPanel(JColorChooser enclosingChooser) |
|
void |
mouseClicked(MouseEvent e) |
Invoked when the mouse button has been clicked (pressed and released) on
a component.
|
void |
mouseDragged(MouseEvent e) |
Invoked when the mouse exits a component.
|
void |
mouseEntered(MouseEvent e) |
Invoked when the mouse enters a component.
|
void |
mouseExited(MouseEvent e) |
Invoked when the mouse exits a component.
|
void |
mouseMoved(MouseEvent e) |
Invoked when the mouse exits a component.
|
void |
mousePressed(MouseEvent e) |
Invoked when a mouse button has been pressed on a component.
|
void |
mouseReleased(MouseEvent e) |
Invoked when a mouse button has been released on a component.
|
void |
mouseWheelMoved(MouseWheelEvent e) |
Move the sliders in rsponse to the mouse wheel
|
void |
removeChangeListener(ChangeListener l) |
Remove a change listener
|
void |
resetColorWheel() |
Reset the brightness and saturation multipliers for the ColorWheel.
|
void |
setAdjustWheel(int state) |
Set the adjust color wheel flag.
|
void |
setColor(Color c) |
|
void |
setColorScheme(int scheme) |
Set the Itten color scheme to use
|
void |
setDisplayScheme(boolean disp) |
Set the display of the color scheme markers.
|
void |
setHue(int h) |
Set the selected hue
|
static void |
setLabelBundle(ResourceBundle labelBundle) |
|
void |
setRollover(boolean state) |
Set the adjust rollover color flag.
|
void |
setSelectedColors(ModelColor[] clrs) |
Set the reference to the selected colours for the colour scheme
|
void |
stateChanged(ChangeEvent e) |
Invoked when the target of the listener has changed its state.
|
void |
updateChooser() |
|
boolean |
useDecimalRGB() |
Has the user selected the use decimal rgb checkbox?
|
boolean |
useWebColors() |
Has the user selected the use web safe colors checkbox?
|
getColorFromModel, getColorSelectionModel, getDisplayedMnemonicIndex, getMnemonic, isColorTransparencySelectionEnabled, paint, setColorTransparencySelectionEnabled, uninstallChooserPanelaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleadd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updategetAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIpublic static final int MONOCHROMATIC_SCHEME
public static final int CONTRASTING_SCHEME
public static final int SOFT_CONTRAST_SCHEME
public static final int DOUBLE_CONTRAST_SCHEME
public static final int ANALOGIC_SCHEME
public static final int CTRL_ADJUST
public static final int ALWAYS_ADJUST
public static final int NEVER_ADJUST
protected JTextField hueEdit
protected JTextField satEdit
protected JTextField brightEdit
protected JTextField baseColorEdit
protected BufferedImage pickerImage
protected org.pushingpixels.substance.internal.contrib.xoetrope.editor.color.ColorWheelPanel.ColorWheel imagePicker
protected JPanel fixedPanel
protected JButton resetBtn
protected JSlider brightnessSlider
protected JSlider saturationSlider
protected JLabel baseColorLabel
protected Ellipse2D innerCircle
protected Ellipse2D outerCircle
protected Ellipse2D borderCircle
protected JCheckBox useWebColors
protected JCheckBox decimalRGB
protected Font font9pt
protected ModelColor chooserColor
protected ModelColor[] selectedIttenColours
public ColorWheelPanel()
public void setSelectedColors(ModelColor[] clrs)
clrs - the colorspublic void addChangeListener(ChangeListener l)
l - the change listener to addpublic void removeChangeListener(ChangeListener l)
l - the change listener to removepublic boolean useDecimalRGB()
public boolean useWebColors()
public void setDisplayScheme(boolean disp)
disp - true to display the color scheme markers.public int getHue()
public void setHue(int h)
h - the selected hue in the range 0-255public int getSaturation()
public int getBrightness()
public void setColorScheme(int scheme)
scheme - public void setColor(Color c)
public Color getColor()
public ModelColor getChooserColour()
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenerpublic void mousePressed(MouseEvent e)
mousePressed in interface MouseListenerpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenerpublic void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenerpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenerpublic void mouseMoved(MouseEvent e)
mouseMoved in interface MouseMotionListenerpublic void mouseWheelMoved(MouseWheelEvent e)
mouseWheelMoved in interface MouseWheelListenerpublic void mouseDragged(MouseEvent e)
mouseDragged in interface MouseMotionListenerpublic void stateChanged(ChangeEvent e)
stateChanged in interface ChangeListenere - a ChangeEvent objectprotected void buildChooser()
buildChooser in class AbstractColorChooserPanelpublic String getDisplayName()
getDisplayName in class AbstractColorChooserPanelpublic Icon getLargeDisplayIcon()
getLargeDisplayIcon in class AbstractColorChooserPanelpublic Icon getSmallDisplayIcon()
getSmallDisplayIcon in class AbstractColorChooserPanelpublic Dimension getPreferredSize()
getPreferredSize in class JComponentpublic void updateChooser()
updateChooser in class AbstractColorChooserPanelpublic void installChooserPanel(JColorChooser enclosingChooser)
installChooserPanel in class AbstractColorChooserPanelpublic static void setLabelBundle(ResourceBundle labelBundle)
public Color getSystemColor(String temp)
temp - the color namepublic int getAdjustWheel()
public void setAdjustWheel(int state)
state - the color wheel's new adjustment mode ( CTRL_ADJUST |
ALWAYS_ADJUST | NEVER_ADJUST );public boolean getRollover()
public void setRollover(boolean state)
state - the rollover's new adjustment mode ( true | false );public void resetColorWheel()