public final class PrintDpiMenu extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
addMenuListeners(ActionListener listener)
Add the ActionListener for the menu items.
|
void |
changeDpiSelection(int selection)
Set the dpi selection.
|
static int |
getDpiSelection()
Tell the current dpi scale.
|
static PrintDpiMenu |
getInstance()
Provides the DpiMenu instance.
|
JMenu |
getMenu()
Provide the JMenu instance of the ZoomMenu.
|
void |
setEnableMenu(boolean isEnable)
Set if the menu should be enabled or disabled.
|
public static PrintDpiMenu getInstance()
public void changeDpiSelection(int selection)
selection - the selected DPI valueIllegalArgumentException - if the parameter doesn't belong to a dpi menu item.public static int getDpiSelection()
IllegalStateException - if no dpi menu item is selected.public JMenu getMenu()
public void setEnableMenu(boolean isEnable)
isEnable - boolean instance.public void addMenuListeners(ActionListener listener)
listener - ActionListener.Copyright © 2002–2025 The Apache Software Foundation. All rights reserved.