protected void drawRangeMarkers(Graphics2D g2,Rectangle2D dataArea,int index,Layer layer){
  XYItemRenderer r=getRenderer(index);
  if (r == null) {
    return;
  }
  if (index >= getDatasetCount()) {
    return;
  }
  Collection markers=getRangeMarkers(index,layer);
  ValueAxis axis=getRangeAxisForDataset(index);
  if (markers != null && axis != null) {
    Iterator iterator=markers.iterator();
    while (iterator.hasNext()) {
      Marker marker=(Marker)iterator.next();
      r.drawRangeMarker(g2,this,axis,marker,dataArea);
    }
  }
}

protected void drawRangeMarkers ( Graphics2D g2 , Rectangle2D dataArea , int index , Layer layer ) { XYItemRenderer r = getRenderer ( index ) ; if ( r == null ) { return ; } if ( index >= getDatasetCount ( ) ) { return ; } Collection markers = getRangeMarkers ( index , layer ) ; ValueAxis axis = getRangeAxisForDataset ( index ) ; if ( markers != null && axis != null ) { Iterator iterator = markers . iterator ( ) ; while ( iterator . hasNext ( ) ) { Marker marker = ( Marker ) iterator . next ( ) ; r . drawRangeMarker ( g2 , this , axis , marker , dataArea ) ; } } }
draws the range markers ( if any ) for a renderer and layer . this method is typically called from within the draw ( ) method .
