Class GhostingListener
java.lang.Object
org.pushingpixels.radiance.theming.internal.widget.animation.effects.GhostingListener
Listener for the "ghosting image" effects on buttons.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ButtonModel
The associated model.private JComponent
The associated component.(package private) static final String
private Timeline
private Timeline
private ChangeListener
Listener on the model changes.private static Map
<JComponent, Timeline> private static Map
<JComponent, Timeline> -
Constructor Summary
ConstructorsConstructorDescriptionGhostingListener
(JComponent comp, ButtonModel buttonModel) Creates a new listener on model changes that can cause ghost animation transitions. -
Method Summary
Modifier and TypeMethodDescriptionstatic Map
<JComponent, Timeline> static Map
<JComponent, Timeline> void
Registers listeners on the relevant model changes.private void
trackModelChange
(RadianceThemingSlices.AnimationFacet animationFacet, boolean newState) Tracks a single change to the model.void
Unregisters all listeners on model changes.
-
Field Details
-
modelListener
Listener on the model changes. -
comp
The associated component. -
buttonModel
The associated model. -
GHOST_LISTENER_KEY
- See Also:
-
prevStateMap
-
ghostIconRolloverTimeline
-
ghostComponentPressedTimeline
-
runningGhostRolloverTimelines
-
runningGhostPressTimelines
-
-
Constructor Details
-
GhostingListener
Creates a new listener on model changes that can cause ghost animation transitions.- Parameters:
comp
- Component.buttonModel
- Model for the component.
-
-
Method Details
-
trackModelChange
private void trackModelChange(RadianceThemingSlices.AnimationFacet animationFacet, boolean newState) Tracks a single change to the model.- Parameters:
animationFacet
- Animation facet.newState
- New value of the relevant attribute of the model.
-
registerListeners
public void registerListeners()Registers listeners on the relevant model changes. -
unregisterListeners
public void unregisterListeners()Unregisters all listeners on model changes. -
getRunningGhostRolloverTimelines
-
getRunningGhostPressTimelines
-
getGhostComponentPressedTimeline
-
getGhostIconRolloverTimeline
-