Enum Class Angular

java.lang.Object
java.lang.Enum<Angular>
com.itextpdf.text.pdf.spatial.units.Angular
All Implemented Interfaces:
Serializable, Comparable<Angular>, Constable

public enum Angular extends Enum<Angular>
Angular display units for use in a Preferred Display Units (PDU) array.
Since:
5.1.0
  • Enum Constant Details

    • DEGREE

      public static final Angular DEGREE
      a degree
    • GRAD

      public static final Angular GRAD
      a grad (1/400 of a circle, or 0.9 degrees)
  • Field Details

    • name

      private String name
      The name used for the Angular unit.
  • Constructor Details

    • Angular

      private Angular(String name)
      Creates the Angular unit.
  • Method Details

    • values

      public static Angular[] 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 Angular 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
    • getPdfName

      public PdfName getPdfName()
      Gets the PdfName.