|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--kinetic.KineticObject
|
+--kinetic.KineticSquare
creates a square 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 boundin box |
| 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 | |
KineticSquare()
creates a new instance of a KineticSquare |
|
| 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 |
| 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
| Constructor Detail |
public KineticSquare()
| Method Detail |
public void draw(java.awt.Graphics2D g2)
draw in class KineticObjectg2 - graphics handle
public void draw(java.awt.Graphics2D g2,
java.awt.geom.AffineTransform ax)
draw in class KineticObjectg2 - graphics handleax - current affine transformpublic java.awt.geom.Rectangle2D getBounds()
public boolean contains(java.awt.Point p)
contains in class KineticObjectp - 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 | |||||||||