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 PropertyChangeListenerprivate PropertyChangeListenerprotected StateTransitionTrackerprotected JSwitchFields inherited from class BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BasicButtonListenerReturns the model for tracking the transitions.protected voidprotected voidbooleanisInside(MouseEvent me) Checks whether the mouse position of the specified event lies inside the area of the component designated for transition effects.protected voidprotected voidvoidvoidupdate(Graphics g, JComponent c) Methods inherited from class BasicToggleButtonUI
createUI, getPropertyPrefix, getTextShiftOffset, paint, paintIconMethods inherited from class BasicButtonUI
clearTextShiftOffset, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, installKeyboardActions, installUI, paintButtonPressed, paintFocus, paintIcon, paintText, paintText, setTextShiftOffset, uninstallKeyboardActionsMethods inherited from class ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount
-
Field Details
-
switchComp
-
componentPropertyChangeListener
-
projectionPropertyChangeListener
-
stateTransitionTracker
-
-
Constructor Details
-
BasicSwitchUI
-
-
Method Details
-
uninstallUI
- Overrides:
uninstallUIin classBasicButtonUI
-
installDefaults
- Overrides:
installDefaultsin classBasicButtonUI
-
installListeners
- Overrides:
installListenersin classBasicButtonUI
-
uninstallDefaults
- Overrides:
uninstallDefaultsin classBasicButtonUI
-
uninstallListeners
- Overrides:
uninstallListenersin classBasicButtonUI
-
createButtonListener
- Overrides:
createButtonListenerin classBasicButtonUI
-
getPreferredSize
- Overrides:
getPreferredSizein classBasicButtonUI
-
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
-