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

public Class NewChangeStrategy

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

A strategy which creates a new rectangle.

Field Summary

Modifier and TypeField and Description
private Point2D
startingPoint

The starting point of this change.

Constructor Summary

AccessConstructor and Description
public
NewChangeStrategy(boolean
indicates whether the ratio will be fixed
ratioFixed
,
double
defines the fixed ratio
ratio
,
Rectangle2D
the bounds within which the new rectangle must be contained
bounds
)

Creates a change strategy which creates a new rectangle.

Method Summary

Modifier and TypeMethod and Description
protected void
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

startingPointback to summary
private Point2D startingPoint

The starting point of this change.

Constructor Detail

NewChangeStrategyback to summary
public NewChangeStrategy(boolean ratioFixed, double ratio, Rectangle2D bounds)

Creates a change strategy which creates a new rectangle. It respects the specified ratio if ratioFixed is true.

Parameters
ratioFixed:boolean

indicates whether the ratio will be fixed

ratio:double

defines the fixed ratio

bounds:Rectangle2D

the bounds within which the new rectangle must be contained

Method Detail

beforeBeginHookback to summary
protected void beforeBeginHook(Point2D point)

Overrides impl.org.controlsfx.tools.rectangle.change.AbstractBeginEndCheckingChangeStrategy.beforeBeginHook.

Doc from impl.org.controlsfx.tools.rectangle.change.AbstractBeginEndCheckingChangeStrategy.beforeBeginHook.

Called before the change begins at the specified point.

Annotations
@Override
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