| Modifier and Type | Field | Description |
|---|---|---|
protected java.util.ArrayList<Drawable> |
drawableList |
|
protected double |
theta |
|
protected double |
x |
|
protected double |
y |
| Constructor | Description |
|---|---|
DrawableGroup() |
| Modifier and Type | Method | Description |
|---|---|---|
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.
|
protected double x
protected double y
protected double theta
protected java.util.ArrayList<Drawable> drawableList
public void addDrawable(Drawable drawable)
drawable - public void draw(DrawingPanel panel, java.awt.Graphics g)
public 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 -