|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sub_arctic.lib.min_interactor | +--sub_arctic.lib.base_interactor | +--sub_arctic.lib.base_parent_interactor | +--sub_arctic.lib.shrink_wrap_container | +--sub_arctic.lib.anim_mover_container
A container class to move a collection of objects with under control of an animation transition. See the animation agent for details about how animation transitions work.
animation_agent
,
animatable
Field Summary | |
protected callback_object |
_cback_obj
This is where we hold our callback object. |
static int |
END_TRANSITION_CALLBACK
Callback number for callback at end of transition. |
static int |
START_TRANSITION_CALLBACK
Callback number for callback at start of transition. |
Fields inherited from class sub_arctic.lib.shrink_wrap_container |
_border,
DRAW_BORDER |
Fields inherited from class sub_arctic.lib.base_interactor |
_child_index,
_child_list,
_clip_bounds,
_constraint_flags,
_enabled_constraint,
_flags,
_h,
_h_constraint,
_parent,
_part_a_constraint,
_part_b_constraint,
_user_data,
_visible_constraint,
_w,
_w_constraint,
_x,
_x_constraint,
_y,
_y_constraint,
default_child_hint |
Constructor Summary | |
anim_mover_container(int xpos,
int ypos,
interactor child)
Construct a new sprite container. |
|
anim_mover_container(int xpos,
int ypos,
interactor child,
callback_object co)
Construct a new sprite container with a callback. |
Method Summary | |
callback_object |
callback_obj()
|
void |
end_transition(transition trans,
trajectory traj,
double start_t,
java.lang.Object start_obj,
double end_t,
java.lang.Object end_obj,
event e,
java.lang.Object user_info)
Handle the end of animation transition. |
int |
first_callback_num()
First valid callback number |
int |
last_callback_num()
Last valid callback number |
void |
set_callback_obj(callback_object co)
|
void |
set_transition(transition t)
Call this to setup a transition for this object. |
void |
start_transition(transition trans,
trajectory traj,
double start_t,
java.lang.Object start_obj,
event e,
java.lang.Object user_info)
Handle start of animation transition. |
void |
transition_step(transition trans,
trajectory traj,
double start_t,
java.lang.Object start_obj,
double end_t,
java.lang.Object end_obj,
event e,
java.lang.Object user_info)
Handle an animation step. |
Methods inherited from class sub_arctic.lib.shrink_wrap_container |
border,
draw_border,
draw_self_local,
set_border,
set_draw_border,
setup_constraints |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final int END_TRANSITION_CALLBACK
public static final int START_TRANSITION_CALLBACK
protected callback_object _cback_obj
Constructor Detail |
public anim_mover_container(int xpos, int ypos, interactor child)
int
- xpos initial x position of the container.int
- ypos initial y position of the container.interactor
- child child object to install under this container.public anim_mover_container(int xpos, int ypos, interactor child, callback_object co)
The callback object gets the callback with 0 value for start and a 1 value for end. The callback_info in both cases is the transition being started or stopped.
int
- xpos initial x position of the container.int
- ypos initial y position of the container.interactor
- child child object to install under this container.callback_object
- co object we make callbacks to.Method Detail |
public void set_transition(transition t)
transition
- t the transition we schedule for this object.public int first_callback_num()
public int last_callback_num()
public void start_transition(transition trans, trajectory traj, double start_t, java.lang.Object start_obj, event e, java.lang.Object user_info)
transition
- trans the transition object controlling this.trajectory
- traj the trajectory it is working over.double
- start_t start value along trajectory 0..1.Object
- start_obj first data value out of trajectory (must be
a Point object).event
- e event "causing" the animation.Object
- user_info the information associated with then object
when the transition was scheduled.public void transition_step(transition trans, trajectory traj, double start_t, java.lang.Object start_obj, double end_t, java.lang.Object end_obj, event e, java.lang.Object user_info)
transition
- trans the transition object controlling this.trajectory
- traj the trajectory it is working over.double
- start_t start value of this step (within 0..1 overall)Object
- start_obj start data value for this step (this must be
a Point object).double
- end_t end value of this step (within 0..1 overall)Object
- end_obj end data value for this step (this must be
a Point object).event
- e event "causing" the animation.Object
- user_info the information associated with then object
when the transition was scheduled.public void end_transition(transition trans, trajectory traj, double start_t, java.lang.Object start_obj, double end_t, java.lang.Object end_obj, event e, java.lang.Object user_info)
transition
- trans the transition object controlling this.trajectory
- traj the trajectory it is working over.double
- start_t start value of this step (within 0..1 overall)Object
- start_obj start data value for this step (this must be
a Point object).double
- end_t end value of this step (within 0..1 overall)Object
- end_obj end data value for this step (this must be
a Point object).event
- e event "causing" the animation.Object
- user_info the information associated with then object
when the transition was scheduled.public callback_object callback_obj()
public void set_callback_obj(callback_object co)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |