Class PrintDpiMenu


  • public final class PrintDpiMenu
    extends MenuBase
    • Field Detail

      • DPIS

        private static final int[] DPIS
      • menu

        private final javax.swing.JMenu menu
    • Constructor Detail

      • PrintDpiMenu

        private PrintDpiMenu()
        Constructor.
    • Method Detail

      • 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:
        java.lang.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:
        java.lang.IllegalStateException - if no dpi menu item is selected.