|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--kinetic.KineticObject
base class for all drawing objects in the engine
Field Summary | |
kinetic.KineticProperty |
alpha
alpha channel value |
kinetic.KineticProperty |
blue
blue color channel value |
static int |
BOTTOM_CENTER
justification option |
static int |
BOTTOM_LEFT
justification option |
static int |
BOTTOM_RIGHT
justification option |
kinetic.Delay |
delay
accessor pointer to the common delay all seqeunces have |
kinetic.KineticProperty |
duration
sequence duration - this is used for temporal culling |
kinetic.KineticProperty |
green
green color channel value |
protected double |
lastUpdateTime
stores that last tim ethis object was updated |
static int |
MIDDLE_CENTER
justification option |
static int |
MIDDLE_LEFT
justification option |
static int |
MIDDLE_RIGHT
justification option |
protected int |
mode
utility varliable for mode switching - currently unused |
java.lang.String |
name
name of this object |
protected int |
orientation
centerpoint justification |
protected kinetic.KineticObject |
parent
stores the paraent object if it exists |
protected java.util.ArrayList |
properties
list of properties for this object |
kinetic.KineticProperty |
red
red color channel value |
kinetic.KineticProperty |
rotation
rotation property |
protected boolean |
selected
slection flag for editting |
protected java.util.ArrayList |
timeFilters
list of time filters |
static int |
TOP_CENTER
justification option |
static int |
TOP_LEFT
justification option |
static int |
TOP_RIGHT
justification option |
protected boolean |
visible
flag for visibility |
kinetic.KineticProperty |
x
x position property |
kinetic.KineticProperty |
xScale
horizontal scale |
kinetic.KineticProperty |
xShear
horizontal shear |
kinetic.KineticProperty |
y
y position property |
kinetic.KineticProperty |
yScale
vertical scale |
kinetic.KineticProperty |
yShear
vertical shear |
Constructor Summary | |
KineticObject()
creates a new instance of a kinetic object |
|
KineticObject(java.lang.String n,
double del,
double dur)
creates a new instance of a kinetic object |
Method Summary | |
protected void |
addProperty(kinetic.KineticProperty p)
utility function for registering a new property onto this object |
void |
addTimeFilter(kinetic.TimeFilter tf)
add a new time filter |
void |
clear()
Called when all animation data is to be erased. |
abstract boolean |
contains(java.awt.Point p)
used for hit testing purposes |
void |
draw(java.awt.Graphics2D g2)
called when this object is requested to be drawn |
abstract void |
draw(java.awt.Graphics2D g2,
java.awt.geom.AffineTransform ax)
called when this object is requested to be drawn, provides a transformation matrix from parent |
double |
getDelay()
get delay |
double |
getDuration()
get duration |
double |
getMaxDuration()
gets maximum or unprocessed value of duration |
java.lang.String |
getName()
gets the name of this object |
java.util.ArrayList |
getPropertyList()
gets the list of properties in this object |
java.util.ArrayList |
getTimeFilterList()
gets the list of timefilters for this object |
void |
handleMouseEvent(java.awt.event.MouseEvent e,
boolean button_event,
double time,
java.awt.Graphics2D g2)
used to support interactive capabilites |
void |
initialize()
initializes and registers internal variables |
void |
onUpdate(double time)
called when the update is finished and provides a method of doing more processing |
double |
PrepareVariables(double time)
prepare all properties with the filtered value of time |
void |
reset()
called to reset internal variables used in this object |
void |
setColor(java.awt.Color c)
set color, alpha = 1.0 |
void |
setColor(double r,
double g,
double b)
set color, alpha = 1.0 |
void |
setColor(double r,
double g,
double b,
double a)
set color with alpha |
void |
setDelay(double delayVal)
set delay |
void |
setDuration(double d)
set duration |
void |
setMode(int newMode)
set the current mode |
void |
setName(java.lang.String n)
sets the name of this object |
void |
setOrientation(int orient)
sets orientation |
void |
setPosition(double x_val,
double y_val)
set position |
void |
setRotation(double rot)
set rotation |
void |
setScale(double x_val,
double y_val)
set scale |
void |
update(double time)
updates this object with the new time |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected kinetic.KineticObject parent
protected java.util.ArrayList properties
protected java.util.ArrayList timeFilters
public kinetic.KineticProperty x
public kinetic.KineticProperty y
public kinetic.KineticProperty rotation
public kinetic.KineticProperty xScale
public kinetic.KineticProperty yScale
public kinetic.KineticProperty xShear
public kinetic.KineticProperty yShear
public kinetic.KineticProperty red
public kinetic.KineticProperty green
public kinetic.KineticProperty blue
public kinetic.KineticProperty alpha
public kinetic.KineticProperty duration
public kinetic.Delay delay
protected boolean visible
protected boolean selected
protected double lastUpdateTime
protected int orientation
protected int mode
public static final int BOTTOM_LEFT
public static final int BOTTOM_CENTER
public static final int BOTTOM_RIGHT
public static final int MIDDLE_LEFT
public static final int MIDDLE_CENTER
public static final int MIDDLE_RIGHT
public static final int TOP_LEFT
public static final int TOP_CENTER
public static final int TOP_RIGHT
public java.lang.String name
Constructor Detail |
public KineticObject()
public KineticObject(java.lang.String n, double del, double dur)
n
- namedel
- delay - msdur
- dur - msMethod Detail |
public void initialize()
public void draw(java.awt.Graphics2D g2)
g2
- graphics handlepublic abstract void draw(java.awt.Graphics2D g2, java.awt.geom.AffineTransform ax)
g2
- graphcis handleax
- current affine transformpublic abstract boolean contains(java.awt.Point p)
p
- location of the hit test point
public void update(double time)
time
- value of update time - mspublic double PrepareVariables(double time)
time
- input time
public void onUpdate(double time)
time
- post-processed input timepublic void clear()
public void setOrientation(int orient)
orient
- orientation optionpublic void setName(java.lang.String n)
n
- new namepublic java.lang.String getName()
public java.util.ArrayList getPropertyList()
public java.util.ArrayList getTimeFilterList()
public void reset()
public void handleMouseEvent(java.awt.event.MouseEvent e, boolean button_event, double time, java.awt.Graphics2D g2)
e
- mouse eventbutton_event
- true if event was produced by a buttontime
- timestamps of the eventg2
- graphics handlepublic void setMode(int newMode)
newMode
- new mode valuepublic void setDelay(double delayVal)
delayVal
- new delay time -mspublic void addTimeFilter(kinetic.TimeFilter tf)
tf
- instance of a time filterpublic void setPosition(double x_val, double y_val)
x_val
- x positiony_val
- y positionpublic void setScale(double x_val, double y_val)
x_val
- x scaley_val
- y scalepublic void setRotation(double rot)
rot
- new rotationpublic double getDuration()
public void setDuration(double d)
d
- new durationpublic double getDelay()
public void setColor(double r, double g, double b, double a)
r
- red channelg
- green channelb
- blue channela
- alpha channelpublic void setColor(double r, double g, double b)
r
- red channelg
- green channelb
- blue channelpublic void setColor(java.awt.Color c)
c
- an instance of java.awt.Colorprotected void addProperty(kinetic.KineticProperty p)
p
- the KineticProperty to be addedpublic double getMaxDuration()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |