|
||||||||||
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.RedactSelectionAction
public class RedactSelectionAction
A TextSelectionAction
that will redact the selected
area of the PDF using the Redactor
class.
color | A 32-bit color value, eg 0x80FF0000 (for translucent red) |
---|---|
type | The type of Redact - Highlight, Underline, StrikeOut or Squiggly |
description | The description of this markup |
This code is copyright the Big Faceless Organization. You're welcome to use, modify and distribute it in any form in your own projects, provided those projects continue to make use of the Big Faceless PDF library.
Constructor Summary | |
---|---|
RedactSelectionAction()
|
Method Summary | |
---|---|
Color |
getColor()
|
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 |
selectArea(PagePanel pagepanel,
Rectangle2D area)
Invoked when the area is selected. |
void |
setColor(Color color)
Set the description that's returned by getDescription() |
Methods inherited from class org.faceless.pdf2.viewer2.ViewerFeature |
---|
getAllEnabledFeatures, getAllFeatures, getCustomJavaScript, getFeatureProperty, getFeatureURLProperty, getName, isEnabledByDefault, setFeatureName, teardown, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RedactSelectionAction()
Method Detail |
---|
public void setColor(Color color)
getDescription()
public Color getColor()
public String getDescription()
TextSelectionAction
getDescription
in interface AreaSelectionAction
getDescription
in interface TextSelectionAction
public void initialize(PDFViewer viewer)
ViewerFeature
initialize
in class ViewerFeature
public void selectAction(DocumentPanel docpanel, TextSelection.RangeList list)
TextSelectionAction
selectAction
in interface TextSelectionAction
docpanel
- the DocumentPanel this action is being run on.list
- the TextSelection.RangeList
containing the list of selected text items, which may be from multiple pagespublic void selectArea(PagePanel pagepanel, Rectangle2D area)
AreaSelectionAction
selectArea
in interface AreaSelectionAction
pagepanel
- the PagePanel the area was selected onarea
- the selected area
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |