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, @NonNull Collection<Handle> handles) Creates handles for each corner of a figure and adds them to the provided collection.static voidaddEdgeTransformHandles(TransformableFigure f, @NonNull Collection<Handle> handles) Fills the given collection with handles at each the north, south, east, and west of the figure.static voidaddTransformHandles(TransformableFigure f, @NonNull Collection<Handle> handles) Fills the given collection with handles at each the north, south, east, and west of the figure.east(TransformableFigure owner) Creates a handle for the specified figure.north(TransformableFigure owner) Creates a handle for the specified figure.northEast(TransformableFigure owner) Creates a handle for the specified figure.northWest(TransformableFigure owner) Creates a handle for the specified figure.south(TransformableFigure owner) Creates a handle for the specified figure.southEast(TransformableFigure owner) Creates a handle for the specified figure.southWest(TransformableFigure owner) Creates a handle for the specified figure.west(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
public static void addCornerTransformHandles(TransformableFigure f, @NonNull Collection<Handle> handles) 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
public static void addEdgeTransformHandles(TransformableFigure f, @NonNull Collection<Handle> handles) 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
-