|
JHotDraw 7.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<TranslationDirection>
org.jhotdraw.draw.TranslationDirection
public enum TranslationDirection
Specifies the possible directions for translations on a two-dimensional plane.
This enumeration is used by drawing tools and handles to perform constrained transforms of figures on a drawing.
Constrainer| Enum Constant Summary | |
|---|---|
EAST
|
|
NORTH
|
|
NORTH_EAST
|
|
NORTH_WEST
|
|
SOUTH
|
|
SOUTH_EAST
|
|
SOUTH_WEST
|
|
WEST
|
|
| Method Summary | |
|---|---|
static TranslationDirection |
getDirection(java.awt.geom.Point2D.Double startPoint,
java.awt.geom.Point2D.Double endPoint)
Returns the direction from the provided start point to the end point. |
static TranslationDirection |
getDirection(java.awt.Point startPoint,
java.awt.Point endPoint)
Returns the direction from the provided start point to the end point. |
static TranslationDirection |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static TranslationDirection[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final TranslationDirection NORTH
public static final TranslationDirection WEST
public static final TranslationDirection SOUTH
public static final TranslationDirection EAST
public static final TranslationDirection NORTH_WEST
public static final TranslationDirection SOUTH_WEST
public static final TranslationDirection NORTH_EAST
public static final TranslationDirection SOUTH_EAST
| Method Detail |
|---|
public static final TranslationDirection[] values()
for(TranslationDirection c : TranslationDirection.values())
System.out.println(c);
public static TranslationDirection valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
public static TranslationDirection getDirection(java.awt.Point startPoint,
java.awt.Point endPoint)
public static TranslationDirection getDirection(java.awt.geom.Point2D.Double startPoint,
java.awt.geom.Point2D.Double endPoint)
|
Copyright 1996-2007 (c) JHotDraw.org. Some rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||