public class TextMarkupTools 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
.
Constructor and Description |
---|
TextMarkupTools() |
Modifier and Type | Method and Description |
---|---|
static Color |
getDefaultCrossoutColor()
Returns the default crossout color.
|
static int |
getDefaultCrossoutTransparency()
Returns the default crossout transparency.
|
static Color |
getDefaultHighlightColor()
Returns the default highlight color.
|
static int |
getDefaultHighlightTransparency()
Returns the default highlight transparency.
|
static Color |
getDefaultReplacementColor()
Returns the default replacement color.
|
static int |
getDefaultReplacementTransparency()
Returns the default replacement transparency.
|
static Color |
getDefaultSquigglyColor()
Returns the default squiggly underline color.
|
static int |
getDefaultSquigglyTransparency()
Returns the default squiggly underline transparency.
|
static Color |
getDefaultUnderlineColor()
Returns the default underline color.
|
static int |
getDefaultUnderlineTransparency()
Returns the default underline transparency.
|
static Dimension |
getMinimumAnnotSize()
Gets the minimum size for the annotations created with this Tool.
|
static boolean |
isCrossoutSticky()
Returns a flag indicating if this tool is sticky.
|
static boolean |
isHighlightSticky()
Returns a flag indicating if this tool is sticky.
|
static boolean |
isReplacementSticky()
Returns a flag indicating if this tool is sticky.
|
static boolean |
isSetContentsFromTextCrossout()
Returns true if a new MarkUpText annotation content should be initialzed
to the text contained within the quadrilaterals.
|
static boolean |
isSetContentsFromTextHighlight()
Returns true if a new MarkUpText annotation content should be initialzed
to the text contained within the quadrilaterals.
|
static boolean |
isSetContentsFromTextReplacement()
Returns true if a new MarkUpText annotation content should be initialzed
to the text contained within the quadrilaterals.
|
static boolean |
isSetContentsFromTextSquiggly()
Returns true if a new MarkUpText annotation content should be initialzed
to the text contained within the quadrilaterals.
|
static boolean |
isSetContentsFromTextUnderline()
Returns true if a new MarkUpText annotation content should be initialzed
to the text contained within the quadrilaterals.
|
static boolean |
isShowPropDialogCrossout()
Gets the flag for this Tool to show or not the annotation properties
popup dialog after an annotation has been created.
|
static boolean |
isShowPropDialogHighlight()
Gets the flag for this Tool to show or not the annotation properties
popup dialog after an annotation has been created.
|
static boolean |
isShowPropDialogReplacement()
Gets the flag for this Tool to show or not the annotation properties
popup dialog after an annotation has been created.
|
static boolean |
isShowPropDialogSquiggly()
Gets the flag for this Tool to show or not the annotation properties
popup dialog after an annotation has been created.
|
static boolean |
isShowPropDialogUnderline()
Gets the flag for this Tool to show or not the annotation properties
popup dialog after an annotation has been created.
|
static boolean |
isSquigglySticky()
Returns a flag indicating if this tool is sticky.
|
static boolean |
isUnderlineSticky()
Returns a flag indicating if this tool is sticky.
|
static void |
setContentsFromTextCrossout(boolean setContentsFromText)
Sets the MarkUpText annotation content to the text contained within the
quadrilaterals when creating a new MarkUpText annotation.
|
static void |
setContentsFromTextHighlight(boolean setContentsFromText)
Sets the MarkUpText annotation content to the text contained within the
quadrilaterals when creating a new MarkUpText annotation.
|
static void |
setContentsFromTextReplacement(boolean setContentsFromText)
Sets the MarkUpText annotation content to the text contained within the
quadrilaterals when creating a new MarkUpText annotation.
|
static void |
setContentsFromTextSquiggly(boolean setContentsFromText)
Sets the MarkUpText annotation content to the text contained within the
quadrilaterals when creating a new MarkUpText annotation.
|
static void |
setContentsFromTextUnderline(boolean setContentsFromText)
Sets the MarkUpText annotation content to the text contained within the
quadrilaterals when creating a new MarkUpText annotation.
|
static void |
setCrossoutSticky(boolean sticky)
Sets the flag that indicates whether this tool is sticky or not.
|
static void |
setDefaultCrossoutColor(Color defaultCrossoutColor)
Sets the default crossout color.
|
static void |
setDefaultCrossoutTransparency(int defaultCrossoutTransparency)
Sets the default crossout transparency.
|
static void |
setDefaultHighlightColor(Color defaultHighlightColor)
Sets the default highlight color.
|
static void |
setDefaultHighlightTransparency(int defaultHighlightTransparency)
Sets the default highlight transparency.
|
static void |
setDefaultReplacementColor(Color defaultReplacementColor)
Sets the default replacement color.
|
static void |
setDefaultReplacementTransparency(int defaultReplacementTransparency)
Sets the default replacement transparency.
|
static void |
setDefaultSquigglyColor(Color defaultSquigglyColor)
Sets the default squiggly underline color.
|
static void |
setDefaultSquigglyTransparency(int defaultSquigglyTransparency)
Sets the default squiggly underline transparency.
|
static void |
setDefaultUnderlineColor(Color defaultUnderlineColor)
Sets the default underline color.
|
static void |
setDefaultUnderlineTransparency(int defaultUnderlineTransparency)
Sets the default underline transparency.
|
static void |
setHighlightSticky(boolean sticky)
Sets the flag that indicates whether this tool is sticky or not.
|
static void |
setMinimumAnnotSize(Dimension minimumAnnotSize)
Sets the minimum size for the annotations created with this Tool.
|
static void |
setReplacementSticky(boolean sticky)
Sets the flag that indicates whether this tool is sticky or not.
|
static void |
setShowPropDialogCrossout(boolean showPropDialogCrossout)
Sets the flag for this Tool to show or not the annotation properties
popup dialog after an annotation has been created.
|
static void |
setShowPropDialogHighlight(boolean showPropDialogHighlight)
Sets the flag for this Tool to show or not the annotation properties
popup dialog after an annotation has been created.
|
static void |
setShowPropDialogReplacement(boolean showPropDialogReplacement)
Sets the flag for this Tool to show or not the annotation properties
popup dialog after an annotation has been created.
|
static void |
setShowPropDialogSquiggly(boolean showPropDialogSquiggly)
Sets the flag for this Tool to show or not the annotation properties
popup dialog after an annotation has been created.
|
static void |
setShowPropDialogUnderline(boolean showPropDialogUnderline)
Sets the flag for this Tool to show or not the annotation properties
popup dialog after an annotation has been created.
|
static void |
setSquigglySticky(boolean sticky)
Sets the flag that indicates whether this tool is sticky or not.
|
static void |
setUnderlineSticky(boolean sticky)
Sets the flag that indicates whether this tool is sticky or not.
|
public static Color getDefaultHighlightColor()
public static void setDefaultHighlightColor(Color defaultHighlightColor)
defaultHighlightColor
- The new value of the default highlight color to setpublic static Color getDefaultUnderlineColor()
public static void setDefaultUnderlineColor(Color defaultUnderlineColor)
defaultUnderlineColor
- The new value of the default underline color to setpublic static Color getDefaultCrossoutColor()
public static void setDefaultCrossoutColor(Color defaultCrossoutColor)
defaultCrossoutColor
- The new value of the default crossout color to setpublic static Color getDefaultSquigglyColor()
public static void setDefaultSquigglyColor(Color defaultSquigglyColor)
defaultSquigglyColor
- The new value of the default squiggly underline color to setpublic static Color getDefaultReplacementColor()
public static void setDefaultReplacementColor(Color defaultReplacementColor)
defaultReplacementColor
- The new value of the default replacement color to setpublic static int getDefaultHighlightTransparency()
public static void setDefaultHighlightTransparency(int defaultHighlightTransparency)
defaultHighlightTransparency
- The new value of the default highlight transparency to setpublic static int getDefaultUnderlineTransparency()
public static void setDefaultUnderlineTransparency(int defaultUnderlineTransparency)
defaultUnderlineTransparency
- The new value of the default underline transparency to setpublic static int getDefaultCrossoutTransparency()
public static void setDefaultCrossoutTransparency(int defaultCrossoutTransparency)
defaultCrossoutTransparency
- The new value of the default crossout transparency to setpublic static int getDefaultSquigglyTransparency()
public static void setDefaultSquigglyTransparency(int defaultSquigglyTransparency)
defaultSquigglyTransparency
- The new value of the default squiggly underline transparency to setpublic static int getDefaultReplacementTransparency()
public static void setDefaultReplacementTransparency(int defaultReplacementTransparency)
defaultReplacementTransparency
- The new value of the default replacement transparency to setpublic static boolean isShowPropDialogHighlight()
public static void setShowPropDialogHighlight(boolean showPropDialogHighlight)
showPropDialogHighlight
- the showPropDialogHighlight to setpublic static boolean isShowPropDialogUnderline()
public static void setShowPropDialogUnderline(boolean showPropDialogUnderline)
showPropDialogUnderline
- the showPropDialogUnderline to setpublic static boolean isShowPropDialogCrossout()
public static void setShowPropDialogCrossout(boolean showPropDialogCrossout)
showPropDialogCrossout
- the showPropDialogCrossout to setpublic static boolean isShowPropDialogSquiggly()
public static boolean isShowPropDialogReplacement()
public static void setShowPropDialogSquiggly(boolean showPropDialogSquiggly)
showPropDialogSquiggly
- the showPropDialogSquiggly to setpublic static void setShowPropDialogReplacement(boolean showPropDialogReplacement)
showPropDialogReplacement
- the showPropDialogReplacement to setpublic static Dimension getMinimumAnnotSize()
public static void setMinimumAnnotSize(Dimension minimumAnnotSize)
minimumAnnotSize
- the minimumAnnotSize to setpublic static void setContentsFromTextHighlight(boolean setContentsFromText)
setContentsFromText
- if true, the MarkUpText annotation content will be initialized to
the text within the quadrilateralspublic static boolean isSetContentsFromTextHighlight()
public static void setContentsFromTextUnderline(boolean setContentsFromText)
setContentsFromText
- if true, the MarkUpText annotation content will be initialized to
the text within the quadrilateralspublic static boolean isSetContentsFromTextUnderline()
public static void setContentsFromTextCrossout(boolean setContentsFromText)
setContentsFromText
- if true, the MarkUpText annotation content will be initialized to
the text within the quadrilateralspublic static boolean isSetContentsFromTextCrossout()
public static void setContentsFromTextSquiggly(boolean setContentsFromText)
setContentsFromText
- if true, the MarkUpText annotation content will be initialized to
the text within the quadrilateralspublic static boolean isSetContentsFromTextSquiggly()
public static void setContentsFromTextReplacement(boolean setContentsFromText)
setContentsFromText
- if true, the MarkUpText annotation content will be initialized to
the text within the quadrilateralspublic static boolean isSetContentsFromTextReplacement()
public static boolean isHighlightSticky()
public static void setHighlightSticky(boolean sticky)
sticky
- The new value of the sticky flag.public static boolean isUnderlineSticky()
public static void setUnderlineSticky(boolean sticky)
sticky
- The new value of the sticky flag.public static boolean isCrossoutSticky()
public static void setCrossoutSticky(boolean sticky)
sticky
- The new value of the sticky flag.public static boolean isSquigglySticky()
public static void setSquigglySticky(boolean sticky)
sticky
- The new value of the sticky flag.public static boolean isReplacementSticky()
public static void setReplacementSticky(boolean sticky)
sticky
- The new value of the sticky flag.