AWTDrawVisitor extends AbstractAWTDrawVisitor { @Override public void setRendererModel(RendererModel rendererModel) { this.rendererModel = rendererModel; if (rendererModel.hasParameter(UseAntiAliasing.class)) { if (rendererModel.getParameter(UseAntiAliasing.class).getValue()) { graphics.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); } } } 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 testSetRendererModel() { Image image = new BufferedImage(100, 100, BufferedImage.TYPE_INT_RGB); Graphics2D g2d = (Graphics2D) image.getGraphics(); AWTDrawVisitor visitor = new AWTDrawVisitor(g2d); visitor.setRendererModel(new RendererModel()); Assert.assertNotNull(visitor); }