Package org.apache.pdfbox.debugger.ui
Class ImageTypeMenu
java.lang.Object
org.apache.pdfbox.debugger.ui.ImageTypeMenu
- Author:
- Tilman Hausherr A singleton class that provides the imagetype menu for the menubar. To act upon the menu item selection, the user of the class must add ActionListener which will check for the action command and act accordingly.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMenuListeners
(ActionListener listener) Add the ActionListener for the menuitems.static org.apache.pdfbox.rendering.ImageType
static org.apache.pdfbox.rendering.ImageType
getImageType
(String actionCommand) static ImageTypeMenu
Provides the ImageTypeMenu instance.getMenu()
Provide the JMenu instance of the ZoomMenu.static boolean
isImageTypeMenu
(String actionCommand) void
setEnableMenu
(boolean isEnable) Set if the menu should be enabled or disabled.void
setImageTypeSelection
(String selection) Set the image type selection.protected void
-
Field Details
-
IMAGETYPE_RGB
- See Also:
-
IMAGETYPE_ARGB
- See Also:
-
IMAGETYPE_GRAY
- See Also:
-
IMAGETYPE_BITONAL
- See Also:
-
-
Method Details
-
getInstance
Provides the ImageTypeMenu instance.- Returns:
- ImageTypeMenu instance.
-
setImageTypeSelection
Set the image type selection.- Parameters:
selection
- String instance.
-
isImageTypeMenu
-
getImageType
public static org.apache.pdfbox.rendering.ImageType getImageType() -
getImageType
-
setMenu
-
getMenu
Provide the JMenu instance of the ZoomMenu.- Returns:
- JMenu instance.
-
setEnableMenu
public void setEnableMenu(boolean isEnable) Set if the menu should be enabled or disabled.- Parameters:
isEnable
- boolean instance.
-
addMenuListeners
Add the ActionListener for the menuitems.- Parameters:
listener
- ActionListener.
-