public class ShapeTextVisitor extends ShapeVisitor
| Modifier and Type | Class and Description |
|---|---|
static class |
ShapeTextVisitor.TextAcceptor |
| Modifier and Type | Field and Description |
|---|---|
protected 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
|
String |
getText()
Call this after visitation has completed
|
void |
visit(XDGFShape shape,
AffineTransform globalTransform,
int level) |
accept, setAcceptorprotected StringBuilder text
protected ShapeVisitorAcceptor getAcceptor()
ShapeVisitorgetAcceptor in class ShapeVisitorpublic void visit(XDGFShape shape, 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 String getText()