Package org.apache.pdfbox.debugger.ui
Class ViewMenu
- java.lang.Object
-
- org.apache.pdfbox.debugger.ui.MenuBase
-
- org.apache.pdfbox.debugger.ui.ViewMenu
-
public class ViewMenu extends MenuBase
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringALLOW_SUBSAMPLINGprivate javax.swing.JCheckBoxMenuItemallowSubsamplingprivate static java.lang.StringEXTRACT_TEXTprivate javax.swing.JMenuItemextractTextMenuItemprivate static ViewMenuinstanceprivate PDFDebuggerpdfDebuggerprivate static java.lang.StringREPAIR_ACROFORMprivate javax.swing.JCheckBoxMenuItemrepairAcroFormMenuItemprivate static java.lang.StringSHOW_FONT_BBOXprivate static java.lang.StringSHOW_GLYPH_BOUNDSprivate static java.lang.StringSHOW_TEXT_STRIPPERprivate static java.lang.StringSHOW_TEXT_STRIPPER_BEADSprivate javax.swing.JCheckBoxMenuItemshowFontBBoxprivate javax.swing.JCheckBoxMenuItemshowGlyphBoundsprivate javax.swing.JCheckBoxMenuItemshowTextStripperprivate javax.swing.JCheckBoxMenuItemshowTextStripperBeads
-
Constructor Summary
Constructors Modifier Constructor Description privateViewMenu(PDFDebugger pdfDebugger)Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private javax.swing.JMenucreateViewMenu()static ViewMenugetInstance(PDFDebugger pdfDebugger)Provides the ViewMenu instance.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.-
Methods inherited from class org.apache.pdfbox.debugger.ui.MenuBase
addMenuListeners, getMenu, setEnableMenu, setMenu
-
-
-
-
Field Detail
-
instance
private static ViewMenu instance
-
SHOW_TEXT_STRIPPER
private static final java.lang.String SHOW_TEXT_STRIPPER
- See Also:
- Constant Field Values
-
SHOW_TEXT_STRIPPER_BEADS
private static final java.lang.String SHOW_TEXT_STRIPPER_BEADS
- See Also:
- Constant Field Values
-
SHOW_FONT_BBOX
private static final java.lang.String SHOW_FONT_BBOX
- See Also:
- Constant Field Values
-
SHOW_GLYPH_BOUNDS
private static final java.lang.String SHOW_GLYPH_BOUNDS
- See Also:
- Constant Field Values
-
ALLOW_SUBSAMPLING
private static final java.lang.String ALLOW_SUBSAMPLING
- See Also:
- Constant Field Values
-
EXTRACT_TEXT
private static final java.lang.String EXTRACT_TEXT
- See Also:
- Constant Field Values
-
REPAIR_ACROFORM
private static final java.lang.String REPAIR_ACROFORM
- See Also:
- Constant Field Values
-
showTextStripper
private javax.swing.JCheckBoxMenuItem showTextStripper
-
showTextStripperBeads
private javax.swing.JCheckBoxMenuItem showTextStripperBeads
-
showFontBBox
private javax.swing.JCheckBoxMenuItem showFontBBox
-
showGlyphBounds
private javax.swing.JCheckBoxMenuItem showGlyphBounds
-
allowSubsampling
private javax.swing.JCheckBoxMenuItem allowSubsampling
-
extractTextMenuItem
private javax.swing.JMenuItem extractTextMenuItem
-
repairAcroFormMenuItem
private javax.swing.JCheckBoxMenuItem repairAcroFormMenuItem
-
pdfDebugger
private final PDFDebugger pdfDebugger
-
-
Constructor Detail
-
ViewMenu
private ViewMenu(PDFDebugger pdfDebugger)
Constructor.
-
-
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
-
createViewMenu
private javax.swing.JMenu createViewMenu()
-
-