protected void startDraw(Graphics2D g2,float x,float y){
  prevColor=g2.getColor();
  if (background != null) {
    g2.setColor(background);
    g2.fill(new Rectangle2D.Float(x,y - height,width,height + depth));
  }
  if (foreground == null) {
    g2.setColor(prevColor);
  }
 else {
    g2.setColor(foreground);
  }
  drawDebug(g2,x,y);
}

protected void startDraw ( Graphics2D g2 , float x , float y ) { prevColor = g2 . getColor ( ) ; if ( background != null ) { g2 . setColor ( background ) ; g2 . fill ( new Rectangle2D . Float ( x , y - height , width , height + depth ) ) ; } if ( foreground == null ) { g2 . setColor ( prevColor ) ; } else { g2 . setColor ( foreground ) ; } drawDebug ( g2 , x , y ) ; }
stores the old color setting , draws the background of the box ( if not null ) and sets the foreground color ( if not null ) .
