JHotDraw 7.1

org.jhotdraw.draw
Class TransformHandleKit

java.lang.Object
  extended by org.jhotdraw.draw.TransformHandleKit

public class TransformHandleKit
extends java.lang.Object

A set of utility methods to create Handles which transform a Figure by using its transform method.

Version:
3.0 2007-04-14 Renamed to TransformHandleKit to differentiate it from the BoundsHandleKit.
2.0 2006-01-14 Changed to support double precision coordinates.
1.0 2003-12-01 Derived from JHotDraw 5.4b1.
Author:
Werntransformr

Constructor Summary
TransformHandleKit()
          Creates a new instance.
 
Method Summary
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.
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.
static void addScaleMoveTransformHandles(Figure f, java.util.Collection<Handle> handles)
          Adds handles for scaling and moving a Figure.
static void addTransformHandles(Figure f, java.util.Collection<Handle> handles)
          Adds handles for scaling, moving, rotating and shearing a Figure.
static Handle east(Figure owner)
           
static Handle north(Figure owner)
           
static Handle northEast(Figure owner)
           
static Handle northWest(Figure owner)
           
static Handle south(Figure owner)
           
static Handle southEast(Figure owner)
           
static Handle southWest(Figure owner)
           
static Handle west(Figure owner)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransformHandleKit

public TransformHandleKit()
Creates a new instance.

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.


south

public static Handle south(Figure owner)

southEast

public static Handle southEast(Figure owner)

southWest

public static Handle southWest(Figure owner)

north

public static Handle north(Figure owner)

northEast

public static Handle northEast(Figure owner)

northWest

public static Handle northWest(Figure owner)

east

public static Handle east(Figure owner)

west

public static Handle west(Figure owner)

Copyright 1996-2007 (c) JHotDraw.org.
Some rights reserved.