Class BasicSwitchUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ButtonUI
javax.swing.plaf.basic.BasicButtonUI
javax.swing.plaf.basic.BasicToggleButtonUI
org.pushingpixels.radiance.component.internal.ui.common.BasicSwitchUI
- All Implemented Interfaces:
TransitionAwareUI
- Direct Known Subclasses:
RadianceSwitchUI
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate PropertyChangeListener
private PropertyChangeListener
protected StateTransitionTracker
protected JSwitch
Fields inherited from class javax.swing.plaf.basic.BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BasicButtonListener
Returns the model for tracking the transitions.protected void
protected 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
protected void
void
void
update
(Graphics g, JComponent c) Methods inherited from class javax.swing.plaf.basic.BasicToggleButtonUI
createUI, getPropertyPrefix, getTextShiftOffset, paint, paintIcon
Methods inherited from class javax.swing.plaf.basic.BasicButtonUI
clearTextShiftOffset, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, installKeyboardActions, installUI, paintButtonPressed, paintFocus, paintIcon, paintText, paintText, setTextShiftOffset, uninstallKeyboardActions
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount
-
Field Details
-
switchComp
-
componentPropertyChangeListener
-
projectionPropertyChangeListener
-
stateTransitionTracker
-
-
Constructor Details
-
BasicSwitchUI
-
-
Method Details
-
uninstallUI
- Overrides:
uninstallUI
in classBasicButtonUI
-
installDefaults
- Overrides:
installDefaults
in classBasicButtonUI
-
installListeners
- Overrides:
installListeners
in classBasicButtonUI
-
uninstallDefaults
- Overrides:
uninstallDefaults
in classBasicButtonUI
-
uninstallListeners
- Overrides:
uninstallListeners
in classBasicButtonUI
-
createButtonListener
- Overrides:
createButtonListener
in classBasicButtonUI
-
getPreferredSize
- Overrides:
getPreferredSize
in classBasicButtonUI
-
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
-