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 ButtonModelThe associated model.private JComponentThe associated component.(package private) static final Stringprivate Timelineprivate Timelineprivate ChangeListenerListener on the model changes.private Map<RadianceThemingSlices.AnimationFacet, Boolean> 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> voidRegisters listeners on the relevant model changes.private voidtrackModelChange(RadianceThemingSlices.AnimationFacet animationFacet, boolean newState) Tracks a single change to the model.voidUnregisters 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
-