public abstract class ShapeVisitor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected ShapeVisitorAcceptor |
_acceptor |
Constructor and Description |
---|
ShapeVisitor() |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(XDGFShape shape) |
protected ShapeVisitorAcceptor |
getAcceptor()
Is only called on construction of the visitor, allows mixing visitors and acceptors
(仅在构建访问者时调用,允许混合访问者和接受者)
|
void |
setAcceptor(ShapeVisitorAcceptor acceptor) |
abstract void |
visit(XDGFShape shape, java.awt.geom.AffineTransform globalTransform, int level) |
protected ShapeVisitorAcceptor _acceptor
protected ShapeVisitorAcceptor getAcceptor()
public void setAcceptor(ShapeVisitorAcceptor acceptor)
public boolean accept(XDGFShape shape)
public abstract void visit(XDGFShape shape, java.awt.geom.AffineTransform globalTransform, int level)
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 是下一级...)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.