Class GhostingListener
java.lang.Object
org.pushingpixels.lafwidget.animation.effects.GhostingListener
Listener for the "ghosting image" effects on buttons.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ButtonModelThe associated model.protected JComponentThe associated component.protected ChangeListenerListener on the model changes.protected Map<AnimationFacet,Boolean> Key -AnimationFacet, value -Boolean -
Constructor Summary
ConstructorsConstructorDescriptionGhostingListener(JComponent comp, ButtonModel buttonModel) Creates a new listener on model changes that can cause ghost animation transitions. -
Method Summary
Modifier and TypeMethodDescriptionorg.pushingpixels.trident.Timelineorg.pushingpixels.trident.Timelinestatic Map<JComponent,org.pushingpixels.trident.Timeline> static Map<JComponent,org.pushingpixels.trident.Timeline> voidRegisters listeners on the relevant model changes.protected voidtrackModelChange(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. -
prevStateMap
Key -AnimationFacet, value -Boolean
-
-
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
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
public org.pushingpixels.trident.Timeline getGhostComponentPressedTimeline() -
getGhostIconRolloverTimeline
public org.pushingpixels.trident.Timeline getGhostIconRolloverTimeline()
-