Class RootPaneDefaultButtonTracker
- java.lang.Object
-
- org.pushingpixels.trident.callback.TimelineCallbackAdapter
-
- org.pushingpixels.trident.callback.UIThreadTimelineCallbackAdapter
-
- org.pushingpixels.substance.internal.animation.RootPaneDefaultButtonTracker
-
- All Implemented Interfaces:
org.pushingpixels.trident.callback.TimelineCallback
public class RootPaneDefaultButtonTracker extends org.pushingpixels.trident.callback.UIThreadTimelineCallbackAdapterTracker for pulsating (default and focused)JButtons. This class is for internal use only.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static floatgetTimelinePosition(JButton jButton)Retrieves the current cycle count for the specified button.static booleanisAnimating(JButton jButton)Retrieves the animation state for the specified button.static booleanisPulsating(JButton jButton)Checks whether the specified button is pulsating.voidonTimelinePulse(float durationFraction, float timelinePosition)voidonTimelineStateChanged(org.pushingpixels.trident.Timeline.TimelineState oldState, org.pushingpixels.trident.Timeline.TimelineState newState, float durationFraction, float timelinePosition)static voidstopAllTimers()Stops all timers.static voidupdate(JButton jButton)Updates the state of the specified button which must be a default button in some window.
-
-
-
Method Detail
-
onTimelineStateChanged
public void onTimelineStateChanged(org.pushingpixels.trident.Timeline.TimelineState oldState, org.pushingpixels.trident.Timeline.TimelineState newState, float durationFraction, float timelinePosition)- Specified by:
onTimelineStateChangedin interfaceorg.pushingpixels.trident.callback.TimelineCallback- Overrides:
onTimelineStateChangedin classorg.pushingpixels.trident.callback.TimelineCallbackAdapter
-
onTimelinePulse
public void onTimelinePulse(float durationFraction, float timelinePosition)- Specified by:
onTimelinePulsein interfaceorg.pushingpixels.trident.callback.TimelineCallback- Overrides:
onTimelinePulsein classorg.pushingpixels.trident.callback.TimelineCallbackAdapter
-
update
public static void update(JButton jButton)
Updates the state of the specified button which must be a default button in some window. The button state is determined based on focus ownership.- Parameters:
jButton- Button.
-
getTimelinePosition
public static float getTimelinePosition(JButton jButton)
Retrieves the current cycle count for the specified button.- Parameters:
jButton- Button.- Returns:
- Current cycle count for the specified button.
-
isAnimating
public static boolean isAnimating(JButton jButton)
Retrieves the animation state for the specified button.- Parameters:
jButton- Button.- Returns:
trueif the specified button is being animated,falseotherwise.
-
isPulsating
public static boolean isPulsating(JButton jButton)
Checks whether the specified button is pulsating.- Parameters:
jButton- Button.- Returns:
trueif the specified button is pulsating,falseotherwise.
-
stopAllTimers
public static void stopAllTimers()
Stops all timers.
-
-