Package org.apache.pdfbox.debugger.ui
Class ViewMenu
- java.lang.Object
-
- org.apache.pdfbox.debugger.ui.ViewMenu
-
public class ViewMenu extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMenuListeners(java.awt.event.ActionListener listener)Add the ActionListener for the menu items.static ViewMenugetInstance(PDFDebugger pdfDebugger)Provides the ViewMenu instance.javax.swing.JMenugetMenu()Provide the JMenu instance of the ZoomMenu.static booleanisAllowSubsampling()State if subsampling for image rendering shall be used.static booleanisExtractTextEvent(java.awt.event.ActionEvent actionEvent)Tell whether the "Extract Text" menu entry was hit.static booleanisRenderingOption(java.lang.String actionCommand)Test if the one of the rendering options has been selectedstatic booleanisRepairAcroformEvent(java.awt.event.ActionEvent actionEvent)Tell whether the "Repair AcroForm" menu entry was hit.static booleanisRepairAcroformSelected()State if acroForm shall be repaired.static booleanisShowFontBBox()State if the fonts bounding box shall be shown.static booleanisShowGlyphBounds()State if the bounds of individual glyphs shall be shown.static booleanisShowTextStripper()State if the TextStripper TextPositions shall be shown.static booleanisShowTextStripperBeads()State if the article beads shall be shown.voidsetEnableMenu(boolean isEnable)Set if the menu should be enabled or disabled.
-
-
-
Method Detail
-
getInstance
public static ViewMenu getInstance(PDFDebugger pdfDebugger)
Provides the ViewMenu instance.- Parameters:
pdfDebugger- PDFDebugger instance.- Returns:
- ViewMenu instance.
-
isRenderingOption
public static boolean isRenderingOption(java.lang.String actionCommand)
Test if the one of the rendering options has been selected- Parameters:
actionCommand- the actioCommand of the menu event- Returns:
- true if the actionCommand matches one of the rendering options
-
isShowTextStripper
public static boolean isShowTextStripper()
State if the TextStripper TextPositions shall be shown.- Returns:
- the selection state
-
isShowTextStripperBeads
public static boolean isShowTextStripperBeads()
State if the article beads shall be shown.- Returns:
- the selection state
-
isShowFontBBox
public static boolean isShowFontBBox()
State if the fonts bounding box shall be shown.- Returns:
- the selection state
-
isShowGlyphBounds
public static boolean isShowGlyphBounds()
State if the bounds of individual glyphs shall be shown.- Returns:
- the selection state
-
isExtractTextEvent
public static boolean isExtractTextEvent(java.awt.event.ActionEvent actionEvent)
Tell whether the "Extract Text" menu entry was hit.- Parameters:
actionEvent- the action event- Returns:
- true if the "Extract Text" menu entry was hit.
-
isAllowSubsampling
public static boolean isAllowSubsampling()
State if subsampling for image rendering shall be used.- Returns:
- the selection state
-
isRepairAcroformEvent
public static boolean isRepairAcroformEvent(java.awt.event.ActionEvent actionEvent)
Tell whether the "Repair AcroForm" menu entry was hit.- Parameters:
actionEvent- the action event- Returns:
- true if the "Repair AcroForm" menu entry was hit.
-
isRepairAcroformSelected
public static boolean isRepairAcroformSelected()
State if acroForm shall be repaired.- Returns:
- the repair state
-
getMenu
public javax.swing.JMenu 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
public void addMenuListeners(java.awt.event.ActionListener listener)
Add the ActionListener for the menu items.- Parameters:
listener- ActionListener.
-
-