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
(访问类 ShapeVisitor)
shape
- Current shape
(形状 - 当前形状)
globalTransform
- A transform that can convert the shapes points to global coordinates
(globalTransform - 可以将形状点转换为全局坐标的变换)
level
- Level in the tree (0 is topmost, 1 is next level...
(level - 树中的级别(0 是最顶层,1 是下一级...)
public java.lang.String getText()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.