AWTDrawVisitor extends AbstractAWTDrawVisitor { public Graphics2D getGraphics() { return graphics; } 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 testConstructor() { Image image = new BufferedImage(100, 100, BufferedImage.TYPE_INT_RGB); Graphics2D g2d = (Graphics2D) image.getGraphics(); AWTDrawVisitor visitor = new AWTDrawVisitor(g2d); Assert.assertNotNull(visitor); }
@Test public void testGetGraphics() { Image image = new BufferedImage(100, 100, BufferedImage.TYPE_INT_RGB); Graphics2D g2d = (Graphics2D) image.getGraphics(); AWTDrawVisitor visitor = new AWTDrawVisitor(g2d); Assert.assertEquals(g2d, visitor.getGraphics()); }