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

public Class ToSouthwestChangeStrategy

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

A strategy which enlarges an existing rectangle to the southwest.
Author
pan

Field Summary

Modifier and TypeField and Description
private final Point2D
northeasternCorner

The new rectangle's northeastern corner.

Constructor Summary

AccessConstructor and Description
public
ToSouthwestChangeStrategy(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 southwest.

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

northeasternCornerback to summary
private final Point2D northeasternCorner

The new rectangle's northeastern corner.

Constructor Detail

ToSouthwestChangeStrategyback to summary
public ToSouthwestChangeStrategy(Rectangle2D original, boolean ratioFixed, double ratio, Rectangle2D bounds)

Creates a new change strategy which enlarges the specified original rectangle to the southwest. 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