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

public Class ToNortheastChangeStrategy

extends AbstractFixedPointChangeStrategy
Class Inheritance
Imports
javafx.geometry.Point2D, .Rectangle2D

A strategy which enlarges an existing rectangle to the northeast.

Field Summary

Modifier and TypeField and Description
private final Point2D
southwesternCorner

The new rectangle's southwestern corner.

Constructor Summary

AccessConstructor and Description
public
ToNortheastChangeStrategy(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 new rectangle must be contained
bounds
)

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

Method Summary

Modifier and TypeMethod and Description
protected Point2D
getFixedCorner()

Implements abstract impl.org.controlsfx.tools.rectangle.change.AbstractFixedPointChangeStrategy.getFixedCorner.

Returns the corner which is fixed during the change.

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

Field Detail

southwesternCornerback to summary
private final Point2D southwesternCorner

The new rectangle's southwestern corner.

Constructor Detail

ToNortheastChangeStrategyback to summary
public ToNortheastChangeStrategy(Rectangle2D original, boolean ratioFixed, double ratio, Rectangle2D bounds)

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

bounds:Rectangle2D

the bounds within which the new rectangle must be contained

Method Detail

getFixedCornerback to summary
protected Point2D getFixedCorner()

Implements abstract impl.org.controlsfx.tools.rectangle.change.AbstractFixedPointChangeStrategy.getFixedCorner.

Doc from impl.org.controlsfx.tools.rectangle.change.AbstractFixedPointChangeStrategy.getFixedCorner.

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

Annotations
@Override