Top Description Fields Constructors Methods
impl.org.controlsfx.tools.rectangle.change

public Class ToNorthChangeStrategy

extends AbstractFixedEdgeChangeStrategy
Class Inheritance
Imports
impl.org.controlsfx.tools.rectangle.Edge2D, javafx.geometry.Orientation, .Point2D, .Rectangle2D

A strategy which enlarges an existing rectangle to the north.

Field Summary

Modifier and TypeField and Description
private final Edge2D
southernEdge

The new rectangle's southern edge.

Constructor Summary

AccessConstructor and Description
public
ToNorthChangeStrategy(Rectangle2D
the original rectangle
original
,
boolean
indicates whether the rectangle's ratio will be fixed to the ratio
ratioFixed
,
double
the possibly fixed ratio of the rectangle created by this strategy
ratio
,
Rectangle2D
the bounds within which the rectangle can be resized
bounds
)

Creates a new change strategy which enlarges the specified original rectangle to the north.

public
ToNorthChangeStrategy(Rectangle2D
the original rectangle
original
,
boolean
indicates whether the rectangle's ratio will be fixed to the ratio
ratioFixed
,
double
the possibly fixed ratio of the rectangle created by this strategy
ratio
,
double
the maximal x-coordinate of the right edge of the created rectangles; must be greater than or equal to the previous rectangle's width
maxX
,
double
the maximal y-coordinate of the lower edge of the created rectangles; must be greater than or equal to the previous rectangle's height
maxY
)

Creates a new change strategy which enlarges the specified original rectangle to the northeast.

Method Summary

Modifier and TypeMethod and Description
protected Edge2D
getFixedEdge()

Implements abstract impl.org.controlsfx.tools.rectangle.change.AbstractFixedEdgeChangeStrategy.getFixedEdge.

Returns the edge which is fixed during the change.

Inherited from impl.org.controlsfx.tools.rectangle.change.AbstractFixedEdgeChangeStrategy:
doBegindoContinuedoEnd

Field Detail

southernEdgeback to summary
private final Edge2D southernEdge

The new rectangle's southern edge.

Constructor Detail

ToNorthChangeStrategyback to summary
public ToNorthChangeStrategy(Rectangle2D original, boolean ratioFixed, double ratio, Rectangle2D bounds)

Creates a new change strategy which enlarges the specified original rectangle to the north. The given ratio is enforced when indicated by ratioFixed.

Parameters
original:Rectangle2D

the original rectangle

ratioFixed:boolean

indicates whether the rectangle's ratio will be fixed to the ratio

ratio:double

the possibly fixed ratio of the rectangle created by this strategy

bounds:Rectangle2D

the bounds within which the rectangle can be resized

ToNorthChangeStrategyback to summary
public ToNorthChangeStrategy(Rectangle2D original, boolean ratioFixed, double ratio, double maxX, double maxY)

Creates a new change strategy which enlarges the specified original rectangle to the northeast. The given ratio is enforced when indicated by ratioFixed.

Parameters
original:Rectangle2D

the original rectangle

ratioFixed:boolean

indicates whether the rectangle's ratio will be fixed to the ratio

ratio:double

the possibly fixed ratio of the rectangle created by this strategy

maxX:double

the maximal x-coordinate of the right edge of the created rectangles; must be greater than or equal to the previous rectangle's width

maxY:double

the maximal y-coordinate of the lower edge of the created rectangles; must be greater than or equal to the previous rectangle's height

Method Detail

getFixedEdgeback to summary
protected Edge2D getFixedEdge()

Implements abstract impl.org.controlsfx.tools.rectangle.change.AbstractFixedEdgeChangeStrategy.getFixedEdge.

Doc from impl.org.controlsfx.tools.rectangle.change.AbstractFixedEdgeChangeStrategy.getFixedEdge.

Returns the edge which is fixed during the change. Called once when the change begins.

Annotations
@Override