java.lang.Object
org.pushingpixels.radiance.theming.internal.widget.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

      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

      public static Map<JComponent,Timeline> getRunningGhostRolloverTimelines()
    • getRunningGhostPressTimelines

      public static Map<JComponent,Timeline> getRunningGhostPressTimelines()
    • getGhostComponentPressedTimeline

      public Timeline getGhostComponentPressedTimeline()
    • getGhostIconRolloverTimeline

      public Timeline getGhostIconRolloverTimeline()