Interface TextSelectionAction
-
- All Known Implementing Classes:
HighlightSelectionAction
,MarkupSelectionAction
,RedactSelectionAction
,StrikeOutSelectionAction
,TextCopyAction
,UnderlineSelectionAction
public interface TextSelectionAction
A type of feature that works with theTextTool
feature. When text is selected in theTextTool
and the mouse is right-clicked, the user will have the option to apply one of these actions to the selected text. Typically this is used to highlight, underline etc. text in the PDF- Since:
- 2.11.7
- See Also:
AreaSelectionAction
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getDescription()
Get the name of this Action, to appear in the popup menu.boolean
isEnabled()
Indicates whether this action is enabled.void
selectAction(DocumentPanel docpanel, TextSelection.RangeList ranges)
Run the action.
-
-
-
Method Detail
-
getDescription
String getDescription()
Get the name of this Action, to appear in the popup menu.
-
selectAction
void selectAction(DocumentPanel docpanel, TextSelection.RangeList ranges)
Run the action.- Parameters:
docpanel
- the DocumentPanel this action is being run on.ranges
- theTextSelection.RangeList
containing the list of selected text items, which may be from multiple pages
-
isEnabled
boolean isEnabled()
Indicates whether this action is enabled.- Since:
- 2.13
-
-