Class PrintDpiMenu

java.lang.Object
org.apache.pdfbox.debugger.ui.MenuBase
org.apache.pdfbox.debugger.ui.PrintDpiMenu

public final class PrintDpiMenu extends MenuBase
  • Field Details

    • DPIS

      private static final int[] DPIS
    • instance

      private static PrintDpiMenu instance
  • Constructor Details

    • PrintDpiMenu

      private PrintDpiMenu()
      Constructor.
  • Method Details

    • getInstance

      public static PrintDpiMenu getInstance()
      Provides the DpiMenu instance.
      Returns:
      DpiMenu instance.
    • changeDpiSelection

      public void changeDpiSelection(int selection)
      Set the dpi selection.
      Parameters:
      selection -
      Throws:
      IllegalArgumentException - if the parameter doesn't belong to a dpi menu item.
    • getDpiSelection

      public static int getDpiSelection()
      Tell the current dpi scale.
      Returns:
      the current dpi scale.
      Throws:
      IllegalStateException - if no dpi menu item is selected.