Class BasicTriStateCheckBoxUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- org.pushingpixels.radiance.component.internal.ui.common.TriStateCheckBoxUI
-
- org.pushingpixels.radiance.component.internal.ui.common.BasicTriStateCheckBoxUI
-
- All Implemented Interfaces:
TransitionAwareUI
- Direct Known Subclasses:
RadianceTriStateCheckBoxUI
public abstract class BasicTriStateCheckBoxUI extends TriStateCheckBoxUI implements TransitionAwareUI
-
-
Field Summary
Fields Modifier and Type Field Description private RolloverTriStateListener
basicButtonListener
private java.beans.PropertyChangeListener
componentPropertyChangeListener
protected java.awt.Rectangle
iconRect
protected int
iconTextGap
private java.beans.PropertyChangeListener
projectionPropertyChangeListener
protected javax.swing.Icon
radianceIcon
private TriStateSelectionChangeListener
selectionChangeListener
protected StateTransitionTracker
stateTransitionTracker
protected java.awt.Rectangle
textRect
protected JTriStateCheckBox
triStateCheckBox
protected java.awt.Rectangle
viewRect
-
Constructor Summary
Constructors Constructor Description BasicTriStateCheckBoxUI(JTriStateCheckBox triStateCheckBox)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.awt.Dimension
getPreferredSize(javax.swing.JComponent c)
StateTransitionTracker
getTransitionTracker()
Returns the model for tracking the transitions.protected void
installComponents()
Installs components on the associated tri-state checkbox.protected void
installDefaults()
Installs default settings for the associated tri-state checkbox.protected void
installKeyboardActions()
protected void
installListeners()
Installs listeners on the associated tri-state checkbox.void
installUI(javax.swing.JComponent c)
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
uninstallComponents()
Uninstalls subcomponents from the associated tri-state checkbox.protected void
uninstallDefaults()
Uninstalls default settings from the associated tri-state checkbox.protected void
uninstallKeyboardActions()
protected void
uninstallListeners()
Uninstalls listeners from the associated tri-state checkbox.void
uninstallUI(javax.swing.JComponent c)
void
update(java.awt.Graphics g, javax.swing.JComponent c)
protected abstract void
updateIcon()
-
-
-
Field Detail
-
triStateCheckBox
protected JTriStateCheckBox triStateCheckBox
-
componentPropertyChangeListener
private java.beans.PropertyChangeListener componentPropertyChangeListener
-
projectionPropertyChangeListener
private java.beans.PropertyChangeListener projectionPropertyChangeListener
-
selectionChangeListener
private TriStateSelectionChangeListener selectionChangeListener
-
basicButtonListener
private RolloverTriStateListener basicButtonListener
-
stateTransitionTracker
protected StateTransitionTracker stateTransitionTracker
-
viewRect
protected java.awt.Rectangle viewRect
-
iconRect
protected java.awt.Rectangle iconRect
-
textRect
protected java.awt.Rectangle textRect
-
iconTextGap
protected int iconTextGap
-
radianceIcon
protected javax.swing.Icon radianceIcon
-
-
Constructor Detail
-
BasicTriStateCheckBoxUI
public BasicTriStateCheckBoxUI(JTriStateCheckBox triStateCheckBox)
-
-
Method Detail
-
installUI
public void installUI(javax.swing.JComponent c)
- Overrides:
installUI
in classjavax.swing.plaf.ComponentUI
-
uninstallUI
public void uninstallUI(javax.swing.JComponent c)
- Overrides:
uninstallUI
in classjavax.swing.plaf.ComponentUI
-
installDefaults
protected void installDefaults()
Installs default settings for the associated tri-state checkbox.
-
installListeners
protected void installListeners()
Installs listeners on the associated tri-state checkbox.
-
installKeyboardActions
protected void installKeyboardActions()
-
installComponents
protected void installComponents()
Installs components on the associated tri-state checkbox.
-
uninstallDefaults
protected void uninstallDefaults()
Uninstalls default settings from the associated tri-state checkbox.
-
uninstallKeyboardActions
protected void uninstallKeyboardActions()
-
uninstallListeners
protected void uninstallListeners()
Uninstalls listeners from the associated tri-state checkbox.
-
uninstallComponents
protected void uninstallComponents()
Uninstalls subcomponents from the associated tri-state checkbox.
-
updateIcon
protected abstract void updateIcon()
-
getPreferredSize
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
- Overrides:
getPreferredSize
in classjavax.swing.plaf.ComponentUI
-
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.
-
update
public void update(java.awt.Graphics g, javax.swing.JComponent c)
- Overrides:
update
in classjavax.swing.plaf.ComponentUI
-
-