public class ViewMenu extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
addMenuListeners(ActionListener listener)
Add the ActionListener for the menu items.
|
static ViewMenu |
getInstance(PDFDebugger pdfDebugger)
Provides the ViewMenu instance.
|
JMenu |
getMenu()
Provide the JMenu instance of the ZoomMenu.
|
static boolean |
isAllowSubsampling()
State if subsampling for image rendering shall be used.
|
static boolean |
isExtractTextEvent(ActionEvent actionEvent)
Tell whether the "Extract Text" menu entry was hit.
|
static boolean |
isRenderingOption(String actionCommand)
Test if the one of the rendering options has been selected
|
static boolean |
isRepairAcroformEvent(ActionEvent actionEvent)
Tell whether the "Repair AcroForm" menu entry was hit.
|
static boolean |
isRepairAcroformSelected()
State if acroForm shall be repaired.
|
static boolean |
isShowFontBBox()
State if the fonts bounding box shall be shown.
|
static boolean |
isShowGlyphBounds()
State if the bounds of individual glyphs shall be shown.
|
static boolean |
isShowTextStripper()
State if the TextStripper TextPositions shall be shown.
|
static boolean |
isShowTextStripperBeads()
State if the article beads shall be shown.
|
void |
setEnableMenu(boolean isEnable)
Set if the menu should be enabled or disabled.
|
public static ViewMenu getInstance(PDFDebugger pdfDebugger)
pdfDebugger - PDFDebugger instance.public static boolean isRenderingOption(String actionCommand)
actionCommand - the actioCommand of the menu eventpublic static boolean isShowTextStripper()
public static boolean isShowTextStripperBeads()
public static boolean isShowFontBBox()
public static boolean isShowGlyphBounds()
public static boolean isExtractTextEvent(ActionEvent actionEvent)
actionEvent - the action eventpublic static boolean isAllowSubsampling()
public static boolean isRepairAcroformEvent(ActionEvent actionEvent)
actionEvent - the action eventpublic static boolean isRepairAcroformSelected()
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.