public class TextSelectionContextMenuNotes extends TextSelectionContextMenu
TextSelectionContextMenuNotes
represents the popup menu that
is displayed when the user right clicks on the
PageViewPanelNotes
and the Text Selection
Tool is active. A reference to the TextSelectionContextMenuNotes
of the PDFNotesBean
can be obtained with
PDFNotesBean.getPageViewPanelNotes().getTextSelectionContextMenuNotes()
. By default, this menu is composed of: CopyMenuItem, a JMenu divider,
HighlightMenuItem, UnderLineMenuItem, CrossoutMenuItem, SquigglyMenuItem,
ReplacementMenuItem, InsertMenuItem, a JMenu Divider, LinkMenuItem,
OpenLinkMenuItem, a JMenu divider, StickyNoteMenuItem, PencilMenuItem, a
JMenu divider, HandToolMenuItem, TextSelectionMenuItem, and ZoomToolMenuItem.
These items may be modified by retrieving them with their individual getter
methods. The contents of the TextSelectionContextMenuNotes
may
be accessed and modified with the getPopupMenu()
method. For
example, to add a new menu item to the popup menu:
PDFNotesBean notesBean = new PDFNotesBean(); TextSelectionContextMenuNotes contextMenu = notesBean.getPageViewPanelNotes().getTextSelectionContextMenuNotes(); JMenuItem menuItem = new JMenuItem("My Menu Item"); contextMenu.getPopupMenu().add(menuItem);
Constructor and Description |
---|
TextSelectionContextMenuNotes() |
Modifier and Type | Method and Description |
---|---|
JMenuItem |
getCrossoutMenuItem() |
JMenuItem |
getHighlightMenuItem() |
JMenuItem |
getInsertMenuItem() |
JMenuItem |
getLinkMenuItem() |
JMenuItem |
getPasteMenuItem()
The Paste menu item.
|
JSeparator |
getPasteSeparator()
Returns the separator that is used after the Pencil tool.
|
JMenuItem |
getPencilMenuItem()
The Add Pencil menu item for the page view context menu.
|
JSeparator |
getPencilSeparator() |
JPopupMenu |
getPopupMenu() |
JMenuItem |
getReplaceTextMenuItem() |
JMenuItem |
getSquigglyMenuItem() |
JMenuItem |
getStickyNoteMenuItem()
The Add Sticky Note menu item for the page view context menu.
|
JMenuItem |
getUnderlineMenuItem() |
getCopyMenuItem, getCopySeparator, getHandToolMenuItem, getLinkSeparator, getOpenLinkMenuItem, getTextSelMenuItem, getZoomToolMenuItem
public JPopupMenu getPopupMenu()
getPopupMenu
in class TextSelectionContextMenu
public JMenuItem getHighlightMenuItem()
public JMenuItem getUnderlineMenuItem()
public JMenuItem getCrossoutMenuItem()
public JMenuItem getSquigglyMenuItem()
public JMenuItem getReplaceTextMenuItem()
public JMenuItem getInsertMenuItem()
public JMenuItem getLinkMenuItem()
public JMenuItem getStickyNoteMenuItem()
public JMenuItem getPencilMenuItem()
public JSeparator getPencilSeparator()
public JMenuItem getPasteMenuItem()
public JSeparator getPasteSeparator()