- actionPerformed(ActionEvent) - Method in class org.jdesktop.animation.timing.triggers.ActionTrigger
-
Called by an object generating ActionEvents to which this
trigger was added as an ActionListener.
- ActionTrigger - Class in org.jdesktop.animation.timing.triggers
-
ActionTrigger handles action events and
starts the animator when actions occur.
- ActionTrigger(Animator) - Constructor for class org.jdesktop.animation.timing.triggers.ActionTrigger
-
Creates an ActionTrigger that will start the animator upon receiving
any ActionEvents.
- addEventListener(TimingEventListener) - Method in class org.jdesktop.animation.timing.TimingSource
-
Adds a TimingEventListener to the set of listeners that
receive timing events from this TimingSource.
- addTarget(TimingTarget) - Method in class org.jdesktop.animation.timing.Animator
-
Adds a TimingTarget to the list of targets that get notified of each
timingEvent.
- addTrigger(Object, Animator) - Static method in class org.jdesktop.animation.timing.triggers.ActionTrigger
-
Creates an ActionTrigger and adds it as a listener to object.
- addTrigger(JComponent, Animator, FocusTriggerEvent) - Static method in class org.jdesktop.animation.timing.triggers.FocusTrigger
-
Creates a non-auto-reversing FocusTrigger and adds it as a FocusListener
to the component.
- addTrigger(JComponent, Animator, FocusTriggerEvent, boolean) - Static method in class org.jdesktop.animation.timing.triggers.FocusTrigger
-
Creates a FocusTrigger and adds it as a FocusListener
to the component.
- addTrigger(JComponent, Animator, MouseTriggerEvent) - Static method in class org.jdesktop.animation.timing.triggers.MouseTrigger
-
Creates a non-auto-reversing MouseTrigger and adds it as a
listener to component.
- addTrigger(JComponent, Animator, MouseTriggerEvent, boolean) - Static method in class org.jdesktop.animation.timing.triggers.MouseTrigger
-
Creates a MouseTrigger and adds it as a listener to component.
- addTrigger(Animator, Animator, TimingTriggerEvent) - Static method in class org.jdesktop.animation.timing.triggers.TimingTrigger
-
Creates a non-auto-reversing TimingTrigger and adds it as a target
to the source Animator.
- addTrigger(Animator, Animator, TimingTriggerEvent, boolean) - Static method in class org.jdesktop.animation.timing.triggers.TimingTrigger
-
Creates a TimingTrigger and adds it as a target
to the source Animator.
- Animator - Class in org.jdesktop.animation.timing
-
This class controls animations.
- Animator(int) - Constructor for class org.jdesktop.animation.timing.Animator
-
Constructor: this is a utility constructor
for a simple timing sequence that will run for
duration
length of time.
- Animator(int, TimingTarget) - Constructor for class org.jdesktop.animation.timing.Animator
-
Constructor: this is a utility constructor
for a simple timing sequence that will run for
duration
length of time.
- Animator(int, double, Animator.RepeatBehavior, TimingTarget) - Constructor for class org.jdesktop.animation.timing.Animator
-
Constructor that sets the most common properties of a
repeating animation.
- Animator.Direction - Enum in org.jdesktop.animation.timing
-
Direction is used to set the initial direction in which the
animation starts.
- Animator.EndBehavior - Enum in org.jdesktop.animation.timing
-
EndBehavior determines what happens at the end of the animation.
- Animator.RepeatBehavior - Enum in org.jdesktop.animation.timing
-
RepeatBehavior determines how each successive cycle will flow.
- getAcceleration() - Method in class org.jdesktop.animation.timing.Animator
-
Returns the current value of acceleration property
- getCycleElapsedTime(long) - Method in class org.jdesktop.animation.timing.Animator
-
Returns the elapsed time for the current animation cycle.
- getCycleElapsedTime() - Method in class org.jdesktop.animation.timing.Animator
-
Returns the elapsed time for the current animation cycle.
- getDeceleration() - Method in class org.jdesktop.animation.timing.Animator
-
Returns the current value of deceleration property
- getDuration() - Method in class org.jdesktop.animation.timing.Animator
-
Returns the duration of the animation.
- getEndBehavior() - Method in class org.jdesktop.animation.timing.Animator
-
Returns the
Animator.EndBehavior
of the animation, either HOLD to
retain the final value or RESET to take on the initial value.
- getInstance() - Static method in class org.jdesktop.animation.timing.interpolation.DiscreteInterpolator
-
Returns the single DiscreteInterpolator object
- getInstance() - Static method in class org.jdesktop.animation.timing.interpolation.LinearInterpolator
-
Returns the single DiscreteInterpolator object
- getInterpolator() - Method in class org.jdesktop.animation.timing.Animator
-
Returns the interpolator for the animation.
- getInterval(float) - Method in class org.jdesktop.animation.timing.interpolation.KeyFrames
-
Returns time interval that contains this time fraction
- getOppositeEvent() - Method in class org.jdesktop.animation.timing.triggers.FocusTriggerEvent
-
This method finds the opposite of the current event.: IN ->
OUT and OUT -> IN.
- getOppositeEvent() - Method in class org.jdesktop.animation.timing.triggers.MouseTriggerEvent
-
This method finds the opposite of the current event.:
ENTER -> EXIT
EXIT -> ENTER
PRESS -> RELEASE
RELEASE -> PRESS
Note that CLICK has no obvious opposite so
it simply returns CLICK (this method should probably not be called
for that case).
- getOppositeEvent() - Method in class org.jdesktop.animation.timing.triggers.TimingTriggerEvent
-
This method finds the opposite of the current event.: START -> STOP
and STOP -> START.
- getOppositeEvent() - Method in class org.jdesktop.animation.timing.triggers.TriggerEvent
-
This method returns the 'opposite' event from itself.
- getRepeatBehavior() - Method in class org.jdesktop.animation.timing.Animator
-
- getRepeatCount() - Method in class org.jdesktop.animation.timing.Animator
-
Returns the number of times the animation cycle will repeat.
- getResolution() - Method in class org.jdesktop.animation.timing.Animator
-
Returns the current resolution of the animation.
- getStartDelay() - Method in class org.jdesktop.animation.timing.Animator
-
Returns the amount of delay prior to starting the first animation
cycle after the call to
Animator.start()
.
- getStartDirection() - Method in class org.jdesktop.animation.timing.Animator
-
Returns the initial direction for the animation.
- getStartFraction() - Method in class org.jdesktop.animation.timing.Animator
-
Returns the fraction that the first cycle will start at.
- getTimingFraction() - Method in class org.jdesktop.animation.timing.Animator
-
This method calculates and returns the fraction elapsed of the current
cycle based on the current time
- getTotalElapsedTime(long) - Method in class org.jdesktop.animation.timing.Animator
-
Returns the total elapsed time for the current animation.
- getTotalElapsedTime() - Method in class org.jdesktop.animation.timing.Animator
-
Returns the total elapsed time for the current animation.
- setAcceleration(float) - Method in class org.jdesktop.animation.timing.Animator
-
Sets the fraction of the timing cycle that will be spent accelerating
at the beginning.
- setDeceleration(float) - Method in class org.jdesktop.animation.timing.Animator
-
Sets the fraction of the timing cycle that will be spent decelerating
at the end.
- setDuration(int) - Method in class org.jdesktop.animation.timing.Animator
-
Sets the duration for the animation
- setEndBehavior(Animator.EndBehavior) - Method in class org.jdesktop.animation.timing.Animator
-
Sets the behavior at the end of the animation.
- setInterpolator(Interpolator) - Method in class org.jdesktop.animation.timing.Animator
-
Sets the interpolator for the animation cycle.
- setRepeatBehavior(Animator.RepeatBehavior) - Method in class org.jdesktop.animation.timing.Animator
-
- setRepeatCount(double) - Method in class org.jdesktop.animation.timing.Animator
-
Sets the number of times the animation cycle will repeat.
- setResolution(int) - Method in class org.jdesktop.animation.timing.Animator
-
Sets the resolution of the animation
- setResolution(int) - Method in class org.jdesktop.animation.timing.TimingSource
-
Sets the delay between callback events.
- setStartDelay(int) - Method in class org.jdesktop.animation.timing.Animator
-
Sets the duration of the initial delay between calling
Animator.start()
and the start of the first animation cycle.
- setStartDelay(int) - Method in class org.jdesktop.animation.timing.TimingSource
-
- setStartDirection(Animator.Direction) - Method in class org.jdesktop.animation.timing.Animator
-
Sets the startDirection for the initial animation cycle.
- setStartFraction(float) - Method in class org.jdesktop.animation.timing.Animator
-
Sets the initial fraction at which the first animation cycle will
begin.
- setTimer(TimingSource) - Method in class org.jdesktop.animation.timing.Animator
-
Sets a new TimingSource that will supply the timing
events to this Animator.
- SplineInterpolator - Class in org.jdesktop.animation.timing.interpolation
-
This class interpolates fractional values using Bezier splines.
- SplineInterpolator(float, float, float, float) - Constructor for class org.jdesktop.animation.timing.interpolation.SplineInterpolator
-
Creates a new instance of SplineInterpolator with the control points
defined by (x1, y1) and (x2, y2).
- start() - Method in class org.jdesktop.animation.timing.Animator
-
Starts the animation
- start() - Method in class org.jdesktop.animation.timing.TimingSource
-
Starts the TimingSource
- START - Static variable in class org.jdesktop.animation.timing.triggers.TimingTriggerEvent
-
Event fired when Animator starts
- stop() - Method in class org.jdesktop.animation.timing.Animator
-
This method is optional; animations will always stop on their own
if Animator is provided with appropriate values for
duration and repeatCount in the constructor.
- stop() - Method in class org.jdesktop.animation.timing.TimingSource
-
Stops the TimingSource
- STOP - Static variable in class org.jdesktop.animation.timing.triggers.TimingTriggerEvent
-
Event fired when Animator stops
- timingEvent(float) - Method in class org.jdesktop.animation.timing.interpolation.PropertySetter
-
Called from Animator to signal a timing event.
- timingEvent() - Method in class org.jdesktop.animation.timing.TimingSource
-
Subclasses call this method to post timing events to this
object's
TimingEventListener
objects.
- timingEvent(float) - Method in interface org.jdesktop.animation.timing.TimingTarget
-
This method will receive all of the timing events from an Animator
during an animation.
- timingEvent(float) - Method in class org.jdesktop.animation.timing.TimingTargetAdapter
-
This method will receive all of the timing events from an Animator
during an animation.
- timingEvent(float) - Method in class org.jdesktop.animation.timing.triggers.TimingTrigger
-
Implementation of TimingTarget method; this method does nothing
in this implementation since the events of TimingTrigger are limited
to START, STOP, and REPEAT
- TimingEventListener - Interface in org.jdesktop.animation.timing
-
This interface is implemented by any object wishing to receive events from a
TimingSource
object.
- TimingSource - Class in org.jdesktop.animation.timing
-
This class provides a generic wrapper for arbitrary
Timers that may be used with the Timing Framework.
- TimingSource() - Constructor for class org.jdesktop.animation.timing.TimingSource
-
- timingSourceEvent(TimingSource) - Method in interface org.jdesktop.animation.timing.TimingEventListener
-
This method is called by the
TimingSource
object while the
timer is running.
- TimingTarget - Interface in org.jdesktop.animation.timing
-
This interface provides the methods which
are called by Animator during the course of a timing
sequence.
- TimingTargetAdapter - Class in org.jdesktop.animation.timing
-
Implements the
TimingTarget
interface, providing stubs for all
TimingTarget methods.
- TimingTargetAdapter() - Constructor for class org.jdesktop.animation.timing.TimingTargetAdapter
-
- TimingTrigger - Class in org.jdesktop.animation.timing.triggers
-
TimingTrigger handles timing events and starts the animator
when those events occur.
- TimingTrigger(Animator, TimingTriggerEvent) - Constructor for class org.jdesktop.animation.timing.triggers.TimingTrigger
-
Creates a non-auto-reversing TimingTrigger, which should be added
to an Animator which will generate the events sent to the
trigger.
- TimingTrigger(Animator, TimingTriggerEvent, boolean) - Constructor for class org.jdesktop.animation.timing.triggers.TimingTrigger
-
Creates a TimingTrigger, which should be added
to an Animator which will generate the events sent to the
trigger.
- TimingTriggerEvent - Class in org.jdesktop.animation.timing.triggers
-
Timing events; TimingTriggers can be set to fire when an animator
starts, stops, or repeats.
- Trigger - Class in org.jdesktop.animation.timing.triggers
-
This abstract class should be overridden by any class wanting to
implement a new Trigger.
- Trigger(Animator) - Constructor for class org.jdesktop.animation.timing.triggers.Trigger
-
Creates a Trigger that will start the animator when
Trigger.fire()
is called.
- Trigger(Animator, TriggerEvent) - Constructor for class org.jdesktop.animation.timing.triggers.Trigger
-
- Trigger(Animator, TriggerEvent, boolean) - Constructor for class org.jdesktop.animation.timing.triggers.Trigger
-
- TriggerEvent - Class in org.jdesktop.animation.timing.triggers
-
Superclass for all TriggerEvents used in the Trigger classes.
- TriggerEvent(String) - Constructor for class org.jdesktop.animation.timing.triggers.TriggerEvent
-
Protected constructor; this helps ensure type-safe use of
pre-define TriggerEvent objects.