Enum Class Square

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

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

    • SQUARE_METER

      public static final Square SQUARE_METER
      a square meter
    • HECTARE

      public static final Square HECTARE
      a hectare (10,000 square meters)
    • SQUARE_KILOMETER

      public static final Square SQUARE_KILOMETER
      a square kilometer
    • SQUARE_FOOT

      public static final Square SQUARE_FOOT
      a square foot
    • ACRE

      public static final Square ACRE
      an acre
    • SQUARE_MILE

      public static final Square SQUARE_MILE
      a square mile
  • Field Details

    • name

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

    • Square

      private Square(String name)
      Creates a Square unit.
  • Method Details

    • values

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