Class GhostingListener

java.lang.Object
org.pushingpixels.lafwidget.animation.effects.GhostingListener

public class GhostingListener extends Object
Listener for the "ghosting image" effects on buttons.
See Also:
  • Field Details

  • Constructor Details

    • GhostingListener

      public GhostingListener(JComponent comp, ButtonModel buttonModel)
      Creates a new listener on model changes that can cause ghost animation transitions.
      Parameters:
      comp - Component.
      buttonModel - Model for the component.
  • Method Details

    • trackModelChange

      protected void trackModelChange(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

      public static Map<JComponent,org.pushingpixels.trident.Timeline> getRunningGhostRolloverTimelines()
    • getRunningGhostPressTimelines

      public static Map<JComponent,org.pushingpixels.trident.Timeline> getRunningGhostPressTimelines()
    • getGhostComponentPressedTimeline

      public org.pushingpixels.trident.Timeline getGhostComponentPressedTimeline()
    • getGhostIconRolloverTimeline

      public org.pushingpixels.trident.Timeline getGhostIconRolloverTimeline()