AWTDrawVisitor extends AbstractAWTDrawVisitor { private void visit(ElementGroup elementGroup) { elementGroup.visitChildren(this); } AWTDrawVisitor(Graphics2D graphics); private  AWTDrawVisitor(Graphics2D graphics, boolean strokeCache, float minStroke); RendererModel getRendererModel(); Map<Integer, BasicStroke> getStrokeMap(); Graphics2D getGraphics(); static AWTDrawVisitor forVectorGraphics(Graphics2D g2); void setRounding(boolean val); @Override void visit(IRenderingElement element); @Override void setFontManager(IFontManager fontManager); @Override void setRendererModel(RendererModel rendererModel);  }
@Test public void testVisit() { Image image = new BufferedImage(100, 100, BufferedImage.TYPE_INT_RGB); Graphics2D g2d = (Graphics2D) image.getGraphics(); AWTDrawVisitor visitor = new AWTDrawVisitor(g2d); visitor.setFontManager(new AWTFontManager()); visitor.setTransform(new AffineTransform()); visitor.visit(new TextElement(2, 3, "Foo", Color.BLACK)); Assert.assertNotNull(visitor); }