| Modifier and Type | Field and Description |
|---|---|
| private Point2D | startingPoint
The starting point of this change. |
| Access | Constructor and Description |
|---|---|
| public | NewChangeStrategy(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 change strategy which creates a new rectangle. |
| Modifier and Type | Method and Description |
|---|---|
| protected void | beforeBeginHook(Point2D point)
Overrides impl. Called before the change begins at the specified point. |
| protected Point2D | getFixedCorner()
Implements abstract impl. Returns the corner which is fixed during the change. |
| startingPoint | back to summary |
|---|---|
| private Point2D startingPoint The starting point of this change. | |
| NewChangeStrategy | back to summary |
|---|---|
| public NewChangeStrategy(boolean ratioFixed, double ratio, Rectangle2D bounds) Creates a change strategy which creates a new rectangle. It respects the specified
| |
| beforeBeginHook | back to summary |
|---|---|
| protected void beforeBeginHook(Point2D point) Overrides impl. Doc from impl. Called before the change begins at the specified point.
| |
| getFixedCorner | back to summary |
|---|---|
| protected Point2D getFixedCorner() Implements abstract impl. Doc from impl. Returns the corner which is fixed during the change. Called once when the change begins.
| |