Class XSLFShape

    • Method Detail

      • getXmlObject

        public final XmlObject getXmlObject()
        Returns:
        the xml bean holding this shape's data
      • getShapeId

        public int getShapeId()
        Description copied from interface: Shape
        Returns a unique identifier for this shape within the current slide. This ID may be used to assist in uniquely identifying this object so that it can be referred to by other parts of the document.

        If multiple objects within the same slide share the same id attribute value, then the document shall be considered non-conformant.

        Specified by:
        getShapeId in interface Shape<XSLFShape,​XSLFTextParagraph>
        Returns:
        unique id of this shape
      • isPlaceholder

        public boolean isPlaceholder()
      • fetchShapeProperty

        @Internal
        public boolean fetchShapeProperty​(PropertyFetcher<?> visitor)
        Walk up the inheritance tree and fetch shape properties.

        The following order of inheritance is assumed:

        1. slide
        2. slideLayout
        3. slideMaster
        Currently themes and their defaults aren't correctly handled
        Parameters:
        visitor - the object that collects the desired property
        Returns:
        true if the property was fetched
      • draw

        public void draw​(java.awt.Graphics2D graphics,
                         java.awt.geom.Rectangle2D bounds)
        Description copied from interface: Shape
        Convenience method to draw a single shape
        Specified by:
        draw in interface Shape<XSLFShape,​XSLFTextParagraph>
        Parameters:
        graphics - the graphics context
        bounds - the rectangle to fit the shape to. if null, the bounds of the shape are used.