Module org.controlsfx.controls
Class ToSouthwestChangeStrategy
- java.lang.Object
- 
- impl.org.controlsfx.tools.rectangle.change.ToSouthwestChangeStrategy
 
- 
- All Implemented Interfaces:
- Rectangle2DChangeStrategy
 
 public class ToSouthwestChangeStrategy extends Object A strategy which enlarges an existing rectangle to the southwest.
- 
- 
Constructor SummaryConstructors Constructor Description ToSouthwestChangeStrategy(Rectangle2D original, boolean ratioFixed, double ratio, Rectangle2D bounds)Creates a new change strategy which enlarges the specifiedoriginalrectangle to the southwest.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidafterEndHook(Point2D point)Called after the change ends at the specified point.protected voidbeforeBeginHook(Point2D point)Called before the change begins at the specified point.Rectangle2DbeginChange(Point2D point)Begins the change at the specified point.Rectangle2DcontinueChange(Point2D point)Continues the change to the specified point.protected Rectangle2DdoBegin(Point2D point)Begins the change at the specified point.protected Rectangle2DdoContinue(Point2D point)Continues the change to the specified point.protected Rectangle2DdoEnd(Point2D point)Ends the change at the specified point.Rectangle2DendChange(Point2D point)Ends the change at the specified point.protected Point2DgetFixedCorner()Returns the corner which is fixed during the change.protected doublegetRatio()The current ratio.protected booleanisRatioFixed()Indicates whether the ratio is fixed.
 
- 
- 
- 
Constructor Detail- 
ToSouthwestChangeStrategypublic ToSouthwestChangeStrategy(Rectangle2D original, boolean ratioFixed, double ratio, Rectangle2D bounds) Creates a new change strategy which enlarges the specifiedoriginalrectangle to the southwest. The givenratiois enforced when indicated byratioFixed.- Parameters:
- original- the original rectangle
- ratioFixed- indicates whether the rectangle's ratio will be fixed to the- ratio
- ratio- the possibly fixed ratio of the rectangle created by this strategy
- bounds- the bounds within which the new rectangle must be contained
 
 
- 
 - 
Method Detail- 
getFixedCornerprotected Point2D getFixedCorner() Returns the corner which is fixed during the change. Called once when the change begins.- Returns:
- the corner which is fixed during the change
 
 - 
doBeginprotected final Rectangle2D doBegin(Point2D point) Begins the change at the specified point.- Parameters:
- point- a point
- Returns:
- the new rectangle
 
 - 
doContinueprotected Rectangle2D doContinue(Point2D point) Continues the change to the specified point. Must not be called before a call toRectangle2DChangeStrategy.beginChange(javafx.geometry.Point2D).- Parameters:
- point- a point
- Returns:
- the new rectangle
 
 - 
doEndprotected final Rectangle2D doEnd(Point2D point) Ends the change at the specified point. Must not be called before a call toRectangle2DChangeStrategy.beginChange(javafx.geometry.Point2D).- Parameters:
- point- a point
- Returns:
- the new rectangle
 
 - 
isRatioFixedprotected final boolean isRatioFixed() Indicates whether the ratio is fixed. If so, the ratio can be accessed withgetRatio().- Returns:
- true if the ratio is fixed; false otherwise
 
 - 
getRatioprotected final double getRatio() The current ratio. Can only be called without exception whenisRatioFixed()returns true.- Returns:
- the current ratio
 
 - 
beginChangepublic final Rectangle2D beginChange(Point2D point) Begins the change at the specified point.- Specified by:
- beginChangein interface- Rectangle2DChangeStrategy
- Parameters:
- point- a point
- Returns:
- the new rectangle
 
 - 
continueChangepublic final Rectangle2D continueChange(Point2D point) Continues the change to the specified point. Must not be called before a call toRectangle2DChangeStrategy.beginChange(javafx.geometry.Point2D).- Specified by:
- continueChangein interface- Rectangle2DChangeStrategy
- Parameters:
- point- a point
- Returns:
- the new rectangle
 
 - 
endChangepublic final Rectangle2D endChange(Point2D point) Ends the change at the specified point. Must not be called before a call toRectangle2DChangeStrategy.beginChange(javafx.geometry.Point2D).- Specified by:
- endChangein interface- Rectangle2DChangeStrategy
- Parameters:
- point- a point
- Returns:
- the new rectangle
 
 - 
beforeBeginHookprotected void beforeBeginHook(Point2D point) Called before the change begins at the specified point.- Parameters:
- point- a point
 
 - 
afterEndHookprotected void afterEndHook(Point2D point) Called after the change ends at the specified point.- Parameters:
- point- a point
 
 
- 
 
-