- java.lang.Object
-
- java.lang.Enum<CoordinatePosition>
-
- impl.org.controlsfx.tools.rectangle.CoordinatePosition
-
- All Implemented Interfaces:
Serializable
,Comparable<CoordinatePosition>
public enum CoordinatePosition extends Enum<CoordinatePosition>
Enumerates all possible positions coordinates can have relative to a rectangle.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EAST_EDGE
The coordinates are close to the eastern edge of the rectangle.IN_RECTANGLE
The coordinates are inside the rectangle.NORTH_EDGE
The coordinates are close to the northern edge of the rectangle.NORTHEAST_EDGE
The coordinates are close to the northern and the eastern edge of the rectangle.NORTHWEST_EDGE
The coordinates are close to the northern and the western edge of the rectangle.OUT_OF_RECTANGLE
The coordinates are outside of the rectangle.SOUTH_EDGE
The coordinates are close to the southern edge of the rectangle.SOUTHEAST_EDGE
The coordinates are close to the southern and eastern edge of the rectangle.SOUTHWEST_EDGE
The coordinates are close to the southern and western edge of the rectangle.WEST_EDGE
The coordinates are close to the western edge of the rectangle.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CoordinatePosition
valueOf(String name)
Returns the enum constant of this type with the specified name.static CoordinatePosition[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IN_RECTANGLE
public static final CoordinatePosition IN_RECTANGLE
The coordinates are inside the rectangle.
-
OUT_OF_RECTANGLE
public static final CoordinatePosition OUT_OF_RECTANGLE
The coordinates are outside of the rectangle.
-
NORTH_EDGE
public static final CoordinatePosition NORTH_EDGE
The coordinates are close to the northern edge of the rectangle.
-
NORTHEAST_EDGE
public static final CoordinatePosition NORTHEAST_EDGE
The coordinates are close to the northern and the eastern edge of the rectangle.
-
EAST_EDGE
public static final CoordinatePosition EAST_EDGE
The coordinates are close to the eastern edge of the rectangle.
-
SOUTHEAST_EDGE
public static final CoordinatePosition SOUTHEAST_EDGE
The coordinates are close to the southern and eastern edge of the rectangle.
-
SOUTH_EDGE
public static final CoordinatePosition SOUTH_EDGE
The coordinates are close to the southern edge of the rectangle.
-
SOUTHWEST_EDGE
public static final CoordinatePosition SOUTHWEST_EDGE
The coordinates are close to the southern and western edge of the rectangle.
-
WEST_EDGE
public static final CoordinatePosition WEST_EDGE
The coordinates are close to the western edge of the rectangle.
-
NORTHWEST_EDGE
public static final CoordinatePosition NORTHWEST_EDGE
The coordinates are close to the northern and the western edge of the rectangle.
-
-
Method Detail
-
values
public static CoordinatePosition[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CoordinatePosition c : CoordinatePosition.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CoordinatePosition valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-