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
FieldsModifier and TypeFieldDescriptionprivate RolloverTriStateListenerprivate PropertyChangeListenerprotected Rectangleprotected intprivate PropertyChangeListenerprotected Iconprivate TriStateSelectionChangeListenerprotected StateTransitionTrackerprotected Rectangleprotected JTriStateCheckBoxprotected Rectangle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the model for tracking the transitions.protected voidInstalls components on the associated tri-state checkbox.protected voidInstalls default settings for the associated tri-state checkbox.protected voidprotected voidInstalls listeners on the associated tri-state checkbox.voidbooleanisInside(MouseEvent me) Checks whether the mouse position of the specified event lies inside the area of the component designated for transition effects.protected voidUninstalls subcomponents from the associated tri-state checkbox.protected voidUninstalls default settings from the associated tri-state checkbox.protected voidprotected voidUninstalls listeners from the associated tri-state checkbox.voidvoidupdate(Graphics g, JComponent c) protected abstract voidMethods inherited from class ComponentUI
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, paint
-
Field Details
-
triStateCheckBox
-
componentPropertyChangeListener
-
projectionPropertyChangeListener
-
selectionChangeListener
-
basicButtonListener
-
stateTransitionTracker
-
viewRect
-
iconRect
-
textRect
-
iconTextGap
protected int iconTextGap -
radianceIcon
-
-
Constructor Details
-
BasicTriStateCheckBoxUI
-
-
Method Details
-
installUI
- Overrides:
installUIin classComponentUI
-
uninstallUI
- Overrides:
uninstallUIin classComponentUI
-
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
- Overrides:
getPreferredSizein classComponentUI
-
isInside
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
Description copied from interface:TransitionAwareUIReturns the model for tracking the transitions.- Specified by:
getTransitionTrackerin interfaceTransitionAwareUI- Returns:
- Model for tracking the transitions.
-
update
- Overrides:
updatein classComponentUI
-