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

pack-priv abstract Class AbstractBeginEndCheckingChangeStrategy

extends Object
implements Rectangle2DChangeStrategy
Class Inheritance
All Implemented Interfaces
impl.org.controlsfx.tools.rectangle.change.Rectangle2DChangeStrategy
Known Direct Subclasses
impl.org.controlsfx.tools.rectangle.change.AbstractRatioRespectingChangeStrategy
Imports
java.util.Objects, javafx.geometry.Point2D, .Rectangle2D

Abstract superclass to implementations of Rectangle2DChangeStrategy. Checks whether the specified points are not-null and the "begin-continue-end"-contract.

Field Summary

Modifier and TypeField and Description
private boolean
beforeBegin

Indicates whether beginChange was called.

Constructor Summary

AccessConstructor and Description
protected
AbstractBeginEndCheckingChangeStrategy()

Creates a change strategy which checks whether begin and end are correctly called.

Method Summary

Modifier and TypeMethod and Description
protected void
afterEndHook(Point2D
a point
point
)

Called after the change ends at the specified point.

protected void
beforeBeginHook(Point2D
a point
point
)

Called before the change begins at the specified point.

public final Rectangle2D
public final Rectangle2D
protected abstract Rectangle2D

Returns:

the new rectangle
doBegin
(Point2D
a point
point
)

Begins the change at the specified point.

protected abstract Rectangle2D

Returns:

the new rectangle
doContinue
(Point2D
a point
point
)

Continues the change to the specified point.

protected abstract Rectangle2D

Returns:

the new rectangle
doEnd
(Point2D
a point
point
)

Ends the change at the specified point.

public final Rectangle2D
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

beforeBeginback to summary
private boolean beforeBegin

Indicates whether beginChange was called.

Constructor Detail

AbstractBeginEndCheckingChangeStrategyback to summary
protected AbstractBeginEndCheckingChangeStrategy()

Creates a change strategy which checks whether begin and end are correctly called.

Method Detail

afterEndHookback to summary
protected void afterEndHook(Point2D point)

Called after the change ends at the specified point.

Parameters
point:Point2D

a point

beforeBeginHookback to summary
protected void beforeBeginHook(Point2D point)

Called before the change begins at the specified point.

Parameters
point:Point2D

a point

beginChangeback to summary
public final Rectangle2D beginChange(Point2D point)

Implements impl.org.controlsfx.tools.rectangle.change.Rectangle2DChangeStrategy.beginChange.

Doc from impl.org.controlsfx.tools.rectangle.change.Rectangle2DChangeStrategy.beginChange.

Begins the change at the specified point.

Annotations
@Override
continueChangeback to summary
public final Rectangle2D continueChange(Point2D point)

Implements impl.org.controlsfx.tools.rectangle.change.Rectangle2DChangeStrategy.continueChange.

Doc from impl.org.controlsfx.tools.rectangle.change.Rectangle2DChangeStrategy.continueChange.

Continues the change to the specified point. Must not be called before a call to beginChange.

Annotations
@Override
doBeginback to summary
protected abstract Rectangle2D doBegin(Point2D point)

Begins the change at the specified point.

Parameters
point:Point2D

a point

Returns:Rectangle2D

the new rectangle

doContinueback to summary
protected abstract Rectangle2D doContinue(Point2D point)

Continues the change to the specified point. Must not be called before a call to beginChange.

Parameters
point:Point2D

a point

Returns:Rectangle2D

the new rectangle

doEndback to summary
protected abstract Rectangle2D doEnd(Point2D point)

Ends the change at the specified point. Must not be called before a call to beginChange.

Parameters
point:Point2D

a point

Returns:Rectangle2D

the new rectangle

endChangeback to summary
public final Rectangle2D endChange(Point2D point)

Implements impl.org.controlsfx.tools.rectangle.change.Rectangle2DChangeStrategy.endChange.

Doc from impl.org.controlsfx.tools.rectangle.change.Rectangle2DChangeStrategy.endChange.

Ends the change at the specified point. Must not be called before a call to beginChange.

Annotations
@Override