public class ShapeTextVisitor extends ShapeVisitor
| Modifier and Type | Class and Description |
|---|---|
static class |
ShapeTextVisitor.TextAcceptor |
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.StringBuilder |
text |
_acceptor| Constructor and Description |
|---|
ShapeTextVisitor() |
| Modifier and Type | Method and Description |
|---|---|
protected ShapeVisitorAcceptor |
getAcceptor()
Is only called on construction of the visitor, allows
mixing visitors and acceptors
|
java.lang.String |
getText()
Call this after visitation has completed
|
void |
visit(XDGFShape shape,
java.awt.geom.AffineTransform globalTransform,
int level) |
accept, setAcceptorprotected ShapeVisitorAcceptor getAcceptor()
ShapeVisitorgetAcceptor in class ShapeVisitorpublic void visit(XDGFShape shape, java.awt.geom.AffineTransform globalTransform, int level)
visit in class ShapeVisitorshape - Current shapeglobalTransform - A transform that can convert the shapes points to global
coordinateslevel - Level in the tree (0 is topmost, 1 is next level...public java.lang.String getText()
Copyright 2018 The Apache Software Foundation or its licensors, as applicable.