|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent com.alee.extended.colorchooser.WebGradientColorChooser
public class WebGradientColorChooser
User: mgarin Date: 23.11.12 Time: 19:04
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
WebGradientColorChooser()
|
|
WebGradientColorChooser(GradientData gradientData)
|
Method Summary | ||
---|---|---|
void |
addChangeListener(javax.swing.event.ChangeListener dataChangeListener)
|
|
void |
focusGained(java.awt.event.FocusEvent e)
|
|
void |
focusLost(java.awt.event.FocusEvent e)
|
|
java.util.List<javax.swing.event.ChangeListener> |
getChangeListeners()
|
|
GradientColorData |
getColorDataUnderPoint(java.awt.Point point)
|
|
java.awt.Color |
getColorForLocation(float location)
|
|
GradientData |
getGradientData()
|
|
java.awt.Rectangle |
getGripperBounds(GradientColorData colorData)
|
|
java.awt.Rectangle |
getGripperBounds(int index)
|
|
java.awt.Dimension |
getGripperSize()
|
|
int |
getLineWidth()
|
|
float |
getLocationForPoint(java.awt.Point point)
|
|
java.awt.Insets |
getMargin()
|
|
int |
getMinimumHeight()
Returns component minimum height. |
|
int |
getMinimumWidth()
Returns component minimum width. |
|
int |
getPreferredHeight()
Returns component preferred height. |
|
java.awt.Dimension |
getPreferredSize()
Returns component preferred size. |
|
int |
getPreferredWidth()
Returns component preferred width. |
|
int |
getShadeWidth()
|
|
boolean |
isFree(float location)
|
|
boolean |
isPaintLabels()
|
|
void |
loadSettings()
Loads saved settings into the component if it is registered. |
|
void |
mouseClicked(java.awt.event.MouseEvent e)
|
|
void |
mouseDragged(java.awt.event.MouseEvent e)
|
|
void |
mouseEntered(java.awt.event.MouseEvent e)
|
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
|
void |
mouseMoved(java.awt.event.MouseEvent e)
|
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
|
protected void |
paintComponent(java.awt.Graphics g)
|
|
void |
registerSettings(SettingsProcessor settingsProcessor)
Registers component for settings auto-save. |
|
void |
registerSettings(java.lang.String key)
Registers component for settings auto-save. |
|
void |
registerSettings(java.lang.String key,
boolean loadInitialSettings,
boolean applySettingsChanges)
Registers component for settings auto-save. |
|
|
registerSettings(java.lang.String key,
java.lang.Class<T> defaultValueClass)
Registers component for settings auto-save. |
|
|
registerSettings(java.lang.String key,
java.lang.Class<T> defaultValueClass,
boolean loadInitialSettings,
boolean applySettingsChanges)
Registers component for settings auto-save. |
|
void |
registerSettings(java.lang.String key,
java.lang.Object defaultValue)
Registers component for settings auto-save. |
|
void |
registerSettings(java.lang.String key,
java.lang.Object defaultValue,
boolean loadInitialSettings,
boolean applySettingsChanges)
Registers component for settings auto-save. |
|
void |
registerSettings(java.lang.String group,
java.lang.String key)
Registers component for settings auto-save. |
|
|
registerSettings(java.lang.String group,
java.lang.String key,
java.lang.Class<T> defaultValueClass)
Registers component for settings auto-save. |
|
|
registerSettings(java.lang.String group,
java.lang.String key,
java.lang.Class<T> defaultValueClass,
boolean loadInitialSettings,
boolean applySettingsChanges)
Registers component for settings auto-save. |
|
void |
registerSettings(java.lang.String group,
java.lang.String key,
java.lang.Object defaultValue)
Registers component for settings auto-save. |
|
void |
registerSettings(java.lang.String group,
java.lang.String key,
java.lang.Object defaultValue,
boolean loadInitialSettings,
boolean applySettingsChanges)
Registers component for settings auto-save. |
|
void |
removeChangeListener(javax.swing.event.ChangeListener dataChangeListener)
|
|
void |
saveSettings()
Saves component settings. |
|
void |
setGradientData(GradientData gradientData)
|
|
void |
setGripperSize(java.awt.Dimension gripperSize)
|
|
void |
setLineWidth(int lineWidth)
|
|
void |
setMargin(java.awt.Insets margin)
|
|
void |
setMargin(int spacing)
|
|
void |
setMargin(int top,
int left,
int bottom,
int right)
|
|
WebGradientColorChooser |
setMinimumHeight(int minimumHeight)
Sets component minimum height. |
|
WebGradientColorChooser |
setMinimumWidth(int minimumWidth)
Sets component minimum width. |
|
void |
setPaintLabels(boolean paintLabels)
|
|
WebGradientColorChooser |
setPreferredHeight(int preferredHeight)
Sets component preferred height. |
|
WebGradientColorChooser |
setPreferredWidth(int preferredWidth)
Sets component preferred width. |
|
void |
setShadeWidth(int shadeWidth)
|
|
void |
unregisterSettings()
Unregisters component from settings auto-save. |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, 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, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, 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, update, updateUI |
Methods inherited from class java.awt.Container |
---|
add, 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, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
---|
action, 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, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, 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, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WebGradientColorChooser()
public WebGradientColorChooser(GradientData gradientData)
Method Detail |
---|
public void focusGained(java.awt.event.FocusEvent e)
focusGained
in interface java.awt.event.FocusListener
public void focusLost(java.awt.event.FocusEvent e)
focusLost
in interface java.awt.event.FocusListener
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public GradientColorData getColorDataUnderPoint(java.awt.Point point)
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
public boolean isFree(float location)
public java.awt.Rectangle getGripperBounds(int index)
public java.awt.Rectangle getGripperBounds(GradientColorData colorData)
public float getLocationForPoint(java.awt.Point point)
public java.awt.Color getColorForLocation(float location)
public GradientData getGradientData()
public void setGradientData(GradientData gradientData)
public int getShadeWidth()
public void setShadeWidth(int shadeWidth)
public int getLineWidth()
public void setLineWidth(int lineWidth)
public java.awt.Dimension getGripperSize()
public void setGripperSize(java.awt.Dimension gripperSize)
public java.awt.Insets getMargin()
public void setMargin(java.awt.Insets margin)
public void setMargin(int top, int left, int bottom, int right)
public void setMargin(int spacing)
public boolean isPaintLabels()
public void setPaintLabels(boolean paintLabels)
protected void paintComponent(java.awt.Graphics g)
paintComponent
in class javax.swing.JComponent
public java.util.List<javax.swing.event.ChangeListener> getChangeListeners()
public void addChangeListener(javax.swing.event.ChangeListener dataChangeListener)
public void removeChangeListener(javax.swing.event.ChangeListener dataChangeListener)
public void registerSettings(java.lang.String key)
registerSettings
in interface SettingsMethods
key
- component settings keypublic <T extends DefaultValue> void registerSettings(java.lang.String key, java.lang.Class<T> defaultValueClass)
registerSettings
in interface SettingsMethods
T
- default value typekey
- component settings keydefaultValueClass
- component default value classDefaultValue
public void registerSettings(java.lang.String key, java.lang.Object defaultValue)
registerSettings
in interface SettingsMethods
key
- component settings keydefaultValue
- component default valuepublic void registerSettings(java.lang.String group, java.lang.String key)
registerSettings
in interface SettingsMethods
group
- component settings groupkey
- component settings keypublic <T extends DefaultValue> void registerSettings(java.lang.String group, java.lang.String key, java.lang.Class<T> defaultValueClass)
registerSettings
in interface SettingsMethods
T
- default value typegroup
- component settings groupkey
- component settings keydefaultValueClass
- component default value classDefaultValue
public void registerSettings(java.lang.String group, java.lang.String key, java.lang.Object defaultValue)
registerSettings
in interface SettingsMethods
group
- component settings groupkey
- component settings keydefaultValue
- component default valuepublic void registerSettings(java.lang.String key, boolean loadInitialSettings, boolean applySettingsChanges)
registerSettings
in interface SettingsMethods
key
- component settings keyloadInitialSettings
- whether to load initial available settings into the component or notapplySettingsChanges
- whether to apply settings changes to the component or notpublic <T extends DefaultValue> void registerSettings(java.lang.String key, java.lang.Class<T> defaultValueClass, boolean loadInitialSettings, boolean applySettingsChanges)
registerSettings
in interface SettingsMethods
T
- default value typekey
- component settings keydefaultValueClass
- component default value classloadInitialSettings
- whether to load initial available settings into the component or notapplySettingsChanges
- whether to apply settings changes to the component or notDefaultValue
public void registerSettings(java.lang.String key, java.lang.Object defaultValue, boolean loadInitialSettings, boolean applySettingsChanges)
registerSettings
in interface SettingsMethods
key
- component settings keydefaultValue
- component default valueloadInitialSettings
- whether to load initial available settings into the component or notapplySettingsChanges
- whether to apply settings changes to the component or notpublic <T extends DefaultValue> void registerSettings(java.lang.String group, java.lang.String key, java.lang.Class<T> defaultValueClass, boolean loadInitialSettings, boolean applySettingsChanges)
registerSettings
in interface SettingsMethods
T
- default value typegroup
- component settings groupkey
- component settings keydefaultValueClass
- component default value classloadInitialSettings
- whether to load initial available settings into the component or notapplySettingsChanges
- whether to apply settings changes to the component or notDefaultValue
public void registerSettings(java.lang.String group, java.lang.String key, java.lang.Object defaultValue, boolean loadInitialSettings, boolean applySettingsChanges)
registerSettings
in interface SettingsMethods
group
- component settings groupkey
- component settings keydefaultValue
- component default valueloadInitialSettings
- whether to load initial available settings into the component or notapplySettingsChanges
- whether to apply settings changes to the component or notpublic void registerSettings(SettingsProcessor settingsProcessor)
registerSettings
in interface SettingsMethods
settingsProcessor
- component settings processorpublic void unregisterSettings()
unregisterSettings
in interface SettingsMethods
public void loadSettings()
loadSettings
in interface SettingsMethods
public void saveSettings()
saveSettings
in interface SettingsMethods
public int getPreferredWidth()
getPreferredWidth
in interface SizeMethods<WebGradientColorChooser>
public WebGradientColorChooser setPreferredWidth(int preferredWidth)
setPreferredWidth
in interface SizeMethods<WebGradientColorChooser>
preferredWidth
- new component preferred width
public int getPreferredHeight()
getPreferredHeight
in interface SizeMethods<WebGradientColorChooser>
public WebGradientColorChooser setPreferredHeight(int preferredHeight)
setPreferredHeight
in interface SizeMethods<WebGradientColorChooser>
preferredHeight
- new component preferred height
public int getMinimumWidth()
getMinimumWidth
in interface SizeMethods<WebGradientColorChooser>
public WebGradientColorChooser setMinimumWidth(int minimumWidth)
setMinimumWidth
in interface SizeMethods<WebGradientColorChooser>
minimumWidth
- new component minimum width
public int getMinimumHeight()
getMinimumHeight
in interface SizeMethods<WebGradientColorChooser>
public WebGradientColorChooser setMinimumHeight(int minimumHeight)
setMinimumHeight
in interface SizeMethods<WebGradientColorChooser>
minimumHeight
- new component minimum height
public java.awt.Dimension getPreferredSize()
getPreferredSize
in interface SizeMethods<WebGradientColorChooser>
getPreferredSize
in class javax.swing.JComponent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |