Class ShapeVisitor
- java.lang.Object
-
- org.apache.poi.xdgf.usermodel.shape.ShapeVisitor
-
- Direct Known Subclasses:
ShapeRenderer,ShapeTextVisitor
public abstract class ShapeVisitor extends java.lang.ObjectUsed to iterate through shapes To change the behavior of a particular visitor, you can override either accept() or getAcceptor() [preferred] If accept() or visit() throw StopVisitingThisBranch, the iteration will not visit subshapes of the shape.
-
-
Constructor Summary
Constructors Constructor Description ShapeVisitor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanaccept(XDGFShape shape)voidsetAcceptor(ShapeVisitorAcceptor acceptor)abstract voidvisit(XDGFShape shape, java.awt.geom.AffineTransform globalTransform, int level)
-
-
-
Method Detail
-
setAcceptor
public void setAcceptor(ShapeVisitorAcceptor acceptor)
-
accept
public boolean accept(XDGFShape shape)
-
visit
public abstract void visit(XDGFShape shape, java.awt.geom.AffineTransform globalTransform, int level)
- Parameters:
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...
-
-