public class XDGFShape extends XDGFSheet
| Constructor and Description |
|---|
XDGFShape(com.microsoft.schemas.office.visio.x2012.main.ShapeSheetType shapeSheet,
XDGFBaseContents parentPage,
XDGFDocument document) |
XDGFShape(XDGFShape parent,
com.microsoft.schemas.office.visio.x2012.main.ShapeSheetType shapeSheet,
XDGFBaseContents parentPage,
XDGFDocument document) |
| Modifier and Type | Method and Description |
|---|---|
Double |
getAngle() |
Double |
getBeginX() |
Double |
getBeginY() |
Rectangle2D.Double |
getBounds() |
Path2D.Double |
getBoundsAsPath() |
XDGFCell |
getCell(String cellName)
A cell is really just a setting
|
Double |
getEndX() |
Double |
getEndY() |
Boolean |
getFlipX() |
Boolean |
getFlipY() |
Color |
getFontColor() |
Double |
getFontSize() |
GeometrySection |
getGeometryByIdx(long idx) |
Iterable<GeometrySection> |
getGeometrySections() |
Double |
getHeight() |
long |
getID() |
Integer |
getLineCap() |
Color |
getLineColor() |
Integer |
getLinePattern() |
Double |
getLineWeight() |
Double |
getLocPinX() |
Double |
getLocPinY() |
XDGFShape |
getMasterShape() |
String |
getName() |
XDGFShape |
getParentShape() |
protected AffineTransform |
getParentTransform()
Returns a transform that can translate shape-local coordinates to the
coordinates of its parent shape
|
Path2D.Double |
getPath() |
Double |
getPinX() |
Double |
getPinY() |
List<XDGFShape> |
getShapes()
Only available if this shape is a shape group, may be null
|
String |
getShapeType() |
Stroke |
getStroke() |
String |
getSymbolName() |
XDGFText |
getText() |
String |
getTextAsString() |
XDGFShape |
getTopmostParentShape() |
Double |
getTxtAngle() |
Double |
getTxtHeight() |
Double |
getTxtLocPinX() |
Double |
getTxtLocPinY() |
Double |
getTxtPinX() |
Double |
getTxtPinY() |
Double |
getTxtWidth() |
String |
getType() |
Double |
getWidth() |
com.microsoft.schemas.office.visio.x2012.main.ShapeSheetType |
getXmlObject() |
boolean |
hasGeometry() |
boolean |
hasMaster() |
boolean |
hasMasterShape() |
boolean |
hasParent() |
boolean |
hasShapes() |
boolean |
hasText() |
boolean |
isDeleted() |
boolean |
isShape1D() |
boolean |
isTopmost() |
protected void |
readProperties() |
protected void |
setupMaster(XDGFPageContents pageContents,
XDGFMasterContents master)
Setup top level shapes
Shapes that have a 'Master' attribute refer to a specific master in the
page, whereas shapes with a 'MasterShape' attribute refer to a subshape
of a Master.
|
protected void |
setupSectionMasters() |
String |
toString() |
void |
visitShapes(ShapeVisitor visitor,
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.
|
void |
visitShapes(ShapeVisitor visitor,
int level)
The visitor will first visit this shape, then it's children.
|
getDocument, getFillStyle, getLineStyle, getSection, getTextStylepublic XDGFShape(com.microsoft.schemas.office.visio.x2012.main.ShapeSheetType shapeSheet,
XDGFBaseContents parentPage,
XDGFDocument document)
public XDGFShape(XDGFShape parent, com.microsoft.schemas.office.visio.x2012.main.ShapeSheetType shapeSheet, XDGFBaseContents parentPage, XDGFDocument document)
protected void readProperties()
protected void setupMaster(XDGFPageContents pageContents, XDGFMasterContents master)
protected void setupSectionMasters()
@Internal public com.microsoft.schemas.office.visio.x2012.main.ShapeSheetType getXmlObject()
public long getID()
public String getType()
public String getTextAsString()
public boolean hasText()
public XDGFCell getCell(String cellName)
XDGFSheetpublic GeometrySection getGeometryByIdx(long idx)
public List<XDGFShape> getShapes()
public String getName()
public String getShapeType()
public String getSymbolName()
public XDGFShape getMasterShape()
public XDGFShape getParentShape()
public XDGFShape getTopmostParentShape()
public boolean hasMaster()
public boolean hasMasterShape()
public boolean hasParent()
public boolean hasShapes()
public boolean isTopmost()
public boolean isShape1D()
public boolean isDeleted()
public XDGFText getText()
public Double getPinX()
public Double getPinY()
public Double getWidth()
public Double getHeight()
public Double getLocPinX()
public Double getLocPinY()
public Double getBeginX()
public Double getBeginY()
public Double getEndX()
public Double getEndY()
public Double getAngle()
public Boolean getFlipX()
public Boolean getFlipY()
public Double getTxtPinX()
public Double getTxtPinY()
public Double getTxtLocPinX()
public Double getTxtLocPinY()
public Double getTxtAngle()
public Double getTxtWidth()
public Double getTxtHeight()
public Integer getLineCap()
getLineCap in class XDGFSheetpublic Color getLineColor()
getLineColor in class XDGFSheetpublic Integer getLinePattern()
getLinePattern in class XDGFSheetpublic Double getLineWeight()
getLineWeight in class XDGFSheetpublic Color getFontColor()
getFontColor in class XDGFSheetpublic Double getFontSize()
getFontSize in class XDGFSheetpublic Stroke getStroke()
public Iterable<GeometrySection> getGeometrySections()
public Rectangle2D.Double getBounds()
public Path2D.Double getBoundsAsPath()
public Path2D.Double getPath()
public boolean hasGeometry()
protected AffineTransform getParentTransform()
public void visitShapes(ShapeVisitor visitor, AffineTransform tr, int level)
public void visitShapes(ShapeVisitor visitor, int level)