|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.faceless.pdf2.viewer2.ViewerFeature
org.faceless.pdf2.viewer2.feature.TextSelectionAction
org.faceless.pdf2.viewer2.feature.MarkupSelectionAction
public class MarkupSelectionAction
A TextSelectionAction that will create an
AnnotationMarkup of the specified type on
the selected text.
| color | A 32-bit color value, eg 0x80FF0000 (for translucent red) |
|---|---|
| type | The type of Markup - Highlight, Underline, StrikeOut or Squiggly |
| description | The description of this markup |
| Constructor Summary | |
|---|---|
MarkupSelectionAction(String name)
|
|
| Method Summary | |
|---|---|
String |
getDescription()
Get the name of this Action, to appear in the popup menu. |
void |
initialize(PDFViewer viewer)
Called when the feature is first added to a viewer |
void |
selectAction(DocumentPanel docpanel,
TextSelection.RangeList list)
Run the action. |
void |
setColor(Color color)
|
void |
setDescription(String desc)
Set the description that's returned by getDescription() |
void |
setType(String type)
Set the type of AnnotationMarkup. |
| Methods inherited from class org.faceless.pdf2.viewer2.ViewerFeature |
|---|
getAllEnabledFeatures, getAllFeatures, getCustomJavaScript, getFeatureProperty, getName, isEnabledByDefault, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MarkupSelectionAction(String name)
| Method Detail |
|---|
public void setDescription(String desc)
getDescription()
public String getDescription()
TextSelectionAction
getDescription in class TextSelectionActionpublic void setType(String type)
AnnotationMarkup.
type - one of "Highlight", "Underline", "StrikeOut" or "Squiggly"public void setColor(Color color)
public void initialize(PDFViewer viewer)
ViewerFeature
initialize in class ViewerFeature
public void selectAction(DocumentPanel docpanel,
TextSelection.RangeList list)
TextSelectionAction
selectAction in class TextSelectionActiondocpanel - the DocumentPanel this action is being run on.list - the TextSelection.RangeList containing the list of selected text items
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||