|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--kinetic.KineticObject | +--kinetic.Sequence
core organizational object itneh engine. Sequence are used to build the animation hierachies that allow you to break down a complex piece. Each Sequence contains a "cast" list which are of KineticObjects. This means this list can contain KineticStrings or other Sequences. Each Seqeunces perform geometric transofmarions and well as temporal transfomrations before updating or drawing it's children. Sequences propagate time updates and draw requests. Sequences are alos used to temporal culling. This is important for long a complex pieces. Once a KineticObject is completed with and no longer visible, unless it is wrapped in a sequence that has terminated it will continue ot be hit on redraw requests. All objects within a sequence are drawn until the sequence has ended. Subsequences should be used minimize touching words that are no longer visible. Wrapping every word in it's own sequence can be beneficial in many cases but is not necessary.
Field Summary | |
java.util.ArrayList |
cast
cast list |
Fields inherited from class kinetic.KineticObject |
alpha, blue, BOTTOM_CENTER, BOTTOM_LEFT, BOTTOM_RIGHT, delay, duration, green, lastUpdateTime, MIDDLE_CENTER, MIDDLE_LEFT, MIDDLE_RIGHT, mode, name, orientation, parent, properties, red, rotation, selected, timeFilters, TOP_CENTER, TOP_LEFT, TOP_RIGHT, visible, x, xScale, xShear, y, yScale, yShear |
Constructor Summary | |
Sequence()
create a new instance of a sequence |
|
Sequence(java.lang.String n,
double delayVal,
double dur)
create a new instance of sequence with parameters |
Method Summary | |
void |
addCastMember(kinetic.KineticObject obj)
add a new cast member to the cast list |
void |
clear()
empty the cast list and time fitlers |
boolean |
contains(java.awt.Point p)
hit test - currently always return true since seuqence have no visual bounds |
void |
draw(java.awt.Graphics2D g2)
drawing routine with out and affine transform - a new transofrm is created and the main drawing routine is called |
void |
draw(java.awt.Graphics2D g2,
java.awt.geom.AffineTransform ax)
main drawing routine |
void |
expandDurationToFitChildren()
utility function to expand the duration of the sequence to fit the duration of all of it's children (the result of getMaxDuration) automatically. |
kinetic.KineticObject |
getCastMember(int i)
access a particular cast member |
int |
getCastSize()
get cast list size |
double |
getMaxDuration()
gets maximum or unprecessed value of duration. |
void |
reset()
reset internal variables and cast members |
void |
setMode(int newMode)
set mode |
void |
update(double time)
updates cast members |
Methods inherited from class kinetic.KineticObject |
addProperty, addTimeFilter, getDelay, getDuration, getName, getPropertyList, getTimeFilterList, handleMouseEvent, initialize, onUpdate, PrepareVariables, setColor, setColor, setColor, setDelay, setDuration, setName, setOrientation, setPosition, setRotation, setScale |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public java.util.ArrayList cast
Constructor Detail |
public Sequence()
public Sequence(java.lang.String n, double delayVal, double dur)
n
- Sequence namedelayVal
- time until this sequence starts - msdur
- duration of this sequenceMethod Detail |
public void draw(java.awt.Graphics2D g2)
draw
in class KineticObject
g2
- graphics handlepublic void draw(java.awt.Graphics2D g2, java.awt.geom.AffineTransform ax)
draw
in class KineticObject
g2
- graphics handleax
- current affine transformpublic void addCastMember(kinetic.KineticObject obj)
obj
- instance of a KineticObjectpublic void clear()
clear
in class KineticObject
public void update(double time)
update
in class KineticObject
time
- input timepublic int getCastSize()
public kinetic.KineticObject getCastMember(int i)
i
- cast index
public boolean contains(java.awt.Point p)
contains
in class KineticObject
p
- hit point
public void reset()
reset
in class KineticObject
public void setMode(int newMode)
setMode
in class KineticObject
newMode
- new modepublic void expandDurationToFitChildren()
public double getMaxDuration()
getMaxDuration
in class KineticObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |