Package adams.gui.visualization.image
Enum RectangleUtils.RectangleCorner
- java.lang.Object
-
- java.lang.Enum<RectangleUtils.RectangleCorner>
-
- adams.gui.visualization.image.RectangleUtils.RectangleCorner
-
- All Implemented Interfaces:
Serializable
,Comparable<RectangleUtils.RectangleCorner>
- Enclosing class:
- RectangleUtils
public static enum RectangleUtils.RectangleCorner extends Enum<RectangleUtils.RectangleCorner>
Defines the corners of a rectangle.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOTTOM_LEFT
BOTTOM_RIGHT
TOP_LEFT
TOP_RIGHT
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RectangleUtils.RectangleCorner
valueOf(String name)
Returns the enum constant of this type with the specified name.static RectangleUtils.RectangleCorner[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TOP_LEFT
public static final RectangleUtils.RectangleCorner TOP_LEFT
-
TOP_RIGHT
public static final RectangleUtils.RectangleCorner TOP_RIGHT
-
BOTTOM_LEFT
public static final RectangleUtils.RectangleCorner BOTTOM_LEFT
-
BOTTOM_RIGHT
public static final RectangleUtils.RectangleCorner BOTTOM_RIGHT
-
-
Method Detail
-
values
public static RectangleUtils.RectangleCorner[] 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 (RectangleUtils.RectangleCorner c : RectangleUtils.RectangleCorner.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RectangleUtils.RectangleCorner 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
-
-