java.lang.Object
org.jhotdraw8.draw.handle.TransformHandleKit
A set of utility methods to create handles which transform a Figure by using
its
transform method, if the Figure is transformable.
FIXME implement me
- Author:
- Werner Randelshofer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final javafx.scene.shape.SVGPathprotected static final javafx.scene.shape.SVGPathprotected static final javafx.scene.shape.SVGPathprotected static final javafx.scene.shape.SVGPathprotected static final javafx.scene.shape.SVGPathprotected static final javafx.scene.shape.SVGPathprotected static final javafx.scene.shape.SVGPathprotected static final javafx.scene.shape.SVGPath -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddCornerTransformHandles(TransformableFigure f, Collection<Handle> handles) Creates handles for each corner of a figure and adds them to the provided collection.static voidaddEdgeTransformHandles(TransformableFigure f, Collection<Handle> handles) Fills the given collection with handles at each the north, south, east, and west of the figure.static voidaddTransformHandles(TransformableFigure f, Collection<Handle> handles) Fills the given collection with handles at each the north, south, east, and west of the figure.static Handleeast(TransformableFigure owner) Creates a handle for the specified figure.static Handlenorth(TransformableFigure owner) Creates a handle for the specified figure.static HandlenorthEast(TransformableFigure owner) Creates a handle for the specified figure.static HandlenorthWest(TransformableFigure owner) Creates a handle for the specified figure.static Handlesouth(TransformableFigure owner) Creates a handle for the specified figure.static HandlesouthEast(TransformableFigure owner) Creates a handle for the specified figure.static HandlesouthWest(TransformableFigure owner) Creates a handle for the specified figure.static Handlewest(TransformableFigure owner) Creates a handle for the specified figure.
-
Field Details
-
NORTH_SHAPE
protected static final javafx.scene.shape.SVGPath NORTH_SHAPE -
EAST_SHAPE
protected static final javafx.scene.shape.SVGPath EAST_SHAPE -
WEST_SHAPE
protected static final javafx.scene.shape.SVGPath WEST_SHAPE -
SOUTH_SHAPE
protected static final javafx.scene.shape.SVGPath SOUTH_SHAPE -
NORTH_EAST_SHAPE
protected static final javafx.scene.shape.SVGPath NORTH_EAST_SHAPE -
NORTH_WEST_SHAPE
protected static final javafx.scene.shape.SVGPath NORTH_WEST_SHAPE -
SOUTH_EAST_SHAPE
protected static final javafx.scene.shape.SVGPath SOUTH_EAST_SHAPE -
SOUTH_WEST_SHAPE
protected static final javafx.scene.shape.SVGPath SOUTH_WEST_SHAPE
-
-
Method Details
-
addCornerTransformHandles
Creates handles for each corner of a figure and adds them to the provided collection.- Parameters:
f- the figure which will own the handleshandles- the list to which the handles should be added
-
addEdgeTransformHandles
Fills the given collection with handles at each the north, south, east, and west of the figure.- Parameters:
f- the figure which will own the handleshandles- the list to which the handles should be added
-
addTransformHandles
Fills the given collection with handles at each the north, south, east, and west of the figure.- Parameters:
f- the figure which will own the handleshandles- the list to which the handles should be added
-
south
Creates a handle for the specified figure.- Parameters:
owner- the figure which will own the handle- Returns:
- the handle
-
southEast
Creates a handle for the specified figure.- Parameters:
owner- the figure which will own the handle- Returns:
- the handle
-
southWest
Creates a handle for the specified figure.- Parameters:
owner- the figure which will own the handle- Returns:
- the handle
-
north
Creates a handle for the specified figure.- Parameters:
owner- the figure which will own the handle- Returns:
- the handle
-
northEast
Creates a handle for the specified figure.- Parameters:
owner- the figure which will own the handle- Returns:
- the handle
-
northWest
Creates a handle for the specified figure.- Parameters:
owner- the figure which will own the handle- Returns:
- the handle
-
east
Creates a handle for the specified figure.- Parameters:
owner- the figure which will own the handle- Returns:
- the handle
-
west
Creates a handle for the specified figure.- Parameters:
owner- the figure which will own the handle- Returns:
- the handle
-