renderingHints = new RenderingHints(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_DEFAULT);
HashMap hints = new HashMap(); hints.put(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_DEFAULT); hints.put(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_DEFAULT); renderingHints = new RenderingHints(hints);
  protected AbstractGraphics2D()  {    transform = new AffineTransform();    background = Color.WHITE;    composite = AlphaComposite.SrcOver;    stroke = new BasicStroke();    renderingHints = new RenderingHints(RenderingHints.KEY_RENDERING,                                        RenderingHints.VALUE_RENDER_DEFAULT);    pixel = new int[4];  }