public class AnnotationTools extends Object
All of the tool's property values can be retrieved and initialized with the
methods toXMLString()
and setFromXML()
.
Modifier and Type | Field and Description |
---|---|
static String |
XMLKEY_TOOL_DEFAULTS
XML Element name used for reading/writing as an XML string
|
Constructor and Description |
---|
AnnotationTools() |
Modifier and Type | Method and Description |
---|---|
static DateFormat |
getCommentsDateFormat()
Returns the date format used when displaying the modified date for annotations.
|
static String |
getDefaultAuthor()
Returns the default author.
|
static boolean |
isAuthorEditable()
Returns the value of the editable flag for the author field.
|
static boolean |
isCtrlDragCopyAnnotationsEnabled()
Returns the value of the ctrl+drag to copy annotations enabled flag.
|
static boolean |
isDeleteEnabled()
Returns the value of the annotation delete enabled flag.
|
static boolean |
isDrawOverlappingAnnotationsEnabled()
Returns the value of the draw overlapping annotations enabled flag.
|
static boolean |
isFlatteningEnabled()
Returns the value of the flattening enabled flag.
|
static boolean |
isGroupingEnabled()
Returns the value of the annotation grouping enabled flag.
|
static boolean |
isMiniToolbarEnabled()
Returns the value of the mini toolbar enabled flag.
|
static boolean |
isReviewEnabled()
Returns the flag that indicates whether the review status cycle is enabled.
|
static void |
setAuthorEditable(boolean editable)
Sets the author field as editable or read only.
|
static void |
setCommentsDateFormat(DateFormat dFormat)
Sets the date format to use when displaying the modified date for annotations.
|
static void |
setCtrlDragCopyAnnotationsEnabled(boolean enabled)
Sets a flag to indicate whether ctrl+dragging annotations results
in copying those annotations.
|
static void |
setDefaultAuthor(String defaultAuthor)
Sets the default author.
|
static void |
setDeleteEnabled(boolean enabled)
Sets a flag to indicate whether annotation deletion should be enabled.
|
static void |
setDrawOverlappingAnnotationsEnabled(boolean enabled)
Sets a flag to indicate whether overlapping annotations should be allowed
when drawing annotations.
|
static void |
setFlatteningEnabled(boolean enabled)
Sets a flag to indicate whether annotation flattening should be enabled
in the bean.
|
static void |
setFromXML(String xmlString)
This method sets the Tool default properties with properly formatted
String xml element. |
static void |
setGroupingEnabled(boolean enabled)
Sets a flag to indicate whether annotation grouping should be enabled.
|
static void |
setMiniToolbarEnabled(boolean enabled)
Sets a flag to indicate whether to show a functional mini-toolbar under
comments when they are selected on the page.
|
static void |
setReviewEnabled(boolean reviewEnabled)
Sets a flag to indicate whether annotation review status should be enabled.
|
static String |
toXMLString()
This method creates a
String that contains an xml element of
the Tool default properties. |
public static final String XMLKEY_TOOL_DEFAULTS
public static String getDefaultAuthor()
public static void setDefaultAuthor(String defaultAuthor)
defaultAuthor
- The defaultAuthor to setpublic static void setAuthorEditable(boolean editable)
editable
- the new value of the flag.public static boolean isAuthorEditable()
public static void setFromXML(String xmlString)
String
xml element.
Properties are set for AreaHighlightTool, AreaTool, ArrowTool,
BookmarkTool, CalloutTool, CaretTool, CircleTool, CloudTool, DistanceTool,
FileAttachmentTool, FreeTextTool, LineTool, LinkTool, PencilTool,
PerimeterTool, PolygonTool, PolylineTool, RedactionTool, RubberStampTool,
SoundTool, SquareTool, StickyNoteTool, TextMarkupTools, and TypewriterTool.toXMLString()
public static String toXMLString()
String
that contains an xml element of
the Tool default properties. This String
can be stored and
used to set the Tool default properties.
Attributes are set for AreaHighlightTool, AreaTool, ArrowTool,
BookmarkTool, CalloutTool, CaretTool, CircleTool, CloudTool, DistanceTool,
FileAttachmentTool, FreeTextTool, LineTool, LinkTool, PencilTool,
PerimeterTool, PolygonTool, PolylineTool, RedactionTool, RubberStampTool,
SoundTool, SquareTool, StickyNoteTool, TextMarkupTools, and TypewriterTool.String
containing an xml element of the Tool
default properties.setFromXML(String)
public static void setFlatteningEnabled(boolean enabled)
enabled
- The new value of the flattening enabled flagpublic static boolean isFlatteningEnabled()
public static void setDeleteEnabled(boolean enabled)
enabled
- The new value of the delete annotations flagpublic static boolean isDeleteEnabled()
public static void setMiniToolbarEnabled(boolean enabled)
enabled
- The new value of the mini toolbar enabled flag.public static boolean isMiniToolbarEnabled()
public static void setGroupingEnabled(boolean enabled)
enabled
- The new value of the grouping annotations flagpublic static boolean isGroupingEnabled()
public static void setDrawOverlappingAnnotationsEnabled(boolean enabled)
enabled
- The new value of the draw overlapping annotations enabled flag.public static boolean isDrawOverlappingAnnotationsEnabled()
public static void setCtrlDragCopyAnnotationsEnabled(boolean enabled)
enabled
- The new value of the ctrl+drag to copy annotations enabled flag.public static boolean isCtrlDragCopyAnnotationsEnabled()
public static void setReviewEnabled(boolean reviewEnabled)
reviewEnabled
- The new value of the flag.public static boolean isReviewEnabled()
public static void setCommentsDateFormat(DateFormat dFormat)
dFormat
- The new date formatpublic static DateFormat getCommentsDateFormat()