Class Group
java.lang.Object
com.independentsoft.office.odf.drawing.Shape
com.independentsoft.office.odf.drawing.Group
- All Implemented Interfaces:
ICellContent,IContentElement,IIndexContent,IParagraphContent,ITextContent
Represents a group of drawing shapes.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionGroup()Initializes a new instance of the Group class.Group(InternalXMLStreamReader reader)Instantiates a new group. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a Shape object to the content.clone()Creates a new object that is a deep copy of the current instance.Specifies how a frame is bound to a text document.Contains a collection of Shape 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 coordinate to the drawing shape's bounding box.voidsetAnchorType(AnchorType anchorType)Specifies how a frame is bound to a text document.voidsetParent(IContentElement parent)Sets the parent content element.voidsetPosition(String position)Sets the coordinate to the drawing shape's bounding box.toString()Converts the value of the current Group object to its equivalent string representation.
-
Constructor Details
-
Group
public Group()Initializes a new instance of the Group class. -
Group
Instantiates a new group.- Parameters:
reader- the reader- Throws:
XMLStreamException- the xML stream exception
-
-
Method Details
-
add
Adds a Shape object to the content.- Parameters:
shape- the shape
-
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 Group object to its equivalent string representation. -
getContent
Contains a collection of Shape 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
-
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
-
getPosition
Gets the coordinate to the drawing shape's bounding box.- Returns:
- the position
-
setPosition
Sets the coordinate to the drawing shape's bounding box.- Parameters:
position- the new position
-