org.jhotdraw.draw.handle
Class ResizeHandleKit
- java.lang.Object
-
- org.jhotdraw.draw.handle.ResizeHandleKit
-
public class ResizeHandleKit extends java.lang.ObjectA set of utility methods to create handles which resize a Figure by using itssetBoundsmethod, if the Figure is transformable.
-
-
Constructor Summary
Constructors Constructor and Description ResizeHandleKit()Creates a new instance.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidaddCornerResizeHandles(Figure f, java.util.Collection<Handle> handles)Creates handles for each corner of a figure and adds them to the provided collection.static voidaddEdgeResizeHandles(Figure f, java.util.Collection<Handle> handles)Fills the given Vector with handles at each the north, south, east, and west of the figure.static voidaddResizeHandles(Figure f, java.util.Collection<Handle> handles)Fills the given Vector with handles at each the north, south, east, and west of the figure.static Handleeast(Figure owner)static Handlenorth(Figure owner)static HandlenorthEast(Figure owner)static HandlenorthWest(Figure owner)static Handlesouth(Figure owner)static HandlesouthEast(Figure owner)static HandlesouthWest(Figure owner)static Handlewest(Figure owner)
-
-
-
Method Detail
-
addCornerResizeHandles
public static void addCornerResizeHandles(Figure f, java.util.Collection<Handle> handles)
Creates handles for each corner of a figure and adds them to the provided collection.
-
addEdgeResizeHandles
public static void addEdgeResizeHandles(Figure f, java.util.Collection<Handle> handles)
Fills the given Vector with handles at each the north, south, east, and west of the figure.
-
addResizeHandles
public static void addResizeHandles(Figure f, java.util.Collection<Handle> handles)
Fills the given Vector with handles at each the north, south, east, and west of the figure.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG