Class Measure
java.lang.Object
com.independentsoft.office.odf.drawing.Shape
com.independentsoft.office.odf.drawing.Measure
- All Implemented Interfaces:
ICellContent,IContentElement,IIndexContent,IParagraphContent,ITextContent
Represents a shape that is used to measure distances in drawings.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionMeasure()Initializes a new instance of the Measure class.Measure(InternalXMLStreamReader reader)Instantiates a new measure. -
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.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.getType()Gets the name of a shape type that is rendering engine dependent.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.voidsetParent(IContentElement parent)Sets the parent content element.voidsetType(ConnectorType type)Sets the name of a shape type that is rendering engine dependent.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 Measure object to its equivalent string representation.
-
Constructor Details
-
Measure
public Measure()Initializes a new instance of the Measure class. -
Measure
Instantiates a new measure.- 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 Measure 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 name of a shape type that is rendering engine dependent.- Returns:
- the type
-
setType
Sets the name of a shape type that is rendering engine dependent.- Parameters:
type- the new type
-
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
-