Enum ElementPlacement

java.lang.Object
java.lang.Enum<ElementPlacement>
com.dynamicpdf.api.elements.ElementPlacement
All Implemented Interfaces:
Serializable, Comparable<ElementPlacement>, java.lang.constant.Constable

public enum ElementPlacement extends Enum<ElementPlacement>
Represents the placement of a page element.
  • Enum Constant Details

    • TOPLEFT

      public static final ElementPlacement TOPLEFT
      Represents top left placement.
    • TOPCENTER

      public static final ElementPlacement TOPCENTER
      Represents top center placement.
    • TOPRIGHT

      public static final ElementPlacement TOPRIGHT
      Represents top right placement.
    • BOTTOMLEFT

      public static final ElementPlacement BOTTOMLEFT
      Represents bottom left placement.
    • BOTTOMCENTER

      public static final ElementPlacement BOTTOMCENTER
      Represents bottom center placement.
    • BOTTOMRIGHT

      public static final ElementPlacement BOTTOMRIGHT
      Represents bottom right placement.
  • Method Details

    • values

      public static ElementPlacement[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ElementPlacement 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 name
      NullPointerException - if the argument is null