public AbstractMoveableShape(float x, float y)(Code)
Constructs a new moveable shape.
Parameters: x - X co-ordinate of shape Parameters: y - Y co-ordinate of shape
Method Detail
controlPointContains
public boolean controlPointContains(double x, double y)(Code)
Checks if a co-ordinate is within the control point for this
moveable shape.
Parameters: x - X co-ordinate to check Parameters: y - Y co-ordinate to check true if the co-ordinate is within the control point
protected void setMoveControl(Point2D.Double control, int nWidth, int nHeight)(Code)
Sets the position and size of the control point for this moveable
shape.
Parameters: control - 2D position of control point Parameters: nWidth - Width Parameters: nHeight - Height