code: protected void configureGraphics(Graphics2D g) {
          //configure antialiasing
          if(isAntialiasing()) {
              g.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                      RenderingHints.VALUE_ANTIALIAS_ON);
          } else {
              g.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                      RenderingHints.VALUE_ANTIALIAS_OFF);
          }
  
          getInterpolation().configureGraphics(g);
      }
docs: <p>This method is called by the <code>paint</code> method prior to
  any drawing operations to configure the drawing surface. The default
  implementation sets the rendering hints that have been specified for
  this <code>AbstractPainter</code>.</p>
  
  <p>This method can be overridden by subclasses to modify the drawing
  surface before any painting happens.</p>
  
  @param g the graphics surface to configure. This will never be null.
  @see #paint(Graphics2D, Object, int, int)