Package org.apache.pdfbox.debugger.ui
Class PrintDpiMenu
java.lang.Object
org.apache.pdfbox.debugger.ui.MenuBase
org.apache.pdfbox.debugger.ui.PrintDpiMenu
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int[]
private static PrintDpiMenu
private final JMenu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
changeDpiSelection
(int selection) Set the dpi selection.static int
Tell the current dpi scale.static PrintDpiMenu
Provides the DpiMenu instance.Methods inherited from class org.apache.pdfbox.debugger.ui.MenuBase
addMenuListeners, getMenu, setEnableMenu, setMenu
-
Field Details
-
DPIS
private static final int[] DPIS -
instance
-
-
Constructor Details
-
PrintDpiMenu
private PrintDpiMenu()Constructor.
-
-
Method Details
-
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.
-