Package org.apache.pdfbox.debugger.ui
Class PrintDpiMenu
- java.lang.Object
-
- org.apache.pdfbox.debugger.ui.MenuBase
-
- org.apache.pdfbox.debugger.ui.PrintDpiMenu
-
public final class PrintDpiMenu extends MenuBase
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classPrintDpiMenu.PrintDpiMenuItem
-
Field Summary
Fields Modifier and Type Field Description private static int[]DPISprivate static PrintDpiMenuinstanceprivate javax.swing.JMenumenu
-
Constructor Summary
Constructors Modifier Constructor Description privatePrintDpiMenu()Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchangeDpiSelection(int selection)Set the dpi selection.static intgetDpiSelection()Tell the current dpi scale.static PrintDpiMenugetInstance()Provides the DpiMenu instance.-
Methods inherited from class org.apache.pdfbox.debugger.ui.MenuBase
addMenuListeners, getMenu, setEnableMenu, setMenu
-
-
-
-
Field Detail
-
DPIS
private static final int[] DPIS
-
instance
private static PrintDpiMenu instance
-
menu
private final javax.swing.JMenu menu
-
-
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- the selected DPI value- 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.
-
-