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

pack-priv abstract Class AbstractPreviousRectangleChangeStrategy

extends AbstractRatioRespectingChangeStrategy
Class Inheritance
Known Direct Subclasses
impl.org.controlsfx.tools.rectangle.change.MoveChangeStrategy
Imports
java.util.Objects, javafx.geometry.Rectangle2D

Abstract superclass to those implementations of Rectangle2DChangeStrategy, which are based on a previous rectangle. Respects a ratio if one is set.

Field Summary

Modifier and TypeField and Description
private final Rectangle2D
previous

The rectangle these changes are based on.

Constructor Summary

AccessConstructor and Description
protected
AbstractPreviousRectangleChangeStrategy(Rectangle2D
the previous rectangle this change is based on
previous
,
boolean
indicates whether the ratio will be fixed
ratioFixed
,
double
defines the fixed ratio
ratio
)

Creates a change strategy which is based on the specified previous rectangle and respects the specified ratio if ratioFixed is true.

Method Summary

Modifier and TypeMethod and Description
protected final Rectangle2D

Returns:

the previous rectangle
getPrevious
()

The previous rectangle this change is based on.

Inherited from impl.org.controlsfx.tools.rectangle.change.AbstractRatioRespectingChangeStrategy:
getRatioisRatioFixed

Field Detail

previousback to summary
private final Rectangle2D previous

The rectangle these changes are based on.

Constructor Detail

AbstractPreviousRectangleChangeStrategyback to summary
protected AbstractPreviousRectangleChangeStrategy(Rectangle2D previous, boolean ratioFixed, double ratio)

Creates a change strategy which is based on the specified previous rectangle and respects the specified ratio if ratioFixed is true.

Parameters
previous:Rectangle2D

the previous rectangle this change is based on

ratioFixed:boolean

indicates whether the ratio will be fixed

ratio:double

defines the fixed ratio

Method Detail

getPreviousback to summary
protected final Rectangle2D getPrevious()

The previous rectangle this change is based on.

Returns:Rectangle2D

the previous rectangle