public class Legs
extends java.lang.Object
Constructor and Description |
---|
Legs(int x,
int y,
java.awt.Image leg)
Constructor for Legs
|
Modifier and Type | Method and Description |
---|---|
void |
draw(java.awt.Graphics g)
Used to draw the legs
|
int |
getX()
used to return x coordinates for the leg
|
int |
getY()
used to return y coordinates for the leg
|
void |
rotate(double radians)
Used to rotate legs
|
void |
setImage(java.awt.Image image)
sets image for the leg
|
void |
shift(double x,
double y)
used to shift the legs
|
public Legs(int x, int y, java.awt.Image leg)
x
- y
- leg
- public void rotate(double radians)
radians
- public void shift(double x, double y)
x
- y
- public void draw(java.awt.Graphics g)
g
- public int getX()
public int getY()
public void setImage(java.awt.Image image)
image
-