Package adams.data.image
Enum ImageAnchor
- java.lang.Object
-
- java.lang.Enum<ImageAnchor>
-
- adams.data.image.ImageAnchor
-
- All Implemented Interfaces:
Serializable
,Comparable<ImageAnchor>
public enum ImageAnchor extends Enum<ImageAnchor>
Enumeration for an anchor on an image.TL - TC - TR | | | ML - MC - MR | | | BL - BC - BR
- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOTTOM_CENTER
bottom center.BOTTOM_LEFT
bottom left corner.BOTTOM_RIGHT
bottom right corner.MIDDLE_CENTER
middle center.MIDDLE_LEFT
middle left.MIDDLE_RIGHT
middle right.TOP_CENTER
top center.TOP_LEFT
top left corner.TOP_RIGHT
top right corner.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ImageAnchor
valueOf(String name)
Returns the enum constant of this type with the specified name.static ImageAnchor[]
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 ImageAnchor TOP_LEFT
top left corner.
-
TOP_CENTER
public static final ImageAnchor TOP_CENTER
top center.
-
TOP_RIGHT
public static final ImageAnchor TOP_RIGHT
top right corner.
-
MIDDLE_LEFT
public static final ImageAnchor MIDDLE_LEFT
middle left.
-
MIDDLE_CENTER
public static final ImageAnchor MIDDLE_CENTER
middle center.
-
MIDDLE_RIGHT
public static final ImageAnchor MIDDLE_RIGHT
middle right.
-
BOTTOM_LEFT
public static final ImageAnchor BOTTOM_LEFT
bottom left corner.
-
BOTTOM_CENTER
public static final ImageAnchor BOTTOM_CENTER
bottom center.
-
BOTTOM_RIGHT
public static final ImageAnchor BOTTOM_RIGHT
bottom right corner.
-
-
Method Detail
-
values
public static ImageAnchor[] 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 (ImageAnchor c : ImageAnchor.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ImageAnchor 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
-
-