Class ShapeTextVisitor
- java.lang.Object
-
- org.apache.poi.xdgf.usermodel.shape.ShapeVisitor
-
- org.apache.poi.xdgf.usermodel.shape.ShapeTextVisitor
-
public class ShapeTextVisitor extends ShapeVisitor
Only visits text nodes, accumulates text content into a string The text is returned in arbitrary order, with no regards to the location of the text on the page. This may change in the future.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ShapeTextVisitor.TextAcceptor
-
Constructor Summary
Constructors Constructor Description ShapeTextVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getText()
Call this after visitation has completedvoid
visit(XDGFShape shape, java.awt.geom.AffineTransform globalTransform, int level)
-
Methods inherited from class org.apache.poi.xdgf.usermodel.shape.ShapeVisitor
accept, setAcceptor
-
-
-
-
Method Detail
-
visit
public void visit(XDGFShape shape, java.awt.geom.AffineTransform globalTransform, int level)
- Specified by:
visit
in classShapeVisitor
- Parameters:
shape
- Current shapeglobalTransform
- A transform that can convert the shapes points to global coordinateslevel
- Level in the tree (0 is topmost, 1 is next level...
-
getText
public java.lang.String getText()
Call this after visitation has completed
-
-