| Modifier and Type | Field and Description |
|---|---|
| private final Rectangle2D | bounds
A rectangle which defines the bounds within which the previous rectangle can be moved. |
| private Point2D | startingPoint
The starting point of the selection change. |
| Access | Constructor and Description |
|---|---|
| public | MoveChangeStrategy(Rectangle2D
the previous rectangle this move is based on previous, Rectangle2D the bounds within which the rectangle can be moved bounds)Creates a new change strategy which moves the specified rectangle within the specified bounds. |
| public | MoveChangeStrategy(Rectangle2D
the previous rectangle this move is based on previous, double the maximal x-coordinate of the right edge of the created rectangles; must be greater than or equal to
the previous rectangle's width maxX, double the maximal y-coordinate of the lower edge of the created rectangles; must be greater than or equal to
the previous rectangle's height maxY)Creates a new change strategy which moves the specified rectangle within the specified bounds defined by the
rectangle from |
| Modifier and Type | Method and Description |
|---|---|
| protected Rectangle2D | doBegin(Point2D point)
Implements abstract impl. Begins the change at the specified point. |
| protected Rectangle2D | doContinue(Point2D point)
Implements abstract impl. Continues the change to the specified point. |
| protected Rectangle2D | doEnd(Point2D point)
Implements abstract impl. Ends the change at the specified point. |
| private final Rectangle2D | Returns: the moved rectanglethe vector from the point)startingPoint to this point defines the movementMoves the previous rectangle to the specified point relative to the |
| bounds | back to summary |
|---|---|
| private final Rectangle2D bounds A rectangle which defines the bounds within which the previous rectangle can be moved. | |
| startingPoint | back to summary |
|---|---|
| private Point2D startingPoint The starting point of the selection change. The move will be computed relative to this point. | |
| MoveChangeStrategy | back to summary |
|---|---|
| public MoveChangeStrategy(Rectangle2D previous, Rectangle2D bounds) Creates a new change strategy which moves the specified rectangle within the specified bounds.
| |
| MoveChangeStrategy | back to summary |
|---|---|
| public MoveChangeStrategy(Rectangle2D previous, double maxX, double maxY) Creates a new change strategy which moves the specified rectangle within the specified bounds defined by the
rectangle from
| |
| doBegin | back to summary |
|---|---|
| protected Rectangle2D doBegin(Point2D point) Implements abstract impl. Doc from impl. Begins the change at the specified point.
| |
| doContinue | back to summary |
|---|---|
| protected Rectangle2D doContinue(Point2D point) Implements abstract impl. Doc from impl. Continues the change to the specified point. Must not be called before a call to
| |
| doEnd | back to summary |
|---|---|
| protected Rectangle2D doEnd(Point2D point) Implements abstract impl. Doc from impl. Ends the change at the specified point. Must not be called before a call to
| |
| moveRectangleToPoint | back to summary |
|---|---|
| private final Rectangle2D moveRectangleToPoint(Point2D point) Moves the previous rectangle to the specified point relative to the
| |