|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vizzini.ui.graphics.ShapeGroup
public final class ShapeGroup
Holds a collection of shapes and draws them.
Constructor Summary | |
---|---|
ShapeGroup()
|
Method Summary | |
---|---|
void |
add(IShape shape)
Add the given shape. |
void |
clear()
Clear all shapes. |
void |
computeScreenPoints(Quaternion q,
Vector v,
double magnify,
int offsetX,
int offsetY,
double d)
Compute the screen points of all the shapes. |
void |
drawOn(Graphics g,
double magnify)
Draw the shapes on the given graphics with the given magnification. |
Rectangle |
getBounds()
Return the bounding box of the screen coordinates. |
boolean |
isEmpty()
Return true if this is empty. |
Iterator |
iterator()
Return an iterator over the shapes. |
void |
remove(IShape shape)
Remove the given shape. |
void |
setSorted(boolean flag)
Set the sorted flag. |
int |
size()
Return the size. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ShapeGroup()
Method Detail |
---|
public void add(IShape shape)
public void clear()
public void computeScreenPoints(Quaternion q, Vector v, double magnify, int offsetX, int offsetY, double d)
q
- The parent quaternion.magnify
- The magnification.offsetX
- The offset X coordinate.offsetY
- The offset Y coordinate.d
- Perspective constant.public void drawOn(Graphics g, double magnify)
g
- The graphics.magnify
- The magnification.public Rectangle getBounds()
public boolean isEmpty()
public Iterator iterator()
public void remove(IShape shape)
shape
- The shape to remove.public void setSorted(boolean flag)
public int size()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |