Class ShapeRenderer
- java.lang.Object
-
- org.apache.poi.xdgf.usermodel.shape.ShapeVisitor
-
- org.apache.poi.xdgf.usermodel.shape.ShapeRenderer
-
- Direct Known Subclasses:
ShapeDebuggerRenderer
public class ShapeRenderer extends ShapeVisitor
To use this to render only particular shapes, override it and provide an appropriate implementation of getAcceptor() or accept()
-
-
Constructor Summary
Constructors Constructor Description ShapeRenderer()
ShapeRenderer(java.awt.Graphics2D g)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setGraphics(java.awt.Graphics2D g)
void
visit(XDGFShape shape, java.awt.geom.AffineTransform globalTransform, int level)
-
Methods inherited from class org.apache.poi.xdgf.usermodel.shape.ShapeVisitor
accept, setAcceptor
-
-
-
-
Method Detail
-
setGraphics
public void setGraphics(java.awt.Graphics2D g)
-
visit
public void visit(XDGFShape shape, java.awt.geom.AffineTransform globalTransform, int level)
- Specified by:
visit
in classShapeVisitor
- 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...
-
-