Enum Class AnchorType
- All Implemented Interfaces:
Serializable,Comparable<AnchorType>,Constable
Represents how a frame is bound to a text document.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThere is no anchor position.The character after the drawing shape element.The parent text box that the current drawing shape element is contained in.None.The page that has the same physical page number as the value of the anchor page number that is attached to the drawing shape element.The paragraph that the current drawing shape element is contained in. -
Method Summary
Modifier and TypeMethodDescriptionstatic AnchorTypeReturns the enum constant of this class with the specified name.static AnchorType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PAGE
The page that has the same physical page number as the value of the anchor page number that is attached to the drawing shape element. If no anchor page number value is given, the anchor position is the page at which the character behind the drawing object element appears. -
FRAME
The parent text box that the current drawing shape element is contained in. -
PARAGRAPH
The paragraph that the current drawing shape element is contained in. -
CHAR
The character after the drawing shape element. -
AS_CHAR
There is no anchor position. The drawing shape behaves like a character. -
NONE
None.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-