- java.lang.Object
-
- java.lang.Enum<TextBlockAnchor>
-
- org.jfree.chart.text.TextBlockAnchor
-
- All Implemented Interfaces:
Serializable,Comparable<TextBlockAnchor>
public enum TextBlockAnchor extends Enum<TextBlockAnchor>
Used to indicate the position of an anchor point for a text block.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOTTOM_CENTERBottom/center.BOTTOM_LEFTBottom/left.BOTTOM_RIGHTBottom/right.CENTERMiddle/center.CENTER_LEFTMiddle/left.CENTER_RIGHTMiddle/right.TOP_CENTERTop/center.TOP_LEFTTop/left.TOP_RIGHTTop/right.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TextBlockAnchorvalueOf(String name)Returns the enum constant of this type with the specified name.static TextBlockAnchor[]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 TextBlockAnchor TOP_LEFT
Top/left.
-
TOP_CENTER
public static final TextBlockAnchor TOP_CENTER
Top/center.
-
TOP_RIGHT
public static final TextBlockAnchor TOP_RIGHT
Top/right.
-
CENTER_LEFT
public static final TextBlockAnchor CENTER_LEFT
Middle/left.
-
CENTER
public static final TextBlockAnchor CENTER
Middle/center.
-
CENTER_RIGHT
public static final TextBlockAnchor CENTER_RIGHT
Middle/right.
-
BOTTOM_LEFT
public static final TextBlockAnchor BOTTOM_LEFT
Bottom/left.
-
BOTTOM_CENTER
public static final TextBlockAnchor BOTTOM_CENTER
Bottom/center.
-
BOTTOM_RIGHT
public static final TextBlockAnchor BOTTOM_RIGHT
Bottom/right.
-
-
Method Detail
-
values
public static TextBlockAnchor[] 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 (TextBlockAnchor c : TextBlockAnchor.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TextBlockAnchor 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
-
-