Class RadianceColorSelectorComponentUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- org.pushingpixels.radiance.component.internal.ui.common.popup.ColorSelectorComponentUI
-
- org.pushingpixels.radiance.component.internal.ui.common.popup.BasicColorSelectorComponentUI
-
- org.pushingpixels.radiance.component.internal.theming.common.ui.RadianceColorSelectorComponentUI
-
- All Implemented Interfaces:
TransitionAwareUI
public class RadianceColorSelectorComponentUI extends BasicColorSelectorComponentUI implements TransitionAwareUI
-
-
Field Summary
Fields Modifier and Type Field Description private StateTransitionTrackerstateTransitionTrackerListener for transition animations.-
Fields inherited from class org.pushingpixels.radiance.component.internal.ui.common.popup.BasicColorSelectorComponentUI
buttonModel, colorSelectorComponent, rollover
-
-
Constructor Summary
Constructors Modifier Constructor Description privateRadianceColorSelectorComponentUI(JColorSelectorComponent colorSelectorComponent)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static javax.swing.plaf.ComponentUIcreateUI(javax.swing.JComponent comp)StateTransitionTrackergetTransitionTracker()Returns the model for tracking the transitions.protected voidinstallListeners()Installs listeners on the associated color selector component.booleanisInside(java.awt.event.MouseEvent me)Checks whether the mouse position of the specified event lies inside the area of the component designated for transition effects.protected voidpaintBorder(java.awt.Graphics g)protected voidpaintFocus(java.awt.Graphics g)protected voidpaintRolloverIndication(java.awt.Graphics g)protected voiduninstallListeners()Uninstalls listeners from the associated color selector component.-
Methods inherited from class org.pushingpixels.radiance.component.internal.ui.common.popup.BasicColorSelectorComponentUI
installComponents, installDefaults, installUI, setRollover, uninstallComponents, uninstallDefaults, uninstallUI, update
-
-
-
-
Field Detail
-
stateTransitionTracker
private StateTransitionTracker stateTransitionTracker
Listener for transition animations.
-
-
Constructor Detail
-
RadianceColorSelectorComponentUI
private RadianceColorSelectorComponentUI(JColorSelectorComponent colorSelectorComponent)
-
-
Method Detail
-
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent comp)
-
installListeners
protected void installListeners()
Description copied from class:BasicColorSelectorComponentUIInstalls listeners on the associated color selector component.- Overrides:
installListenersin classBasicColorSelectorComponentUI
-
uninstallListeners
protected void uninstallListeners()
Description copied from class:BasicColorSelectorComponentUIUninstalls listeners from the associated color selector component.- Overrides:
uninstallListenersin classBasicColorSelectorComponentUI
-
isInside
public boolean isInside(java.awt.event.MouseEvent me)
Description copied from interface:TransitionAwareUIChecks whether the mouse position of the specified event lies inside the area of the component designated for transition effects.- Specified by:
isInsidein interfaceTransitionAwareUI- Parameters:
me- Mouse event.- Returns:
trueif the mouse position of the specified event lies inside the area of the component designated for transition effects,falseotherwise.
-
getTransitionTracker
public StateTransitionTracker getTransitionTracker()
Description copied from interface:TransitionAwareUIReturns the model for tracking the transitions.- Specified by:
getTransitionTrackerin interfaceTransitionAwareUI- Returns:
- Model for tracking the transitions.
-
paintBorder
protected void paintBorder(java.awt.Graphics g)
- Specified by:
paintBorderin classBasicColorSelectorComponentUI
-
paintRolloverIndication
protected void paintRolloverIndication(java.awt.Graphics g)
- Specified by:
paintRolloverIndicationin classBasicColorSelectorComponentUI
-
paintFocus
protected void paintFocus(java.awt.Graphics g)
- Specified by:
paintFocusin classBasicColorSelectorComponentUI
-
-