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, setAcceptor
protected ShapeVisitorAcceptor getAcceptor()
ShapeVisitor
getAcceptor
in class ShapeVisitor
public void visit(XDGFShape shape, java.awt.geom.AffineTransform globalTransform, int level)
visit
in class ShapeVisitor
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...public java.lang.String getText()
Copyright 2022 The Apache Software Foundation or its licensors, as applicable.