Class Polyline
java.lang.Object
com.independentsoft.office.odf.drawing.Shape
com.independentsoft.office.odf.drawing.Polyline
- All Implemented Interfaces:
ICellContent,IContentElement,IIndexContent,IParagraphContent,ITextContent
Represents a polyline drawing shape.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionPolyline()Initializes a new instance of the Polyline class.Polyline(InternalXMLStreamReader reader)Instantiates a new polyline. -
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.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 the sequence of points, which are connected by straight lines.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.voidsetParent(IContentElement parent)Sets the parent content element.voidSets the sequence of points, which are connected by straight lines.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 Polyline object to its equivalent string representation.
-
Constructor Details
-
Polyline
public Polyline()Initializes a new instance of the Polyline class. -
Polyline
Instantiates a new polyline.- 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 Polyline 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
-
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
-
getPoints
Gets the sequence of points, which are connected by straight lines.- Returns:
- the points
-
setPoints
Sets the sequence of points, which are connected by straight lines.- Parameters:
points- the new points
-
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
-