Package org.apache.poi.xdgf.usermodel
Class XDGFText
- java.lang.Object
-
- org.apache.poi.xdgf.usermodel.XDGFText
-
public class XDGFText extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
draw(java.awt.Graphics2D graphics)
When calling this to draw text, it assumes graphics is set properly to draw in the right style.java.awt.geom.Path2D.Double
getBoundsAsPath()
java.awt.geom.Rectangle2D.Double
getTextBounds()
These are in the shape coordinate systemjava.awt.geom.Point2D.Double
getTextCenter()
java.lang.String
getTextContent()
-
-
-
Constructor Detail
-
XDGFText
public XDGFText(com.microsoft.schemas.office.visio.x2012.main.TextType text, XDGFShape parent)
-
-
Method Detail
-
getTextContent
public java.lang.String getTextContent()
-
getTextBounds
public java.awt.geom.Rectangle2D.Double getTextBounds()
These are in the shape coordinate system- See Also:
- Text Block Coordinate System docs
-
getBoundsAsPath
public java.awt.geom.Path2D.Double getBoundsAsPath()
- Returns:
- Text bounds as a path in local coordinates, which is useful if you need to transform to global coordinates
-
getTextCenter
public java.awt.geom.Point2D.Double getTextCenter()
- Returns:
- Center of text in local coordinates
-
draw
public void draw(java.awt.Graphics2D graphics)
When calling this to draw text, it assumes graphics is set properly to draw in the right style.
-
-