Class Path
java.lang.Object
com.independentsoft.office.odf.drawing.Shape
com.independentsoft.office.odf.drawing.Path
- All Implemented Interfaces:
ICellContent,IContentElement,IIndexContent,IParagraphContent,ITextContent
Represents a path. A path is a shape with a user-defined outline.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionPath()Initializes a new instance of the Path class.Path(InternalXMLStreamReader reader)Instantiates a new path. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a IDrawText object to the content.voidAdds 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.intSpecifies the physical page number of an anchor if the drawing object is bound to a page within a text document.Specifies how a frame is bound to a text document.Contains a collection of IDrawText objects.Returns all content elements.getData()Gets the data.Contains an attachment of an event listener to a drawing shape.Contains the designated point in the area of a drawing object to which a connector shape can connect.Returns the parent content element.Gets height of a drawing object as a relative value within a frame.Gets width of a drawing object as a relative value within a frame.Establishes a user coordinate system inside the physical coordinate system of the shape specified by the position and size attributes.voidsetAnchorPageNumber(int anchorPageNumber)Specifies the physical page number of an anchor if the drawing object is bound to a page within a text document.voidsetAnchorType(AnchorType anchorType)Specifies how a frame is bound to a text document.voidSets the data.voidsetParent(IContentElement parent)Sets the parent content element.voidsetRelativeHeight(String relativeHeight)Sets height of a drawing object as a relative value within a frame.voidsetRelativeWidth(String relativeWidth)Sets width of a drawing object as a relative value within a frame.voidsetViewBox(String viewBox)Establishes a user coordinate system inside the physical coordinate system of the shape specified by the position and size attributes.toString()Converts the value of the current Path object to its equivalent string representation.
-
Constructor Details
-
Path
public Path()Initializes a new instance of the Path class. -
Path
Instantiates a new path.- Parameters:
reader- the reader- Throws:
XMLStreamException- the xML stream exception
-
-
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
-
add
Adds a IDrawText object to the content.- Parameters:
drawText- the draw text
-
getContentElements
Returns all content elements.- Specified by:
getContentElementsin interfaceIContentElement- Specified by:
getContentElementsin classShape- Returns:
- A collection of content elements.
-
getParent
Returns the parent content element.- Specified by:
getParentin interfaceIContentElement- Overrides:
getParentin classShape- Returns:
- the parent
-
setParent
Sets the parent content element.- Specified by:
setParentin interfaceIContentElement- Overrides:
setParentin classShape- 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 interfaceIIndexContent- Specified by:
clonein interfaceIParagraphContent- Specified by:
clonein interfaceITextContent- Specified by:
clonein classShape- Returns:
- A new object that is a copy of this instance.
-
toString
Converts the value of the current Path object to its equivalent string representation. -
getContent
Contains a collection of IDrawText objects.- Returns:
- the content
-
getEventListeners
Contains an attachment of an event listener to a drawing shape.- Returns:
- the event listeners
-
getGluePoints
Contains the designated point in the area of a drawing object to which a connector shape can connect.- Returns:
- the glue points
-
getRelativeWidth
Gets width of a drawing object as a relative value within a frame.- Returns:
- the relative width
-
setRelativeWidth
Sets width of a drawing object as a relative value within a frame.- Parameters:
relativeWidth- the new relative width
-
getRelativeHeight
Gets height of a drawing object as a relative value within a frame.- Returns:
- the relative height
-
setRelativeHeight
Sets height of a drawing object as a relative value within a frame.- Parameters:
relativeHeight- the new relative height
-
getData
Gets the data.- Returns:
- the data
-
setData
Sets the data.- Parameters:
data- the new data
-
getViewBox
Establishes a user coordinate system inside the physical coordinate system of the shape specified by the position and size attributes.- Returns:
- the view box
-
setViewBox
Establishes a user coordinate system inside the physical coordinate system of the shape specified by the position and size attributes.- Parameters:
viewBox- the new view box
-
getAnchorType
Specifies how a frame is bound to a text document.- Returns:
- the anchor type
-
setAnchorType
Specifies how a frame is bound to a text document.- Parameters:
anchorType- the new anchor type
-
getAnchorPageNumber
public int getAnchorPageNumber()Specifies the physical page number of an anchor if the drawing object is bound to a page within a text document.- Returns:
- the anchor page number
-
setAnchorPageNumber
public void setAnchorPageNumber(int anchorPageNumber)Specifies the physical page number of an anchor if the drawing object is bound to a page within a text document.- Parameters:
anchorPageNumber- the new anchor page number
-