Class GhostingListener

    • Field Detail

      • modelListener

        private javax.swing.event.ChangeListener modelListener
        Listener on the model changes.
      • comp

        private javax.swing.JComponent comp
        The associated component.
      • buttonModel

        private javax.swing.ButtonModel buttonModel
        The associated model.
      • ghostIconRolloverTimeline

        private Timeline ghostIconRolloverTimeline
      • ghostComponentPressedTimeline

        private Timeline ghostComponentPressedTimeline
      • runningGhostRolloverTimelines

        private static java.util.Map<javax.swing.JComponent,​Timeline> runningGhostRolloverTimelines
      • runningGhostPressTimelines

        private static java.util.Map<javax.swing.JComponent,​Timeline> runningGhostPressTimelines
    • Constructor Detail

      • GhostingListener

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

      • 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 java.util.Map<javax.swing.JComponent,​Timeline> getRunningGhostRolloverTimelines()
      • getRunningGhostPressTimelines

        public static java.util.Map<javax.swing.JComponent,​Timeline> getRunningGhostPressTimelines()
      • getGhostComponentPressedTimeline

        public Timeline getGhostComponentPressedTimeline()
      • getGhostIconRolloverTimeline

        public Timeline getGhostIconRolloverTimeline()