AbstractRectangularShapepublic abstract class AbstractRectangularShape extends Object implements RectangularShape
Fields Summary |
---|
protected double | x | protected double | y | protected double | w | protected double | h |
Methods Summary |
---|
public void | setPosition(double x, double y) this.x = x; this.y = y;
| public void | setSize(double width, double height) w = width; h = height;
| public void | translate(double dx, double dy) x += dx; y += dy;
|
|