Enum Class ViewerValues

java.lang.Object
java.lang.Enum<ViewerValues>
org.jpedal.examples.viewer.ViewerValues
All Implemented Interfaces:
Serializable, Comparable<ViewerValues>, Constable

public enum ViewerValues extends Enum<ViewerValues>
An enum containing all the possible commands you can use with viewer.getViewerValue()
  • Enum Constant Details

    • CURRENTPAGE

      public static final ViewerValues CURRENTPAGE
      The current page number, as an Integer.
    • PAGECOUNT

      public static final ViewerValues PAGECOUNT
      The number of pages in the open document, as an Integer.
    • PDFNAME

      public static final ViewerValues PDFNAME
      The open file, as a String.
    • SCALE

      public static final ViewerValues SCALE
      The current scaling, as a float.
    • PAGELAYOUT

      public static final ViewerValues PAGELAYOUT
      The current page layout, as an int matching a Display view constant.
    • ROTATION

      public static final ViewerValues ROTATION
      The current rotation in degrees, as an int.
  • Method Details

    • values

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