org.jhotdraw.draw.handle
Class TransformHandleKit
- java.lang.Object
-
- org.jhotdraw.draw.handle.TransformHandleKit
-
public class TransformHandleKit extends java.lang.ObjectA set of utility methods to create Handles which transform a Figure by using itstransformmethod.
-
-
Constructor Summary
Constructors Constructor and Description TransformHandleKit()Creates a new instance.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidaddCornerTransformHandles(Figure f, java.util.Collection<Handle> handles)Creates handles for each corner of a figure and adds them to the provided collection.static voidaddEdgeTransformHandles(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 voidaddGroupHoverHandles(Figure f, java.util.Collection<Handle> handles)Adds handles for scaling, moving, rotating and shearing a Figure.static voidaddGroupTransformHandles(Figure f, java.util.Collection<Handle> handles)Adds handles for scaling, moving, rotating and shearing a Figure.static voidaddScaleMoveTransformHandles(Figure f, java.util.Collection<Handle> handles)Adds handles for scaling and moving a Figure.static voidaddTransformHandles(Figure f, java.util.Collection<Handle> handles)Adds handles for scaling, moving, rotating and shearing a 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
-
addCornerTransformHandles
public static void addCornerTransformHandles(Figure f, java.util.Collection<Handle> handles)
Creates handles for each corner of a figure and adds them to the provided collection.
-
addEdgeTransformHandles
public static void addEdgeTransformHandles(Figure f, java.util.Collection<Handle> handles)
Fills the given Vector with handles at each the north, south, east, and west of the figure.
-
addScaleMoveTransformHandles
public static void addScaleMoveTransformHandles(Figure f, java.util.Collection<Handle> handles)
Adds handles for scaling and moving a Figure.
-
addTransformHandles
public static void addTransformHandles(Figure f, java.util.Collection<Handle> handles)
Adds handles for scaling, moving, rotating and shearing a Figure.
-
addGroupTransformHandles
public static void addGroupTransformHandles(Figure f, java.util.Collection<Handle> handles)
Adds handles for scaling, moving, rotating and shearing a Figure.
-
addGroupHoverHandles
public static void addGroupHoverHandles(Figure f, java.util.Collection<Handle> handles)
Adds handles for scaling, moving, rotating and shearing a Figure.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG