Class XDGFBaseContents

Direct Known Subclasses:
XDGFMasterContents, XDGFPageContents

public class XDGFBaseContents extends XDGFXMLDocumentPart
Container of shapes for a page in a Visio diagram. Shapes are not necessarily literal shapes in the diagram, but is the term that is used to describe the basic elements that make up a Visio diagram.
  • Field Details

    • _pageContents

      protected com.microsoft.schemas.office.visio.x2012.main.PageContentsType _pageContents
    • _toplevelShapes

      protected List<XDGFShape> _toplevelShapes
    • _shapes

      protected Map<Long,XDGFShape> _shapes
    • _connections

      protected List<XDGFConnection> _connections
  • Constructor Details

  • Method Details

    • getXmlObject

      @Internal public com.microsoft.schemas.office.visio.x2012.main.PageContentsType getXmlObject()
    • onDocumentRead

      protected void onDocumentRead()
      Description copied from class: POIXMLDocumentPart
      Fired when a package part is read
      Overrides:
      onDocumentRead in class POIXMLDocumentPart
    • addToShapeIndex

      protected void addToShapeIndex(XDGFShape shape)
    • draw

      public void draw(Graphics2D graphics)
      Draws the contents of a page onto a Graphics2D object
      Parameters:
      graphics - The context to draw on.
    • getShapeById

      public XDGFShape getShapeById(long id)
    • getShapesMap

      public Map<Long,XDGFShape> getShapesMap()
    • getShapes

      public Collection<XDGFShape> getShapes()
    • getTopLevelShapes

      public List<XDGFShape> getTopLevelShapes()
    • getConnections

      public List<XDGFConnection> getConnections()
    • toString

      public String toString()
      Overrides:
      toString in class POIXMLDocumentPart
    • visitShapes

      public void visitShapes(ShapeVisitor visitor)
      Provides iteration over the shapes using the visitor pattern, and provides an easy way to convert shape coordinates into global coordinates