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 class
PrintDpiMenu.PrintDpiMenuItem
-
Field Summary
Fields Modifier and Type Field Description private static int[]
DPIS
private static PrintDpiMenu
instance
private javax.swing.JMenu
menu
-
Constructor Summary
Constructors Modifier Constructor Description private
PrintDpiMenu()
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
changeDpiSelection(int selection)
Set the dpi selection.static int
getDpiSelection()
Tell the current dpi scale.static PrintDpiMenu
getInstance()
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
-- 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.
-
-