afreechart/src/main/java/org/afree/chart/plot/XYPlot.java
/**
     * Clears the (foreground and background) range markers for a particular
     * renderer.
     * 
     * @param index
     *            the renderer index.
     */
Clears the (foreground and background) range markers for a particular
renderer.

@param index
the renderer index.
Clears the ( foreground and background ) range markers for a particular renderer . @param index the renderer index .
public void clearRangeMarkers(int index) {
        Integer key = new Integer(index);
        if (this.backgroundRangeMarkers != null) {
            Collection markers = (Collection) this.backgroundRangeMarkers
                    .get(key);
            if (markers != null) {
                Iterator iterator = markers.iterator();
                while (iterator.hasNext()) {
                    Marker m = (Marker) iterator.next();
                    m.removeChangeListener(this);
                }
                markers.clear();
            }
        }
        if (this.foregroundRangeMarkers != null) {
            Collection markers = (Collection) this.foregroundRangeMarkers
                    .get(key);
            if (markers != null) {
                Iterator iterator = markers.iterator();
                while (iterator.hasNext()) {
                    Marker m = (Marker) iterator.next();
                    m.removeChangeListener(this);
                }
                markers.clear();
            }
        }
        fireChangeEvent();
    }
public void clearRangeMarkers ( int index ) { Integer key = new Integer ( index ) ; if ( this . backgroundRangeMarkers != null ) { Collection markers = ( Collection ) this . backgroundRangeMarkers . get ( key ) ; if ( markers != null ) { Iterator iterator = markers . iterator ( ) ; while ( iterator . hasNext ( ) ) { Marker m = ( Marker ) iterator . next ( ) ; m . removeChangeListener ( this ) ; } markers . clear ( ) ; } } if ( this . foregroundRangeMarkers != null ) { Collection markers = ( Collection ) this . foregroundRangeMarkers . get ( key ) ; if ( markers != null ) { Iterator iterator = markers . iterator ( ) ; while ( iterator . hasNext ( ) ) { Marker m = ( Marker ) iterator . next ( ) ; m . removeChangeListener ( this ) ; } markers . clear ( ) ; } } fireChangeEvent ( ) ; }
Clears the (foreground and background) range markers for a particular
 renderer.
Clears the ( foreground and background ) range markers for a particular renderer .