Enum Class WidthRepresentation.Unit

java.lang.Object
java.lang.Enum<WidthRepresentation.Unit>
ro.sync.ecss.extensions.api.WidthRepresentation.Unit
All Implemented Interfaces:
Serializable, Comparable<WidthRepresentation.Unit>, Constable
Enclosing class:
WidthRepresentation

public static enum WidthRepresentation.Unit extends Enum<WidthRepresentation.Unit>
The fixed width unit.
  • Enum Constant Details

    • CENTIMETER

      public static final WidthRepresentation.Unit CENTIMETER
      Centimeters are converted to inches and then multiplied with the dots per inch. The value is cm.
    • EM

      public static final WidthRepresentation.Unit EM
      The EM is relative to the font size. 1 is the font size. The value is em.
    • EX

      public static final WidthRepresentation.Unit EX
      The EX is relative the the height of the "x" character. The value is ex.
    • INCH

      public static final WidthRepresentation.Unit INCH
      Value in inches are multiplied with the dots per inch value. The value is in.
    • MILLIMETER

      public static final WidthRepresentation.Unit MILLIMETER
      Value in millimeter is converted to inches and then to pixels. The value is mm.
    • PICA

      public static final WidthRepresentation.Unit PICA
      Pica is a unit of measure equal to 12 points or one sixth of an inch. The value is pc.
    • PIXEL

      public static final WidthRepresentation.Unit PIXEL
      Directly in pixels. No conversion needed. The value is px.
    • POINT

      public static final WidthRepresentation.Unit POINT
      A point is approximately 1/72 inch. The value is pt.
  • Method Details

    • values

      public static WidthRepresentation.Unit[] 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 WidthRepresentation.Unit 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<WidthRepresentation.Unit>
      See Also: