Top Fields Constructors Methods
org.apache.pdfbox.debugger.ui

public Class ViewMenu

extends MenuBase
Class Inheritance
Imports
java.awt.event.ActionEvent, javax.swing.JCheckBoxMenuItem, .JMenu, .JMenuItem, org.apache.pdfbox.debugger.PDFDebugger

Field Summary

Modifier and TypeField and Description
private static final String
private JCheckBoxMenuItem
private static final String
private JMenuItem
private static ViewMenu
private final PDFDebugger
private static final String
private JCheckBoxMenuItem
private static final String
private static final String
private static final String
private static final String
private JCheckBoxMenuItem
private JCheckBoxMenuItem
private JCheckBoxMenuItem
private JCheckBoxMenuItem

Constructor Summary

AccessConstructor and Description
private
ViewMenu(PDFDebugger pdfDebugger)

Constructor.

Method Summary

Modifier and TypeMethod and Description
private JMenu
public static ViewMenu

Returns:

ViewMenu instance.
getInstance
(PDFDebugger
PDFDebugger instance.
pdfDebugger
)

Provides the ViewMenu instance.

public static boolean

Returns:

the selection state
isAllowSubsampling
()

State if subsampling for image rendering shall be used.

public static boolean

Returns:

true if the "Extract Text" menu entry was hit.
isExtractTextEvent
(ActionEvent
the action event
actionEvent
)

Tell whether the "Extract Text" menu entry was hit.

public static boolean

Returns:

true if the actionCommand matches one of the rendering options
isRenderingOption
(String
the actioCommand of the menu event
actionCommand
)

Test if the one of the rendering options has been selected

public static boolean

Returns:

true if the "Repair AcroForm" menu entry was hit.
isRepairAcroformEvent
(ActionEvent
the action event
actionEvent
)

Tell whether the "Repair AcroForm" menu entry was hit.

public static boolean

Returns:

the repair state
isRepairAcroformSelected
()

State if acroForm shall be repaired.

public static boolean

Returns:

the selection state
isShowFontBBox
()

State if the fonts bounding box shall be shown.

public static boolean

Returns:

the selection state
isShowGlyphBounds
()

State if the bounds of individual glyphs shall be shown.

public static boolean

Returns:

the selection state
isShowTextStripper
()

State if the TextStripper TextPositions shall be shown.

public static boolean

Returns:

the selection state
isShowTextStripperBeads
()

State if the article beads shall be shown.

Inherited from org.apache.pdfbox.debugger.ui.MenuBase:
addMenuListenersgetMenusetEnableMenusetMenu

Field Detail

ALLOW_SUBSAMPLINGback to summary
private static final String ALLOW_SUBSAMPLING
allowSubsamplingback to summary
private JCheckBoxMenuItem allowSubsampling
EXTRACT_TEXTback to summary
private static final String EXTRACT_TEXT
extractTextMenuItemback to summary
private JMenuItem extractTextMenuItem
instanceback to summary
private static ViewMenu instance
pdfDebuggerback to summary
private final PDFDebugger pdfDebugger
REPAIR_ACROFORMback to summary
private static final String REPAIR_ACROFORM
repairAcroFormMenuItemback to summary
private JCheckBoxMenuItem repairAcroFormMenuItem
SHOW_FONT_BBOXback to summary
private static final String SHOW_FONT_BBOX
SHOW_GLYPH_BOUNDSback to summary
private static final String SHOW_GLYPH_BOUNDS
SHOW_TEXT_STRIPPERback to summary
private static final String SHOW_TEXT_STRIPPER
SHOW_TEXT_STRIPPER_BEADSback to summary
private static final String SHOW_TEXT_STRIPPER_BEADS
showFontBBoxback to summary
private JCheckBoxMenuItem showFontBBox
showGlyphBoundsback to summary
private JCheckBoxMenuItem showGlyphBounds
showTextStripperback to summary
private JCheckBoxMenuItem showTextStripper
showTextStripperBeadsback to summary
private JCheckBoxMenuItem showTextStripperBeads

Constructor Detail

ViewMenuback to summary
private ViewMenu(PDFDebugger pdfDebugger)

Constructor.

Method Detail

createViewMenuback to summary
private JMenu createViewMenu()
getInstanceback to summary
public static ViewMenu getInstance(PDFDebugger pdfDebugger)

Provides the ViewMenu instance.

Parameters
pdfDebugger:PDFDebugger

PDFDebugger instance.

Returns:ViewMenu

ViewMenu instance.

isAllowSubsamplingback to summary
public static boolean isAllowSubsampling()

State if subsampling for image rendering shall be used.

Returns:boolean

the selection state

isExtractTextEventback to summary
public static boolean isExtractTextEvent(ActionEvent actionEvent)

Tell whether the "Extract Text" menu entry was hit.

Parameters
actionEvent:ActionEvent

the action event

Returns:boolean

true if the "Extract Text" menu entry was hit.

isRenderingOptionback to summary
public static boolean isRenderingOption(String actionCommand)

Test if the one of the rendering options has been selected

Parameters
actionCommand:String

the actioCommand of the menu event

Returns:boolean

true if the actionCommand matches one of the rendering options

isRepairAcroformEventback to summary
public static boolean isRepairAcroformEvent(ActionEvent actionEvent)

Tell whether the "Repair AcroForm" menu entry was hit.

Parameters
actionEvent:ActionEvent

the action event

Returns:boolean

true if the "Repair AcroForm" menu entry was hit.

isRepairAcroformSelectedback to summary
public static boolean isRepairAcroformSelected()

State if acroForm shall be repaired.

Returns:boolean

the repair state

isShowFontBBoxback to summary
public static boolean isShowFontBBox()

State if the fonts bounding box shall be shown.

Returns:boolean

the selection state

isShowGlyphBoundsback to summary
public static boolean isShowGlyphBounds()

State if the bounds of individual glyphs shall be shown.

Returns:boolean

the selection state

isShowTextStripperback to summary
public static boolean isShowTextStripper()

State if the TextStripper TextPositions shall be shown.

Returns:boolean

the selection state

isShowTextStripperBeadsback to summary
public static boolean isShowTextStripperBeads()

State if the article beads shall be shown.

Returns:boolean

the selection state