java.lang.Object
org.jhotdraw8.draw.handle.ResizeHandleKit
/**
A set of utility methods to create handles which resize a Figure by using its
reshapeInLocal method, if the Figure is transformable.- 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 voidaddCornerResizeHandles(Figure f, Collection<Handle> handles) Creates handles for each corner of a figure and adds them to the provided collection.static voidaddEdgeResizeHandles(Figure f, Collection<Handle> handles) Fills the given collection with handles at each the north, south, east, and west of the figure.static voidaddResizeHandles(Figure f, Collection<Handle> handles) Fills the given collection with handles at each the north, south, east, and west of the figure.static HandleCreates a handle for the specified figure.static HandleCreates a handle for the specified figure.static HandleCreates a handle for the specified figure.static HandleCreates a handle for the specified figure.static HandleCreates a handle for the specified figure.static HandleCreates a handle for the specified figure.static HandleCreates a handle for the specified figure.static HandleCreates 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
-
addCornerResizeHandles
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
-
addEdgeResizeHandles
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
-
addResizeHandles
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
-