org.faceless.pdf2.viewer2.feature
Class RedactSelectionAction

java.lang.Object
  extended by org.faceless.pdf2.viewer2.ViewerFeature
      extended by org.faceless.pdf2.viewer2.feature.TextSelectionAction
          extended by org.faceless.pdf2.viewer2.feature.RedactSelectionAction

public class RedactSelectionAction
extends TextSelectionAction

A TextSelectionAction that will redact the selected area of the PDF using the Redactor class.

The following initialization parameters can be specified to configure this feature.
colorA 32-bit color value, eg 0x80FF0000 (for translucent red)
typeThe type of Redact - Highlight, Underline, StrikeOut or Squiggly
descriptionThe description of this markup

Since:
2.11.8

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 setColor(Color color)
          Set the description that's returned by getDescription()
 
Methods inherited from class org.faceless.pdf2.viewer2.ViewerFeature
getAllEnabledFeatures, getAllFeatures, getCustomJavaScript, getFeatureProperty, getName, isEnabledByDefault, setFeatureName, teardown, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RedactSelectionAction

public RedactSelectionAction()
Method Detail

setColor

public void setColor(Color color)
Set the description that's returned by getDescription()


getColor

public Color getColor()

getDescription

public String getDescription()
Description copied from class: TextSelectionAction
Get the name of this Action, to appear in the popup menu.

Specified by:
getDescription in class TextSelectionAction

initialize

public void initialize(PDFViewer viewer)
Description copied from class: ViewerFeature
Called when the feature is first added to a viewer

Overrides:
initialize in class ViewerFeature

selectAction

public void selectAction(DocumentPanel docpanel,
                         TextSelection.RangeList list)
Description copied from class: TextSelectionAction
Run the action.

Specified by:
selectAction in class TextSelectionAction
Parameters:
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 pages


Copyright © 2001-2010 Big Faceless Organization