Class Connector
java.lang.Object
com.independentsoft.office.odf.drawing.Shape
com.independentsoft.office.odf.drawing.Connector
- All Implemented Interfaces:
ICellContent,IContentElement,IIndexContent,IParagraphContent,ITextContent
The Class Connector.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the Connector class.Connector(InternalXMLStreamReader reader)Instantiates a new connector. -
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.Contains a collection of IDrawText objects.Returns all content elements.intGets the glue point in a shape where a connector ends by its number.Gets the drawing shape to which the end of a connector is connected by its ID.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.Gets the generation of the lines that connect the start and end points.Returns the parent content element.intGets the glue point in a shape where a connector starts by its number.Gets the drawing shape to which the start of a connector is connected by its ID.getType()Gets the connecting line between two escape points.getX1()Gets the start position of the glue point to which the connector is connected.getX2()Gets the end position of the glue point to which the connector is connected.getY1()Gets the start position of the glue point to which the connector is connected.getY2()Gets the end position of the glue point to which the connector is connected.voidsetEndGluePoint(int endGluePoint)Sets the glue point in a shape where a connector ends by its number.voidsetEndShape(String endShape)Sets the drawing shape to which the end of a connector is connected by its ID.voidsetLineSkew(Size lineSkew)Sets the generation of the lines that connect the start and end points.voidsetParent(IContentElement parent)Sets the parent content element.voidsetStartGluePoint(int startGluePoint)Sets the glue point in a shape where a connector starts by its number.voidsetStartShape(String startShape)Sets the drawing shape to which the start of a connector is connected by its ID.voidsetType(ConnectorType type)Sets the connecting line between two escape points.voidSets the start position of the glue point to which the connector is connected.voidSets the end position of the glue point to which the connector is connected.voidSets the start position of the glue point to which the connector is connected.voidSets the end position of the glue point to which the connector is connected.toString()Converts the value of the current Connector object to its equivalent string representation.
-
Constructor Details
-
Connector
public Connector()Initializes a new instance of the Connector class. -
Connector
Instantiates a new connector.- 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 Connector 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
-
getType
Gets the connecting line between two escape points.- Returns:
- the type
-
setType
Sets the connecting line between two escape points.- Parameters:
type- the new type
-
getX1
Gets the start position of the glue point to which the connector is connected.- Returns:
- the x1
-
setX1
Sets the start position of the glue point to which the connector is connected.- Parameters:
x1- the new x1
-
getY1
Gets the start position of the glue point to which the connector is connected.- Returns:
- the y1
-
setY1
Sets the start position of the glue point to which the connector is connected.- Parameters:
y1- the new y1
-
getX2
Gets the end position of the glue point to which the connector is connected.- Returns:
- the x2
-
setX2
Sets the end position of the glue point to which the connector is connected.- Parameters:
x2- the new x2
-
getY2
Gets the end position of the glue point to which the connector is connected.- Returns:
- the y2
-
setY2
Sets the end position of the glue point to which the connector is connected.- Parameters:
y2- the new y2
-
getStartShape
Gets the drawing shape to which the start of a connector is connected by its ID.- Returns:
- the start shape
-
setStartShape
Sets the drawing shape to which the start of a connector is connected by its ID.- Parameters:
startShape- the new start shape
-
getEndShape
Gets the drawing shape to which the end of a connector is connected by its ID.- Returns:
- the end shape
-
setEndShape
Sets the drawing shape to which the end of a connector is connected by its ID.- Parameters:
endShape- the new end shape
-
getStartGluePoint
public int getStartGluePoint()Gets the glue point in a shape where a connector starts by its number.- Returns:
- the start glue point
-
setStartGluePoint
public void setStartGluePoint(int startGluePoint)Sets the glue point in a shape where a connector starts by its number.- Parameters:
startGluePoint- the new start glue point
-
getEndGluePoint
public int getEndGluePoint()Gets the glue point in a shape where a connector ends by its number.- Returns:
- the end glue point
-
setEndGluePoint
public void setEndGluePoint(int endGluePoint)Sets the glue point in a shape where a connector ends by its number.- Parameters:
endGluePoint- the new end glue point
-
getLineSkew
Gets the generation of the lines that connect the start and end points. Depending on the type of connector, this can vary from one to three distances that move the connector lines relative to their position.- Returns:
- the line skew
-
setLineSkew
Sets the generation of the lines that connect the start and end points. Depending on the type of connector, this can vary from one to three distances that move the connector lines relative to their position.- Parameters:
lineSkew- the new line skew
-