Module org.controlsfx.controls
Interface Rectangle2DChangeStrategy
-
- All Known Implementing Classes:
MoveChangeStrategy
,NewChangeStrategy
,ToEastChangeStrategy
,ToNorthChangeStrategy
,ToNortheastChangeStrategy
,ToNorthwestChangeStrategy
,ToSouthChangeStrategy
,ToSoutheastChangeStrategy
,ToSouthwestChangeStrategy
,ToWestChangeStrategy
public interface Rectangle2DChangeStrategy
ARectangle2DChangeStrategy
creates instances ofRectangle2D
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
)*
Most implementations will be creating new rectangles based on an existing one. If the created ones constantly replace the original, this effectively "changes" the rectangle's appearance (note thatRectangle2D
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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Rectangle2D
beginChange(Point2D point)
Begins the change at the specified point.Rectangle2D
continueChange(Point2D point)
Continues the change to the specified point.Rectangle2D
endChange(Point2D point)
Ends the change at the specified point.
-
-
-
Method Detail
-
beginChange
Rectangle2D beginChange(Point2D point)
Begins the change at the specified point.- Parameters:
point
- a point- Returns:
- the new rectangle
-
continueChange
Rectangle2D continueChange(Point2D point)
Continues the change to the specified point. Must not be called before a call tobeginChange(javafx.geometry.Point2D)
.- Parameters:
point
- a point- Returns:
- the new rectangle
-
endChange
Rectangle2D endChange(Point2D point)
Ends the change at the specified point. Must not be called before a call tobeginChange(javafx.geometry.Point2D)
.- Parameters:
point
- a point- Returns:
- the new rectangle
-
-