@Override public void paintBar(final Graphics2D g2,final BarRenderer renderer,final int row,final int column,final RectangularShape bar,final RectangleEdge base){
  Paint itemPaint=renderer.getItemPaint(row,column);
  Color c0=null;
  if (itemPaint instanceof Color) {
    c0=(Color)itemPaint;
  }
 else {
    c0=SwingTools.DARK_BLUE;
  }
  if (c0.getAlpha() == 0) {
    return;
  }
  g2.setPaint(c0);
  g2.fill(new Rectangle2D.Double(bar.getMinX(),bar.getMinY(),bar.getWidth(),bar.getHeight()));
  if (renderer.isDrawBarOutline()) {
    Stroke stroke=renderer.getItemOutlineStroke(row,column);
    Paint paint=renderer.getItemOutlinePaint(row,column);
    if (stroke != null && paint != null) {
      g2.setStroke(stroke);
      g2.setPaint(paint);
      g2.draw(bar);
    }
  }
}

@ Override public void paintBar ( final Graphics2D g2 , final BarRenderer renderer , final int row , final int column , final RectangularShape bar , final RectangleEdge base ) { Paint itemPaint = renderer . getItemPaint ( row , column ) ; Color c0 = null ; if ( itemPaint instanceof Color ) { c0 = ( Color ) itemPaint ; } else { c0 = SwingTools . DARK_BLUE ; } if ( c0 . getAlpha ( ) == 0 ) { return ; } g2 . setPaint ( c0 ) ; g2 . fill ( new Rectangle2D . Double ( bar . getMinX ( ) , bar . getMinY ( ) , bar . getWidth ( ) , bar . getHeight ( ) ) ) ; if ( renderer . isDrawBarOutline ( ) ) { Stroke stroke = renderer . getItemOutlineStroke ( row , column ) ; Paint paint = renderer . getItemOutlinePaint ( row , column ) ; if ( stroke != null && paint != null ) { g2 . setStroke ( stroke ) ; g2 . setPaint ( paint ) ; g2 . draw ( bar ) ; } } }
paints a single bar instance .
