sub_arctic.anim
Class continuous_transition
java.lang.Object
|
+--sub_arctic.anim.transition
|
+--sub_arctic.anim.continuous_transition
- public class continuous_transition
- extends transition
This is a transition for people who want to have a transition
which lasts until you specifically remove it. This object never
calls the animatable's end_transition function, only start_transition
and the transition_step function. This object doesn't use
trajectory or a pacing function, it just converts the current time
into a Float object and sends that to the animatable. This object
requires a continuous_interval for its time interval so it is sure
that you will not pass it an interval which expires.
Field Summary |
protected int |
_freq
How often does the user want calls (in milliseconds). |
Method Summary |
boolean |
finished()
This object is never finished. |
int |
frequency()
Retrieve the frequency of calls to this animatable object. |
void |
set_frequency(int f)
Set the frequency of calls to this animatable object. |
void |
start(event e,
java.lang.Object user_info)
Start a transition. |
void |
step(event e,
java.lang.Object user_info,
long current_time)
Perform a step... |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
_freq
protected int _freq
- How often does the user want calls (in milliseconds).
continuous_transition
public continuous_transition(animatable a,
continuous_interval pi,
int freq)
- Construct a permanent transition given an animatable object
and a frequency of calls.
- Parameters:
animatable
- a the object to animatecontinuous_interval
- piint
- freq the frequency of calls in milliseconds
frequency
public int frequency()
- Retrieve the frequency of calls to this animatable object.
- Returns:
- int the frequency of calls in milliseconds
set_frequency
public void set_frequency(int f)
- Set the frequency of calls to this animatable object.
- Parameters:
int
- f frequency of calls in milliseconds
finished
public boolean finished()
- This object is never finished.
- Returns:
- boolean always return false
- Overrides:
- finished in class transition
start
public void start(event e,
java.lang.Object user_info)
- Start a transition.
- Parameters:
event
- e the animation event that caused things to get goingObject
- user_info the object passed to the animation agent when
the animatable joined its focus set- Overrides:
- start in class transition
step
public void step(event e,
java.lang.Object user_info,
long current_time)
- Perform a step... this sends the transition_step message to the
interactor.
- Parameters:
event
- e the animation event for this stepObject
- user_info the object passed to the animation agent when
the animatable joined its focus setlong
- current_time the time it is "now" for this time step- Overrides:
- step in class transition