Rectangle2DChangeStrategy which compute their rectangle by
spanning it from a fixed point to the point given to continueChange. | Modifier and Type | Field and Description |
|---|---|
| private final Rectangle2D | bounds
A rectangle which defines the bounds within which the new rectangle must be contained. |
| private Point2D | fixedCorner
The point which is fixed during the change. |
| Access | Constructor and Description |
|---|---|
| protected | AbstractFixedPointChangeStrategy(boolean
indicates whether the ratio will be fixed ratioFixed, double defines the fixed ratio ratio, Rectangle2D the bounds within which the new rectangle must be contained bounds)Creates a fixed corner change strategy. |
| Modifier and Type | Method and Description |
|---|---|
| private final Rectangle2D | Returns: the rectangle defined the two cornersthe second corner point)Creates a new rectangle from the two corners defined by |
| protected final 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 final Rectangle2D | doEnd(Point2D point)
Implements abstract impl. Ends the change at the specified point. |
| protected abstract Point2D | Returns: the corner which is fixed during the changeReturns the corner which is fixed during the change. |
| bounds | back to summary |
|---|---|
| private final Rectangle2D bounds A rectangle which defines the bounds within which the new rectangle must be contained. | |
| fixedCorner | back to summary |
|---|---|
| private Point2D fixedCorner The point which is fixed during the change. In | |
| AbstractFixedPointChangeStrategy | back to summary |
|---|---|
| protected AbstractFixedPointChangeStrategy(boolean ratioFixed, double ratio, Rectangle2D bounds) Creates a fixed corner change strategy. It respects the specified
| |
| createFromCorners | back to summary |
|---|---|
| private final Rectangle2D createFromCorners(Point2D point) Creates a new rectangle from the two corners defined by
| |
| doBegin | back to summary |
|---|---|
| protected final 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 final 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
| |
| getFixedCorner | back to summary |
|---|---|
| protected abstract Point2D getFixedCorner() Returns the corner which is fixed during the change. Called once when the change begins.
| |