Class XDGFShape


  • public class XDGFShape
    extends XDGFSheet
    A shape is a collection of Geometry Visualization, Format, Text, Images, and Shape Data in a Drawing Page.
    • Constructor Detail

      • XDGFShape

        public XDGFShape​(com.microsoft.schemas.office.visio.x2012.main.ShapeSheetType shapeSheet,
                         XDGFBaseContents parentPage,
                         XDGFDocument document)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getXmlObject

        @Internal
        public com.microsoft.schemas.office.visio.x2012.main.ShapeSheetType getXmlObject()
      • getID

        public long getID()
      • getType

        public java.lang.String getType()
      • getTextAsString

        public java.lang.String getTextAsString()
      • hasText

        public boolean hasText()
      • getCell

        public XDGFCell getCell​(java.lang.String cellName)
        Description copied from class: XDGFSheet
        A cell is really just a setting
        Overrides:
        getCell in class XDGFSheet
        Parameters:
        cellName - The particular setting you want
      • getShapes

        public java.util.List<XDGFShape> getShapes()
        Only available if this shape is a shape group, may be null
      • getName

        public java.lang.String getName()
      • getShapeType

        public java.lang.String getShapeType()
      • getSymbolName

        public java.lang.String getSymbolName()
      • getMasterShape

        public XDGFShape getMasterShape()
      • getParentShape

        public XDGFShape getParentShape()
        Returns:
        The parent shape if this is a subshape, null otherwise
      • getTopmostParentShape

        public XDGFShape getTopmostParentShape()
      • hasMaster

        public boolean hasMaster()
      • hasMasterShape

        public boolean hasMasterShape()
      • hasParent

        public boolean hasParent()
      • hasShapes

        public boolean hasShapes()
      • isTopmost

        public boolean isTopmost()
      • isShape1D

        public boolean isShape1D()
      • isDeleted

        public boolean isDeleted()
      • getPinX

        public java.lang.Double getPinX()
      • getPinY

        public java.lang.Double getPinY()
      • getWidth

        public java.lang.Double getWidth()
      • getHeight

        public java.lang.Double getHeight()
      • getLocPinX

        public java.lang.Double getLocPinX()
      • getLocPinY

        public java.lang.Double getLocPinY()
      • getBeginX

        public java.lang.Double getBeginX()
      • getBeginY

        public java.lang.Double getBeginY()
      • getEndX

        public java.lang.Double getEndX()
      • getEndY

        public java.lang.Double getEndY()
      • getAngle

        public java.lang.Double getAngle()
      • getFlipX

        public java.lang.Boolean getFlipX()
      • getFlipY

        public java.lang.Boolean getFlipY()
      • getTxtPinX

        public java.lang.Double getTxtPinX()
      • getTxtPinY

        public java.lang.Double getTxtPinY()
      • getTxtLocPinX

        public java.lang.Double getTxtLocPinX()
      • getTxtLocPinY

        public java.lang.Double getTxtLocPinY()
      • getTxtAngle

        public java.lang.Double getTxtAngle()
      • getTxtWidth

        public java.lang.Double getTxtWidth()
      • getTxtHeight

        public java.lang.Double getTxtHeight()
      • getLineCap

        public java.lang.Integer getLineCap()
        Overrides:
        getLineCap in class XDGFSheet
      • getStroke

        public java.awt.Stroke getStroke()
      • getGeometrySections

        public java.lang.Iterable<GeometrySection> getGeometrySections()
      • getBounds

        public java.awt.geom.Rectangle2D.Double getBounds()
        Returns:
        rectangle in local coordinates
      • getBoundsAsPath

        public java.awt.geom.Path2D.Double getBoundsAsPath()
        Returns:
        returns bounds as a path in local coordinates, which is userful if you need to transform to global coordinates Warning: Don't use this for 1d objects, and will fail for infinite line objects
      • getPath

        public java.awt.geom.Path2D.Double getPath()
        Returns:
        The outline of the shape in local coordinates
      • hasGeometry

        public boolean hasGeometry()
      • visitShapes

        public void visitShapes​(ShapeVisitor visitor,
                                java.awt.geom.AffineTransform tr,
                                int level)
        The visitor will first visit this shape, then it's children This is useful because exceptions will be marked with the shapes as it propagates up the shape hierarchy.
      • visitShapes

        public void visitShapes​(ShapeVisitor visitor,
                                int level)
        The visitor will first visit this shape, then it's children. No transform is calculated for this visit This is useful because exceptions will be marked with the shapes as it propagates up the shape hierarchy.