public class RedactionTool extends Object
 The Tool's property values can be retrieved and initialized with the methods
 toXMLString() and setFromXML() in the
 AnnotationTools class. Please see
 AnnotationTools.
| Modifier and Type | Field and Description | 
|---|---|
| static int | OVERLAY_ALIGNMENT_CENTER | 
| static int | OVERLAY_ALIGNMENT_LEFT | 
| static int | OVERLAY_ALIGNMENT_RIGHT | 
| static int | SHOW_NOTHING | 
| static int | SHOW_POPUP | 
| static int | SHOW_PROPS_DIALOG | 
| Constructor and Description | 
|---|
| RedactionTool() | 
| Modifier and Type | Method and Description | 
|---|---|
| static Color | getCurrentFillColor()Returns the current fill color. | 
| static Color | getCurrentOverlayFillColor()Returns the current overylay fill color. | 
| static Color | getDefaultFillColor()Returns the default fill color. | 
| static float | getDefaultFillOpacity()Returns the default fill opacity. | 
| static int | getDefaultFillTransparency()Returns the default fill transparency. | 
| static Color | getDefaultOutlineColor()Returns the default outline color. | 
| static Color | getDefaultOverlayFillColor()Returns the default overlay fill color. | 
| static String | getOverlayText()Returns a string specifying the overlay text that should be drawn over
 the redacted region after the content has been removed. | 
| static int | getOverlayTextAlignment()Returns the alignment used for the overlay text that should be drawn over
 the redacted region after the content has been removed. | 
| static Color | getOverlayTextColor()Returns the color used for the overlay text that should be drawn over
 the redacted region after the content has been removed. | 
| static String | getOverlayTextFont()Returns the font used for the overlay text that should be drawn over
 the redacted region after the content has been removed. | 
| static float | getOverlayTextSize()Returns the size used for the overlay text that should be drawn over
 the redacted region after the content has been removed. | 
| static int | getShowOption()Returns the option for what this Tool should do after it creates the
 annotation. | 
| static boolean | isOverlayTextRepeat()Returns a flag that determines whether or not the overlay text repeats. | 
| static boolean | isShowPropDialog()Deprecated.  | 
| static boolean | isToolSticky()Returns a flag indicating if this tool is sticky. | 
| static void | setDefaultFillColor(Color c)Sets the default fill color. | 
| static void | setDefaultFillTransparency(int t)Sets the default fill transparency. | 
| static void | setDefaultOutlineColor(Color c)Sets the default outline color. | 
| static void | setDefaultOverlayFillColor(Color c)Sets the default overlay fill color. | 
| static void | setOverlayText(String overlayText)Sets a string specifying the overlay text that should be drawn over
 the redacted region after the content has been removed. | 
| static void | setOverlayTextAlignment(int alignment)Sets the alignment used for the overlay text that should be drawn over
 the redacted region after the content has been removed. | 
| static void | setOverlayTextColor(Color color)Sets the color used for the overlay text that should be drawn over
 the redacted region after the content has been removed. | 
| static void | setOverlayTextFont(String font)Sets the font used for the overlay text that should be drawn over
 the redacted region after the content has been removed. | 
| static void | setOverlayTextRepeat(boolean repeat)Sets a flag that determines whether or not the overlay text repeats. | 
| static void | setOverlayTextSize(float size)Sets the size used for the overlay text that should be drawn over
 the redacted region after the content has been removed. | 
| static void | setShowOption(int option)Sets the option for what this Tool should do after it creates the
 annotation. | 
| static void | setShowPropDialog(boolean showPropDialog)Deprecated.  | 
| static void | setToolSticky(boolean toolSticky)Sets the flag that indicates whether this tool is sticky or not. | 
| static void | setUseFill(boolean b)Sets whether to use the default fill color. | 
| static void | setUseOverlay(boolean b)Set whether to use the overlay. | 
| static boolean | useFill()Returns whether or not the fill color will be used. | 
| static boolean | useOverlay()Returns whether or not the overlay will be used. | 
public static final int OVERLAY_ALIGNMENT_LEFT
public static final int OVERLAY_ALIGNMENT_CENTER
public static final int OVERLAY_ALIGNMENT_RIGHT
public static int SHOW_NOTHING
public static int SHOW_PROPS_DIALOG
public static int SHOW_POPUP
public static void setDefaultOutlineColor(Color c)
c - the default colorpublic static Color getDefaultOutlineColor()
public static void setDefaultFillColor(Color c)
c - the fill colorpublic static Color getDefaultFillColor()
public static void setDefaultFillTransparency(int t)
t - the default fill transparencypublic static int getDefaultFillTransparency()
@Deprecated public static boolean isShowPropDialog()
@Deprecated public static void setShowPropDialog(boolean showPropDialog)
showPropDialog - the showPropDialog to setpublic static int getShowOption()
SHOW_NOTHING, SHOW_PROPS_DIALOG, or
 .public static void setShowOption(int option)
SHOW_NOTHING, SHOW_PROPS_DIALOG, or
 .option - public static void setDefaultOverlayFillColor(Color c)
c - the default overlay fill colorpublic static Color getDefaultOverlayFillColor()
public static float getDefaultFillOpacity()
public static void setUseFill(boolean b)
b - public static boolean useFill()
public static void setUseOverlay(boolean b)
b - public static boolean useOverlay()
public static Color getCurrentFillColor()
public static Color getCurrentOverlayFillColor()
public static boolean isToolSticky()
public static void setToolSticky(boolean toolSticky)
toolSticky - The new value of the sticky flag.public static void setOverlayText(String overlayText)
overlayText - the overlay text stringpublic static String getOverlayText()
public static void setOverlayTextFont(String font)
font - the overlay text fontpublic static String getOverlayTextFont()
public static void setOverlayTextSize(float size)
size - the overlay text sizepublic static float getOverlayTextSize()
public static void setOverlayTextColor(Color color)
color - the overlay text colorpublic static Color getOverlayTextColor()
public static void setOverlayTextAlignment(int alignment)
alignment - an int designating the text alignment: OVERLAY_ALIGNMENT_LEFT, OVERLAY_ALIGNMENT_CENTER, OVERLAY_ALIGNMENT_RIGHTpublic static int getOverlayTextAlignment()
public static void setOverlayTextRepeat(boolean repeat)
repeat - the new value of the overlay text repeat flagpublic static boolean isOverlayTextRepeat()