Rectangle2DChangeStrategy which compute their rectangle by
spanning it from a fixed edge to the parallel edge defined by 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 Edge2D | fixedEdge
The edge which is fixed during the change. |
| Access | Constructor and Description |
|---|---|
| protected | AbstractFixedEdgeChangeStrategy(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 edge change strategy. |
| Modifier and Type | Method and Description |
|---|---|
| private final Rectangle2D | Returns: the rectangle defined the two edgesthe point defining the parallel edge point)Creates a new rectangle from the two edges 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 Edge2D | Returns: the edge which is fixed during the changeReturns the edge 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. | |
| fixedEdge | back to summary |
|---|---|
| private Edge2D fixedEdge The edge which is fixed during the change. In | |
| AbstractFixedEdgeChangeStrategy | back to summary |
|---|---|
| protected AbstractFixedEdgeChangeStrategy(boolean ratioFixed, double ratio, Rectangle2D bounds) Creates a fixed edge change strategy. It respects the specified
| |
| createFromEdges | back to summary |
|---|---|
| private final Rectangle2D createFromEdges(Point2D point) Creates a new rectangle from the two edges 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
| |
| getFixedEdge | back to summary |
|---|---|
| protected abstract Edge2D getFixedEdge() Returns the edge which is fixed during the change. Called once when the change begins.
| |