Rectangle2DChangeStrategy creates instances of Rectangle2D based on the coordinates of the begin,
continuation and end of an action. The behavior is undefined if these three methods are not called on the following
order:begin -> continue* -> end
)* Rectangle2D instances
themselves are immutable !). This interface and its implementations were created to easily allow a GUI user to change
an existing rectangle by typical resize and move operations.
| Modifier and Type | Method and Description |
|---|---|
| public Rectangle2D | Returns: the new rectanglea point point)Begins the change at the specified point. |
| public Rectangle2D | Returns: the new rectanglea point point)Continues the change to the specified point. |
| public Rectangle2D |
| beginChange | back to summary |
|---|---|
| public Rectangle2D beginChange(Point2D point) Begins the change at the specified point.
| |
| continueChange | back to summary |
|---|---|
| public Rectangle2D continueChange(Point2D point) Continues the change to the specified point. Must not be called before a call to
| |
| endChange | back to summary |
|---|---|
| public Rectangle2D endChange(Point2D point) Ends the change at the specified point. Must not be called before a call to
| |