Enum Class AnchorType

java.lang.Object
java.lang.Enum<AnchorType>
com.independentsoft.office.odf.styles.AnchorType
All Implemented Interfaces:
Serializable, Comparable<AnchorType>, Constable

public enum AnchorType extends Enum<AnchorType>
Represents how a frame is bound to a text document.
  • Enum Constant Details

    • PAGE

      public static final AnchorType 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

      public static final AnchorType FRAME
      The parent text box that the current drawing shape element is contained in.
    • PARAGRAPH

      public static final AnchorType PARAGRAPH
      The paragraph that the current drawing shape element is contained in.
    • CHAR

      public static final AnchorType CHAR
      The character after the drawing shape element.
    • AS_CHAR

      public static final AnchorType AS_CHAR
      There is no anchor position. The drawing shape behaves like a character.
    • NONE

      public static final AnchorType NONE
      None.
  • Method Details

    • values

      public static AnchorType[] 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

      public static AnchorType valueOf(String name)
      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 name
      NullPointerException - if the argument is null