public class XDGFBaseContents extends XDGFXMLDocumentPart
POIXMLDocumentPart.RelationPart
Modifier and Type | Field and Description |
---|---|
protected java.util.List<XDGFConnection> |
_connections |
protected com.microsoft.schemas.office.visio.x2012.main.PageContentsType |
_pageContents |
protected java.util.Map<java.lang.Long,XDGFShape> |
_shapes |
protected java.util.List<XDGFShape> |
_toplevelShapes |
_document
Constructor and Description |
---|
XDGFBaseContents(PackagePart part) |
Modifier and Type | Method and Description |
---|---|
protected void |
addToShapeIndex(XDGFShape shape) |
void |
draw(java.awt.Graphics2D graphics)
Draws the contents of a page onto a Graphics2D object
|
java.util.List<XDGFConnection> |
getConnections() |
XDGFShape |
getShapeById(long id) |
java.util.Collection<XDGFShape> |
getShapes() |
java.util.Map<java.lang.Long,XDGFShape> |
getShapesMap() |
java.util.List<XDGFShape> |
getTopLevelShapes() |
com.microsoft.schemas.office.visio.x2012.main.PageContentsType |
getXmlObject() |
protected void |
onDocumentRead()
Fired when a package part is read
|
java.lang.String |
toString() |
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
|
setDocument
_invokeOnDocumentRead, addRelation, commit, createRelationship, createRelationship, createRelationship, getNextPartNumber, getPackagePart, getParent, getRelationById, getRelationId, getRelationPartById, getRelationParts, getRelations, getTargetPart, isCommitted, onDocumentCreate, onDocumentRemove, onSave, prepareForCommit, read, rebase, removeRelation, removeRelation, removeRelation, setCommitted
protected com.microsoft.schemas.office.visio.x2012.main.PageContentsType _pageContents
protected java.util.List<XDGFShape> _toplevelShapes
protected java.util.Map<java.lang.Long,XDGFShape> _shapes
protected java.util.List<XDGFConnection> _connections
public XDGFBaseContents(PackagePart part)
@Internal public com.microsoft.schemas.office.visio.x2012.main.PageContentsType getXmlObject()
protected void onDocumentRead()
POIXMLDocumentPart
onDocumentRead
in class POIXMLDocumentPart
protected void addToShapeIndex(XDGFShape shape)
public void draw(java.awt.Graphics2D graphics)
graphics
- The context to draw on.public XDGFShape getShapeById(long id)
public java.util.Map<java.lang.Long,XDGFShape> getShapesMap()
public java.util.Collection<XDGFShape> getShapes()
public java.util.List<XDGFShape> getTopLevelShapes()
public java.util.List<XDGFConnection> getConnections()
public java.lang.String toString()
toString
in class POIXMLDocumentPart
public void visitShapes(ShapeVisitor visitor)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.