if (a != null) { Rectangle r = a instanceof Rectangle ? (Rectangle) a : a.getBounds(); painter.paint(g, r.x, r.y, r.width, r.height, this); }
  public void paint(Graphics g, Shape a)  {    // FIXME: Implement the above specified behaviour.    super.paint(g, a);  }