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()
  • Field Details

  • Constructor Details

    • ShapeRenderer

      public ShapeRenderer()
    • ShapeRenderer

      public ShapeRenderer(Graphics2D g)
  • Method Details

    • setGraphics

      public void setGraphics(Graphics2D g)
    • visit

      public void visit(XDGFShape shape, AffineTransform globalTransform, int level)
      Specified by:
      visit in class ShapeVisitor
      Parameters:
      shape - Current shape
      globalTransform - A transform that can convert the shapes points to global coordinates
      level - Level in the tree (0 is topmost, 1 is next level...
    • drawPath

      protected Path2D drawPath(XDGFShape shape)
    • drawText

      protected void drawText(XDGFShape shape)