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 RolloverTriStateListener
private PropertyChangeListener
protected Rectangle
protected int
private PropertyChangeListener
protected Icon
private TriStateSelectionChangeListener
protected StateTransitionTracker
protected Rectangle
protected JTriStateCheckBox
protected Rectangle
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the model for tracking the transitions.protected void
Installs components on the associated tri-state checkbox.protected void
Installs default settings for the associated tri-state checkbox.protected void
protected void
Installs listeners on the associated tri-state checkbox.void
boolean
isInside
(MouseEvent me) Checks whether the mouse position of the specified event lies inside the area of the component designated for transition effects.protected void
Uninstalls subcomponents from the associated tri-state checkbox.protected void
Uninstalls default settings from the associated tri-state checkbox.protected void
protected void
Uninstalls listeners from the associated tri-state checkbox.void
void
update
(Graphics g, JComponent c) protected abstract void
Methods inherited from class javax.swing.plaf.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:
installUI
in classComponentUI
-
uninstallUI
- Overrides:
uninstallUI
in 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:
getPreferredSize
in classComponentUI
-
isInside
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
Description copied from interface:TransitionAwareUI
Returns the model for tracking the transitions.- Specified by:
getTransitionTracker
in interfaceTransitionAwareUI
- Returns:
- Model for tracking the transitions.
-
update
- Overrides:
update
in classComponentUI
-