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.UIThreadTimelineCallbackAdapter
Tracker for pulsating (default and focused)
JButton
s. This class
is for internal use only.-
Method Summary
Modifier and TypeMethodDescriptionstatic float
getTimelinePosition
(JButton jButton) Retrieves the current cycle count for the specified button.static boolean
isAnimating
(JButton jButton) Retrieves the animation state for the specified button.static boolean
isPulsating
(JButton jButton) Checks whether the specified button is pulsating.void
onTimelinePulse
(float durationFraction, float timelinePosition) void
onTimelineStateChanged
(org.pushingpixels.trident.Timeline.TimelineState oldState, org.pushingpixels.trident.Timeline.TimelineState newState, float durationFraction, float timelinePosition) static void
Stops all timers.static void
Updates the state of the specified button which must be a default button in some window.
-
Method Details
-
onTimelineStateChanged
public void onTimelineStateChanged(org.pushingpixels.trident.Timeline.TimelineState oldState, org.pushingpixels.trident.Timeline.TimelineState newState, float durationFraction, float timelinePosition) - Specified by:
onTimelineStateChanged
in interfaceorg.pushingpixels.trident.callback.TimelineCallback
- Overrides:
onTimelineStateChanged
in classorg.pushingpixels.trident.callback.TimelineCallbackAdapter
-
onTimelinePulse
public void onTimelinePulse(float durationFraction, float timelinePosition) - Specified by:
onTimelinePulse
in interfaceorg.pushingpixels.trident.callback.TimelineCallback
- Overrides:
onTimelinePulse
in classorg.pushingpixels.trident.callback.TimelineCallbackAdapter
-
update
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
Retrieves the current cycle count for the specified button.- Parameters:
jButton
- Button.- Returns:
- Current cycle count for the specified button.
-
isAnimating
Retrieves the animation state for the specified button.- Parameters:
jButton
- Button.- Returns:
true
if the specified button is being animated,false
otherwise.
-
isPulsating
Checks whether the specified button is pulsating.- Parameters:
jButton
- Button.- Returns:
true
if the specified button is pulsating,false
otherwise.
-
stopAllTimers
public static void stopAllTimers()Stops all timers.
-