|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdesktop.animation.timing.interpolation.ObjectModifier
public class ObjectModifier
This class defines an Object and a PropertyRange that
define how a specific property on that Object should be
modified over time. An instance of this class can be supplied as a
TimingTarget to TimingController to run an animation
that modifies the object's property over the timing period defined
by that TimingController.
ObjectModifier can be subclassed if applications need to perform
more operations during the begin, end, or timingEvent methods
than the simple interpolation done here.
| Constructor Summary | |
|---|---|
ObjectModifier(java.lang.Object object,
PropertyRange propertyRange)
Creates a new instance of ObjectModifer. |
|
| Method Summary | |
|---|---|
void |
begin()
Called by TimingController to signal that the timer is about to start. |
void |
end()
Called by TimingController to signal that the timer has ended. |
void |
timingEvent(long cycleElapsedTime,
long totalElapsedTime,
float fraction)
Called from TimingController to signal another timing event. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ObjectModifier(java.lang.Object object,
PropertyRange propertyRange)
java.lang.IllegalArgumentException - if there is no method on the
object with the appropriate name. Method names are derived
by standard JavaBean naming conventions. For example, a
property name of "location" (in the PropertyRange object) would
become a method name of "setLocation". If this exception is
thrown, then either the property name was wrong or there is
no JavaBean-compliant set method that can be used with that
property name.
java.lang.SecurityException - if the application does not have
appropriate permissions to request access to the Method| Method Detail |
|---|
public void begin()
begin in interface TimingTargetpublic void end()
end in interface TimingTarget
public void timingEvent(long cycleElapsedTime,
long totalElapsedTime,
float fraction)
timingEvent in interface TimingTargetcycleElapsedTime - the total time in milliseconds elapsed in
the current CycletotalElapsedTime - the total time in milliseconds elapsed
since the start of the first cyclefraction - the fraction of completion between the start and
end of the current cycle. Note that on reversing cycles
(Envelope.RepeatBehavior.REVERSE) the fraction decreases
from 1.0 to 0 on backwards-running cycles.Envelope.RepeatBehavior,
TimingController.timingEvent(long, long, float)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||