Package com.independentsoft.office.odf
Class Annotation
java.lang.Object
com.independentsoft.office.odf.Annotation
- All Implemented Interfaces:
ICellContent,IContentElement,IParagraphContent
Represents an OpenDocument annotation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a List object to the content.voidAdds a Paragraph object to the content.clone()Creates a new object that is a deep copy of the current instance.Gets the position of a point that is captioned.Gets the position of a point that is captioned.Contains a collection of ITextContent objects.Returns all content elements.Gets the radius of the circle used to round off the corners of a caption, rectangle, or a text-box.Gets the date and time when the document was last modified, when an annotation was created, when a change was made.Gets the date entered by a user that is of type String and not a date type.Gets the name of the person who last modified a document, who created an annotation, who authored a change.Gets the height of the rectangular which displays the annotation.getID()Gets unrestricted identifiers to draw elements.getLayer()Gets the name of a layer.getName()Gets the name of the annotation.Returns the parent content element.Gets the height of a drawing object as a relative value within a frame.Gets the width of a drawing object as a relative value within a frame.getStyle()Gets the name of a style that defines a style with the family value of graphic.Gets the style for formatting of text in a shape.Gets a list of transform definitions, which are applied to the drawing shape in the order in which they are listed.getWidth()Gets the width of the rectangular which displays the annotation.getX()Gets the horizontal position of the annotation.getY()Gets the position where the annotation is displayed.intGets the rendering order for shapes in a document instance.booleanisShow()Contains true if an annotation is visible otherwise is false.voidsetCaptionPointX(Size captionPointX)Sets the position of a point that is captioned.voidsetCaptionPointY(Size captionPointY)Sets the position of a point that is captioned.voidsetCornerRadius(Size cornerRadius)Sets the radius of the circle used to round off the corners of a caption, rectangle, or a text-box.voidsetCreationDate(Date creationDate)Sets the date and time when the document was last modified, when an annotation was created, when a change was made.voidsetCreationDateString(String creationDateString)Sets the date entered by a user that is of type String and not a date type.voidsetCreator(String creator)Sets the name of the person who last modified a document, who created an annotation, who authored a change.voidSets the height of the rectangular which displays the annotation.voidSets unrestricted identifiers to draw elements.voidSets the name of a layer.voidSets the name of the annotation.voidsetParent(IContentElement parent)Sets the parent content element.voidsetRelativeHeight(String relativeHeight)Sets the height of a drawing object as a relative value within a frame.voidsetRelativeWidth(String relativeWidth)Sets the width of a drawing object as a relative value within a frame.voidsetShow(boolean show)Contains true if an annotation is visible otherwise is false.voidSets the name of a style that defines a style with the family value of graphic.voidsetTextStyle(String textStyle)Sets the style for formatting of text in a shape.voidsetTransform(String transform)Sets a list of transform definitions, which are applied to the drawing shape in the order in which they are listed.voidSets the width of the rectangular which displays the annotation.voidSets the horizontal position of the annotation.voidSets the position where the annotation is displayed.voidsetZIndex(int zIndex)Sets the rendering order for shapes in a document instance.toString()Converts the value of the current Annotation object to its equivalent string representation.
-
Constructor Details
-
Annotation
public Annotation()Initializes a new instance of the Annotation class.
-
-
Method Details
-
add
Adds a List object to the content.- Parameters:
list- the list
-
add
Adds a Paragraph object to the content.- Parameters:
paragraph- the paragraph
-
getContentElements
Returns all content elements.- Specified by:
getContentElementsin interfaceIContentElement- Returns:
- A collection of content elements.
-
getParent
Returns the parent content element.- Specified by:
getParentin interfaceIContentElement- Returns:
- the parent
-
setParent
Sets the parent content element.- Specified by:
setParentin interfaceIContentElement- Parameters:
parent- the new parent
-
clone
Creates a new object that is a deep copy of the current instance.- Specified by:
clonein interfaceICellContent- Specified by:
clonein interfaceIContentElement- Specified by:
clonein interfaceIParagraphContent- Overrides:
clonein classObject- Returns:
- A new object that is a copy of this instance.
-
toString
Converts the value of the current Annotation object to its equivalent string representation. -
getContent
Contains a collection of ITextContent objects.- Returns:
- the content
-
getCreator
Gets the name of the person who last modified a document, who created an annotation, who authored a change.- Returns:
- the creator
-
setCreator
Sets the name of the person who last modified a document, who created an annotation, who authored a change.- Parameters:
creator- the new creator
-
getCreationDate
Gets the date and time when the document was last modified, when an annotation was created, when a change was made.- Returns:
- the creation date
-
setCreationDate
Sets the date and time when the document was last modified, when an annotation was created, when a change was made.- Parameters:
creationDate- the new creation date
-
getCreationDateString
Gets the date entered by a user that is of type String and not a date type. This value is used only for display as entered.- Returns:
- the creation date string
-
setCreationDateString
Sets the date entered by a user that is of type String and not a date type. This value is used only for display as entered.- Parameters:
creationDateString- the new creation date string
-
isShow
public boolean isShow()Contains true if an annotation is visible otherwise is false.- Returns:
- true, if is show
-
setShow
public void setShow(boolean show)Contains true if an annotation is visible otherwise is false.- Parameters:
show- the new show
-
getID
Gets unrestricted identifiers to draw elements.- Returns:
- the id
-
setID
Sets unrestricted identifiers to draw elements.- Parameters:
id- the new id
-
getLayer
Gets the name of a layer.- Returns:
- the layer
-
setLayer
Sets the name of a layer.- Parameters:
layer- the new layer
-
getStyle
Gets the name of a style that defines a style with the family value of graphic.- Returns:
- the style
-
setStyle
Sets the name of a style that defines a style with the family value of graphic.- Parameters:
style- the new style
-
getTextStyle
Gets the style for formatting of text in a shape.- Returns:
- the text style
-
setTextStyle
Sets the style for formatting of text in a shape.- Parameters:
textStyle- the new text style
-
getName
Gets the name of the annotation.- Returns:
- the name
-
setName
Sets the name of the annotation.- Parameters:
name- the new name
-
getZIndex
public int getZIndex()Gets the rendering order for shapes in a document instance.- Returns:
- the z index
-
setZIndex
public void setZIndex(int zIndex)Sets the rendering order for shapes in a document instance.- Parameters:
zIndex- the new z index
-
getTransform
Gets a list of transform definitions, which are applied to the drawing shape in the order in which they are listed. The transform definitions in the list shall be separated by a white space and/or a comma.- Returns:
- the transform
-
setTransform
Sets a list of transform definitions, which are applied to the drawing shape in the order in which they are listed. The transform definitions in the list shall be separated by a white space and/or a comma.- Parameters:
transform- the new transform
-
getX
Gets the horizontal position of the annotation.- Returns:
- the x
-
setX
Sets the horizontal position of the annotation.- Parameters:
x- the new x
-
getY
Gets the position where the annotation is displayed.- Returns:
- the y
-
setY
Sets the position where the annotation is displayed.- Parameters:
y- the new y
-
getWidth
Gets the width of the rectangular which displays the annotation.- Returns:
- the width
-
setWidth
Sets the width of the rectangular which displays the annotation.- Parameters:
width- the new width
-
getHeight
Gets the height of the rectangular which displays the annotation.- Returns:
- the height
-
setHeight
Sets the height of the rectangular which displays the annotation.- Parameters:
height- the new height
-
getRelativeWidth
Gets the width of a drawing object as a relative value within a frame.- Returns:
- the relative width
-
setRelativeWidth
Sets the width of a drawing object as a relative value within a frame.- Parameters:
relativeWidth- the new relative width
-
getRelativeHeight
Gets the height of a drawing object as a relative value within a frame.- Returns:
- the relative height
-
setRelativeHeight
Sets the height of a drawing object as a relative value within a frame.- Parameters:
relativeHeight- the new relative height
-
getCornerRadius
Gets the radius of the circle used to round off the corners of a caption, rectangle, or a text-box.- Returns:
- the corner radius
-
setCornerRadius
Sets the radius of the circle used to round off the corners of a caption, rectangle, or a text-box.- Parameters:
cornerRadius- the new corner radius
-
getCaptionPointX
Gets the position of a point that is captioned. A set of lines are rendered to that point from the caption area.- Returns:
- the caption point x
-
setCaptionPointX
Sets the position of a point that is captioned. A set of lines are rendered to that point from the caption area.- Parameters:
captionPointX- the new caption point x
-
getCaptionPointY
Gets the position of a point that is captioned. A set of lines are rendered to that point from the caption area.- Returns:
- the caption point y
-
setCaptionPointY
Sets the position of a point that is captioned. A set of lines are rendered to that point from the caption area.- Parameters:
captionPointY- the new caption point y
-