public enum TranslationDirection extends java.lang.Enum<TranslationDirection>
This enumeration is used by drawing tools and handles to perform constrained transforms of figures on a drawing.
Constrainer
Enum Constant and Description |
---|
EAST |
NORTH |
NORTH_EAST |
NORTH_WEST |
SOUTH |
SOUTH_EAST |
SOUTH_WEST |
WEST |
Modifier and Type | Method and Description |
---|---|
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 are declared.
|
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
public static 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 namejava.lang.NullPointerException
- if the argument is nullpublic 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)