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 StateTransitionTracker
stateTransitionTracker
Listener 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 private
RadianceColorSelectorComponentUI(JColorSelectorComponent colorSelectorComponent)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static javax.swing.plaf.ComponentUI
createUI(javax.swing.JComponent comp)
StateTransitionTracker
getTransitionTracker()
Returns the model for tracking the transitions.protected void
installListeners()
Installs listeners on the associated color selector component.boolean
isInside(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 void
paintBorder(java.awt.Graphics g)
protected void
paintFocus(java.awt.Graphics g)
protected void
paintRolloverIndication(java.awt.Graphics g)
protected void
uninstallListeners()
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:BasicColorSelectorComponentUI
Installs listeners on the associated color selector component.- Overrides:
installListeners
in classBasicColorSelectorComponentUI
-
uninstallListeners
protected void uninstallListeners()
Description copied from class:BasicColorSelectorComponentUI
Uninstalls listeners from the associated color selector component.- Overrides:
uninstallListeners
in classBasicColorSelectorComponentUI
-
isInside
public boolean isInside(java.awt.event.MouseEvent me)
Description copied from interface:TransitionAwareUI
Checks whether the mouse position of the specified event lies inside the area of the component designated for transition effects.- Specified by:
isInside
in interfaceTransitionAwareUI
- Parameters:
me
- Mouse event.- Returns:
true
if the mouse position of the specified event lies inside the area of the component designated for transition effects,false
otherwise.
-
getTransitionTracker
public StateTransitionTracker getTransitionTracker()
Description copied from interface:TransitionAwareUI
Returns the model for tracking the transitions.- Specified by:
getTransitionTracker
in interfaceTransitionAwareUI
- Returns:
- Model for tracking the transitions.
-
paintBorder
protected void paintBorder(java.awt.Graphics g)
- Specified by:
paintBorder
in classBasicColorSelectorComponentUI
-
paintRolloverIndication
protected void paintRolloverIndication(java.awt.Graphics g)
- Specified by:
paintRolloverIndication
in classBasicColorSelectorComponentUI
-
paintFocus
protected void paintFocus(java.awt.Graphics g)
- Specified by:
paintFocus
in classBasicColorSelectorComponentUI
-
-