Package org.apache.poi.xdgf.usermodel
Class XDGFBaseContents
java.lang.Object
org.apache.poi.ooxml.POIXMLDocumentPart
org.apache.poi.xdgf.xml.XDGFXMLDocumentPart
org.apache.poi.xdgf.usermodel.XDGFBaseContents
- Direct Known Subclasses:
XDGFMasterContents
,XDGFPageContents
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.poi.ooxml.POIXMLDocumentPart
POIXMLDocumentPart.RelationPart
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List
<XDGFConnection> protected com.microsoft.schemas.office.visio.x2012.main.PageContentsType
Fields inherited from class org.apache.poi.xdgf.xml.XDGFXMLDocumentPart
_document
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addToShapeIndex
(XDGFShape shape) void
draw
(Graphics2D graphics) Draws the contents of a page onto a Graphics2D objectgetShapeById
(long id) com.microsoft.schemas.office.visio.x2012.main.PageContentsType
protected void
Fired when a package part is readtoString()
void
visitShapes
(ShapeVisitor visitor) Provides iteration over the shapes using the visitor pattern, and provides an easy way to convert shape coordinates into global coordinatesMethods inherited from class org.apache.poi.ooxml.POIXMLDocumentPart
_invokeOnDocumentRead, addRelation, commit, createRelationship, createRelationship, createRelationship, getNextPartNumber, getPackagePart, getParent, getRelationById, getRelationId, getRelationPartById, getRelationParts, getRelations, getTargetPart, isCommited, onDocumentCreate, onDocumentRemove, onSave, prepareForCommit, read, rebase, removeRelation, removeRelation, removeRelation, setCommited
-
Field Details
-
_pageContents
protected com.microsoft.schemas.office.visio.x2012.main.PageContentsType _pageContents -
_toplevelShapes
-
_shapes
-
_connections
-
-
Constructor Details
-
XDGFBaseContents
- Since:
- POI 3.14-Beta1
-
-
Method Details
-
getXmlObject
-
onDocumentRead
protected void onDocumentRead()Description copied from class:POIXMLDocumentPart
Fired when a package part is read- Overrides:
onDocumentRead
in classPOIXMLDocumentPart
-
addToShapeIndex
-
draw
Draws the contents of a page onto a Graphics2D object- Parameters:
graphics
- The context to draw on.
-
getShapeById
-
getShapesMap
-
getShapes
-
getTopLevelShapes
-
getConnections
-
toString
- Overrides:
toString
in classPOIXMLDocumentPart
-
visitShapes
Provides iteration over the shapes using the visitor pattern, and provides an easy way to convert shape coordinates into global coordinates
-