Class BasicColorSelectorComponentUI
- 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
-
- Direct Known Subclasses:
RadianceColorSelectorComponentUI
public abstract class BasicColorSelectorComponentUI extends ColorSelectorComponentUI
Basic UI for color selector componentJColorSelectorComponent.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classBasicColorSelectorComponentUI.ColorSelectorComponentActionprivate classBasicColorSelectorComponentUI.FocusDownActionprivate classBasicColorSelectorComponentUI.FocusLeftActionprivate classBasicColorSelectorComponentUI.FocusRightActionprivate static classBasicColorSelectorComponentUI.FocusTraversalActionprivate classBasicColorSelectorComponentUI.FocusUpActionprivate static classBasicColorSelectorComponentUI.PopupDismissActionprivate classBasicColorSelectorComponentUI.PressActionprivate classBasicColorSelectorComponentUI.ReleaseAction
-
Field Summary
Fields Modifier and Type Field Description private java.awt.event.ActionListeneractionListenerprotected javax.swing.ButtonModelbuttonModelprotected JColorSelectorComponentcolorSelectorComponentprivate java.awt.event.FocusListenerfocusListenerprivate javax.swing.event.ChangeListenermodelChangeListenerprivate java.awt.event.MouseListenermouseListenerprotected floatrolloverprivate TimelinerolloverTimeline
-
Constructor Summary
Constructors Modifier Constructor Description protectedBasicColorSelectorComponentUI()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidinstallComponents()Installs subcomponents on the associated color selector component.protected voidinstallDefaults()Installs defaults on the associated color selector component.private voidinstallKeyboardActions()protected voidinstallListeners()Installs listeners on the associated color selector component.voidinstallUI(javax.swing.JComponent c)protected abstract voidpaintBorder(java.awt.Graphics g)protected abstract voidpaintFocus(java.awt.Graphics g)protected abstract voidpaintRolloverIndication(java.awt.Graphics g)voidsetRollover(float rollover)protected voiduninstallComponents()Uninstalls subcomponents from the associated color selector component.protected voiduninstallDefaults()Uninstalls defaults from the associated color selector component.private voiduninstallKeyboardActions()protected voiduninstallListeners()Uninstalls listeners from the associated color selector component.voiduninstallUI(javax.swing.JComponent c)voidupdate(java.awt.Graphics g, javax.swing.JComponent c)
-
-
-
Field Detail
-
colorSelectorComponent
protected JColorSelectorComponent colorSelectorComponent
-
buttonModel
protected javax.swing.ButtonModel buttonModel
-
mouseListener
private java.awt.event.MouseListener mouseListener
-
modelChangeListener
private javax.swing.event.ChangeListener modelChangeListener
-
actionListener
private java.awt.event.ActionListener actionListener
-
rolloverTimeline
private Timeline rolloverTimeline
-
rollover
protected float rollover
-
focusListener
private java.awt.event.FocusListener focusListener
-
-
Method Detail
-
installUI
public void installUI(javax.swing.JComponent c)
- Overrides:
installUIin classjavax.swing.plaf.ComponentUI
-
uninstallUI
public void uninstallUI(javax.swing.JComponent c)
- Overrides:
uninstallUIin classjavax.swing.plaf.ComponentUI
-
installListeners
protected void installListeners()
Installs listeners on the associated color selector component.
-
uninstallListeners
protected void uninstallListeners()
Uninstalls listeners from the associated color selector component.
-
installDefaults
protected void installDefaults()
Installs defaults on the associated color selector component.
-
uninstallDefaults
protected void uninstallDefaults()
Uninstalls defaults from the associated color selector component.
-
installComponents
protected void installComponents()
Installs subcomponents on the associated color selector component.
-
uninstallComponents
protected void uninstallComponents()
Uninstalls subcomponents from the associated color selector component.
-
installKeyboardActions
private void installKeyboardActions()
-
uninstallKeyboardActions
private void uninstallKeyboardActions()
-
setRollover
public void setRollover(float rollover)
-
update
public void update(java.awt.Graphics g, javax.swing.JComponent c)- Overrides:
updatein classjavax.swing.plaf.ComponentUI
-
paintBorder
protected abstract void paintBorder(java.awt.Graphics g)
-
paintRolloverIndication
protected abstract void paintRolloverIndication(java.awt.Graphics g)
-
paintFocus
protected abstract void paintFocus(java.awt.Graphics g)
-
-