Class XDGFText


  • public class XDGFText
    extends Object
    • Constructor Detail

      • XDGFText

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

      • getTextContent

        public String getTextContent()
      • 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.