Class Line
java.lang.Object
com.independentsoft.office.odf.drawing.Shape
com.independentsoft.office.odf.drawing.Line
- All Implemented Interfaces:
ICellContent,IContentElement,IIndexContent,IParagraphContent,ITextContent
Represents a line.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionLine()Initializes a new instance of the Line class.Line(InternalXMLStreamReader reader)Instantiates a new line. -
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.getX1()Gets the start position then is the position of the glue point to which the connector is connected.getX2()Gets the end position then is the position of the glue point to which the connector is connected.getY1()Gets the start position then is the position of the glue point to which the connector is connected.getY2()Gets the end position then is the position of the glue point to which the connector is connected.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 start position then is the position of the glue point to which the connector is connected.voidSets the end position then is the position of the glue point to which the connector is connected.voidSets the start position then is the position of the glue point to which the connector is connected.voidSets the end position then is the position of the glue point to which the connector is connected.toString()Converts the value of the current Line object to its equivalent string representation.
-
Constructor Details
-
Line
public Line()Initializes a new instance of the Line class. -
Line
Instantiates a new line.- 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 Line 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
-
getX1
Gets the start position then is the position of the glue point to which the connector is connected.- Returns:
- the x1
-
setX1
Sets the start position then is the position of the glue point to which the connector is connected.- Parameters:
x1- the new x1
-
getY1
Gets the start position then is the position of the glue point to which the connector is connected.- Returns:
- the y1
-
setY1
Sets the start position then is the position of the glue point to which the connector is connected.- Parameters:
y1- the new y1
-
getX2
Gets the end position then is the position of the glue point to which the connector is connected.- Returns:
- the x2
-
setX2
Sets the end position then is the position of the glue point to which the connector is connected.- Parameters:
x2- the new x2
-
getY2
Gets the end position then is the position of the glue point to which the connector is connected.- Returns:
- the y2
-
setY2
Sets the end position then is the position of the glue point to which the connector is connected.- Parameters:
y2- the new y2
-
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
-