Modifier and Type | Field and Description |
---|---|
protected java.util.ArrayList |
drawableList |
protected double |
theta |
protected double |
x |
protected double |
y |
Constructor and Description |
---|
DrawableGroup() |
Modifier and Type | Method and 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 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
-