Class ShapeTextVisitor
java.lang.Object
org.apache.poi.xdgf.usermodel.shape.ShapeVisitor
org.apache.poi.xdgf.usermodel.shape.ShapeTextVisitor
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 -
Field Summary
FieldsFields inherited from class org.apache.poi.xdgf.usermodel.shape.ShapeVisitor
_acceptor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ShapeVisitorAcceptorIs only called on construction of the visitor, allows mixing visitors and acceptorsgetText()Call this after visitation has completedvoidvisit(XDGFShape shape, AffineTransform globalTransform, int level) Methods inherited from class org.apache.poi.xdgf.usermodel.shape.ShapeVisitor
accept, setAcceptor
-
Field Details
-
text
-
-
Constructor Details
-
ShapeTextVisitor
public ShapeTextVisitor()
-
-
Method Details
-
getAcceptor
Description copied from class:ShapeVisitorIs only called on construction of the visitor, allows mixing visitors and acceptors- Overrides:
getAcceptorin classShapeVisitor
-
visit
- Specified by:
visitin 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
Call this after visitation has completed
-