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 shapeglobalTransform
- A transform that can convert the shapes points to global
coordinateslevel
- Level in the tree (0 is topmost, 1 is next level...Copyright 2022 The Apache Software Foundation or its licensors, as applicable.