Class XDGFText

java.lang.Object
org.apache.poi.xdgf.usermodel.XDGFText

public class XDGFText extends Object
  • Constructor Details

    • XDGFText

      public XDGFText(com.microsoft.schemas.office.visio.x2012.main.TextType text, XDGFShape parent)
  • Method Details

    • getTextContent

      public String getTextContent()
    • getTextBounds

      public Rectangle2D.Double getTextBounds()
      These are in the shape coordinate system
      See Also:
    • getBoundsAsPath

      public 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 Point2D.Double getTextCenter()
      Returns:
      Center of text in local coordinates
    • draw

      public void draw(Graphics2D graphics)
      When calling this to draw text, it assumes graphics is set properly to draw in the right style.