|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--kinetic.KineticObject | +--kinetic.KineticRectangle
creates a rectangle that can be used in the engine and be drawn on the screen
Field Summary | |
double |
absoluteX
global coordinate x |
double |
absoluteY
global coordinate y |
protected java.awt.geom.Rectangle2D |
original_bounds
local coordinate space bounding box |
protected java.awt.geom.GeneralPath |
transformed_bounds
global coordinate space bounding box |
kinetic.KineticProperty |
xSize
horizontal dimension |
kinetic.KineticProperty |
ySize
vertical dimension |
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 | |
KineticRectangle()
creates a new instance of a KineticRectangle |
|
KineticRectangle(java.lang.String n,
double del,
double dur)
creates a new instance |
Method Summary | |
boolean |
contains(java.awt.Point p)
hits test |
void |
draw(java.awt.Graphics2D g2)
main draw routine |
void |
draw(java.awt.Graphics2D g2,
java.awt.geom.AffineTransform ax)
main draw routin when affinte transform is provided |
double |
getAbsoluteX()
get global coordinate x |
double |
getAbsoluteY()
get global coordinate y |
java.awt.geom.Rectangle2D |
getBounds()
gets global coordinate boundin box |
double |
getHeight()
get width of global coordinate BBox |
double |
getWidth()
get width of global coordinate BBox |
void |
setSize(double width,
double height)
set size |
Methods inherited from class kinetic.KineticObject |
addProperty, addTimeFilter, clear, getDelay, getDuration, getMaxDuration, getName, getPropertyList, getTimeFilterList, handleMouseEvent, initialize, onUpdate, PrepareVariables, reset, setColor, setColor, setColor, setDelay, setDuration, setMode, setName, setOrientation, setPosition, setRotation, setScale, update |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.awt.geom.Rectangle2D original_bounds
protected java.awt.geom.GeneralPath transformed_bounds
public double absoluteX
public double absoluteY
public kinetic.KineticProperty xSize
public kinetic.KineticProperty ySize
Constructor Detail |
public KineticRectangle()
public KineticRectangle(java.lang.String n, double del, double dur)
n
- namedel
- delay - msdur
- dur - msMethod 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 java.awt.geom.Rectangle2D getBounds()
public void setSize(double width, double height)
width
- widthheight
- heightpublic boolean contains(java.awt.Point p)
contains
in class KineticObject
p
- hit point
public double getWidth()
public double getHeight()
public double getAbsoluteX()
public double getAbsoluteY()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |