java.lang.Object
com.independentsoft.office.odf.drawing.Shape
com.independentsoft.office.odf.drawing.Group
All Implemented Interfaces:
ICellContent, IContentElement, IIndexContent, IParagraphContent, ITextContent

public class Group extends Shape
Represents a group of drawing shapes.
  • Constructor Details

  • Method Details

    • add

      public void add(Shape shape)
      Adds a Shape object to the content.
      Parameters:
      shape - the shape
    • getContentElements

      public List<IContentElement> getContentElements()
      Returns all content elements.
      Specified by:
      getContentElements in interface IContentElement
      Specified by:
      getContentElements in class Shape
      Returns:
      A collection of content elements.
    • getParent

      public IContentElement getParent()
      Returns the parent content element.
      Specified by:
      getParent in interface IContentElement
      Overrides:
      getParent in class Shape
      Returns:
      the parent
    • setParent

      public void setParent(IContentElement parent)
      Sets the parent content element.
      Specified by:
      setParent in interface IContentElement
      Overrides:
      setParent in class Shape
      Parameters:
      parent - the new parent
    • clone

      public Group clone()
      Creates a new object that is a deep copy of the current instance.
      Specified by:
      clone in interface ICellContent
      Specified by:
      clone in interface IContentElement
      Specified by:
      clone in interface IIndexContent
      Specified by:
      clone in interface IParagraphContent
      Specified by:
      clone in interface ITextContent
      Specified by:
      clone in class Shape
      Returns:
      A new object that is a copy of this instance.
    • toString

      public String toString()
      Converts the value of the current Group object to its equivalent string representation.
      Overrides:
      toString in class Object
      Returns:
      the string
    • getContent

      public List<Shape> getContent()
      Contains a collection of Shape objects.
      Returns:
      the content
    • getEventListeners

      public List<IEventListener> getEventListeners()
      Contains an attachment of an event listener to a drawing shape.
      Returns:
      the event listeners
    • getGluePoints

      public List<GluePoint> getGluePoints()
      Contains the designated point in the area of a drawing object to which a connector shape can connect.
      Returns:
      the glue points
    • getAnchorType

      public AnchorType getAnchorType()
      Specifies how a frame is bound to a text document.
      Returns:
      the anchor type
    • setAnchorType

      public void setAnchorType(AnchorType anchorType)
      Specifies how a frame is bound to a text document.
      Parameters:
      anchorType - the new anchor type
    • getPosition

      public String getPosition()
      Gets the coordinate to the drawing shape's bounding box.
      Returns:
      the position
    • setPosition

      public void setPosition(String position)
      Sets the coordinate to the drawing shape's bounding box.
      Parameters:
      position - the new position