Example #1
0
 /**
  * Renders using the given rendering surface and area on that surface. This is implemented to
  * delegate to the css box painter to paint the border and background prior to the interior.
  *
  * @param g the rendering surface to use
  * @param allocation the allocated region to render into
  * @see View#paint
  */
 public void paint(Graphics g, Shape allocation) {
   Rectangle a = (Rectangle) allocation;
   painter.paint(g, a.x, a.y, a.width, a.height, this);
   super.paint(g, a);
 }