Class ShapeVisitor
java.lang.Object
org.apache.poi.xdgf.usermodel.shape.ShapeVisitor
- Direct Known Subclasses:
ShapeRenderer,ShapeTextVisitor
Used 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 -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidsetAcceptor(ShapeVisitorAcceptor acceptor) abstract voidvisit(XDGFShape shape, AffineTransform globalTransform, int level)
-
Constructor Details
-
ShapeVisitor
public ShapeVisitor()
-
-
Method Details
-
setAcceptor
-
accept
-
visit
- 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...
-