Package org.apache.pdfbox.debugger.ui
Class ViewMenu
java.lang.Object
org.apache.pdfbox.debugger.ui.MenuBase
org.apache.pdfbox.debugger.ui.ViewMenu
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate JCheckBoxMenuItemprivate static final Stringprivate JMenuItemprivate static ViewMenuprivate final PDFDebuggerprivate static final Stringprivate JCheckBoxMenuItemprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate JCheckBoxMenuItemprivate JCheckBoxMenuItemprivate JCheckBoxMenuItemprivate JCheckBoxMenuItem -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate JMenustatic ViewMenugetInstance(PDFDebugger pdfDebugger) Provides the ViewMenu instance.static booleanState if subsampling for image rendering shall be used.static booleanisExtractTextEvent(ActionEvent actionEvent) Tell whether the "Extract Text" menu entry was hit.static booleanisRenderingOption(String actionCommand) Test if the one of the rendering options has been selectedstatic booleanisRepairAcroformEvent(ActionEvent actionEvent) Tell whether the "Repair AcroForm" menu entry was hit.static booleanState if acroForm shall be repaired.static booleanState if the fonts bounding box shall be shown.static booleanState if the bounds of individual glyphs shall be shown.static booleanState if the TextStripper TextPositions shall be shown.static booleanState if the article beads shall be shown.Methods inherited from class org.apache.pdfbox.debugger.ui.MenuBase
addMenuListeners, getMenu, setEnableMenu, setMenu
-
Field Details
-
instance
-
SHOW_TEXT_STRIPPER
- See Also:
-
SHOW_TEXT_STRIPPER_BEADS
- See Also:
-
SHOW_FONT_BBOX
- See Also:
-
SHOW_GLYPH_BOUNDS
- See Also:
-
ALLOW_SUBSAMPLING
- See Also:
-
EXTRACT_TEXT
- See Also:
-
REPAIR_ACROFORM
- See Also:
-
showTextStripper
-
showTextStripperBeads
-
showFontBBox
-
showGlyphBounds
-
allowSubsampling
-
extractTextMenuItem
-
repairAcroFormMenuItem
-
pdfDebugger
-
-
Constructor Details
-
ViewMenu
Constructor.
-
-
Method Details
-
getInstance
Provides the ViewMenu instance.- Parameters:
pdfDebugger- PDFDebugger instance.- Returns:
- ViewMenu instance.
-
isRenderingOption
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
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
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
-