public class GhostingListener extends Object
Modifier and Type | Field | Description |
---|---|---|
protected ButtonModel |
buttonModel |
The associated model.
|
protected JComponent |
comp |
The associated component.
|
protected ChangeListener |
modelListener |
Listener on the model changes.
|
protected Map<AnimationFacet,Boolean> |
prevStateMap |
Key -
AnimationFacet , value - Boolean |
Constructor | Description |
---|---|
GhostingListener(JComponent comp,
ButtonModel buttonModel) |
Creates a new listener on model changes that can cause ghost animation
transitions.
|
Modifier and Type | Method | Description |
---|---|---|
org.pushingpixels.trident.Timeline |
getGhostComponentPressedTimeline() |
|
org.pushingpixels.trident.Timeline |
getGhostIconRolloverTimeline() |
|
static Map<JComponent,org.pushingpixels.trident.Timeline> |
getRunningGhostPressTimelines() |
|
static Map<JComponent,org.pushingpixels.trident.Timeline> |
getRunningGhostRolloverTimelines() |
|
void |
registerListeners() |
Registers listeners on the relevant model changes.
|
protected void |
trackModelChange(AnimationFacet animationFacet,
boolean newState) |
Tracks a single change to the model.
|
void |
unregisterListeners() |
Unregisters all listeners on model changes.
|
protected ChangeListener modelListener
protected JComponent comp
protected ButtonModel buttonModel
protected Map<AnimationFacet,Boolean> prevStateMap
AnimationFacet
, value - Boolean
public GhostingListener(JComponent comp, ButtonModel buttonModel)
comp
- Component.buttonModel
- Model for the component.protected void trackModelChange(AnimationFacet animationFacet, boolean newState)
animationFacet
- Animation facet.newState
- New value of the relevant attribute of the model.public void registerListeners()
public void unregisterListeners()
public static Map<JComponent,org.pushingpixels.trident.Timeline> getRunningGhostRolloverTimelines()
public static Map<JComponent,org.pushingpixels.trident.Timeline> getRunningGhostPressTimelines()
public org.pushingpixels.trident.Timeline getGhostComponentPressedTimeline()
public org.pushingpixels.trident.Timeline getGhostIconRolloverTimeline()