Class GhostingListener
java.lang.Object
org.pushingpixels.lafwidget.animation.effects.GhostingListener
Listener for the "ghosting image" effects on buttons.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ButtonModel
The associated model.protected JComponent
The associated component.protected ChangeListener
Listener 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.Timeline
org.pushingpixels.trident.Timeline
static Map
<JComponent, org.pushingpixels.trident.Timeline> static Map
<JComponent, org.pushingpixels.trident.Timeline> void
Registers listeners on the relevant model changes.protected void
trackModelChange
(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. -
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()
-