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 RolloverTriStateListenerbasicButtonListenerprivate java.beans.PropertyChangeListenercomponentPropertyChangeListenerprotected java.awt.RectangleiconRectprotected inticonTextGapprivate java.beans.PropertyChangeListenerprojectionPropertyChangeListenerprotected javax.swing.IconradianceIconprivate TriStateSelectionChangeListenerselectionChangeListenerprotected StateTransitionTrackerstateTransitionTrackerprotected java.awt.RectangletextRectprotected JTriStateCheckBoxtriStateCheckBoxprotected java.awt.RectangleviewRect
-
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.DimensiongetPreferredSize(javax.swing.JComponent c)StateTransitionTrackergetTransitionTracker()Returns the model for tracking the transitions.protected voidinstallComponents()Installs components on the associated tri-state checkbox.protected voidinstallDefaults()Installs default settings for the associated tri-state checkbox.protected voidinstallKeyboardActions()protected voidinstallListeners()Installs listeners on the associated tri-state checkbox.voidinstallUI(javax.swing.JComponent c)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 voiduninstallComponents()Uninstalls subcomponents from the associated tri-state checkbox.protected voiduninstallDefaults()Uninstalls default settings from the associated tri-state checkbox.protected voiduninstallKeyboardActions()protected voiduninstallListeners()Uninstalls listeners from the associated tri-state checkbox.voiduninstallUI(javax.swing.JComponent c)voidupdate(java.awt.Graphics g, javax.swing.JComponent c)protected abstract voidupdateIcon()
-
-
-
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:
installUIin classjavax.swing.plaf.ComponentUI
-
uninstallUI
public void uninstallUI(javax.swing.JComponent c)
- Overrides:
uninstallUIin 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:
getPreferredSizein classjavax.swing.plaf.ComponentUI
-
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.
-
update
public void update(java.awt.Graphics g, javax.swing.JComponent c)- Overrides:
updatein classjavax.swing.plaf.ComponentUI
-
-