|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensourcephysics.display.DrawableGroup
public class DrawableGroup
Draws a group of shapes.
Constructor Summary | |
---|---|
DrawableGroup()
|
Method Summary | |
---|---|
void |
addDrawable(Drawable drawable)
Adds a drawable object to the drawable list. |
void |
draw(DrawingPanel panel,
java.awt.Graphics g)
Draws the shapes in the drawable list. |
double |
getTheta()
Gets the rotation angle in radians. |
double |
getX()
Gets the x location. |
double |
getY()
Gets the y location. |
void |
setTheta(double _theta)
Sets the rotation angle in radians. |
void |
setX(double _x)
Sets the x coordinate. |
void |
setXY(double _x,
double _y)
Sets the x and y coordinates. |
void |
setY(double _y)
Sets the y coordinate. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DrawableGroup()
Method Detail |
---|
public void addDrawable(Drawable drawable)
drawable
- public void draw(DrawingPanel panel, java.awt.Graphics g)
draw
in interface Drawable
panel
- the drawing panelg
- the graphics contextpublic void setXY(double _x, double _y)
_x
- double_y
- doublepublic void setX(double _x)
_x
- public double getX()
public double getY()
public void setY(double _y)
_y
- public double getTheta()
public void setTheta(double _theta)
_theta
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |