Logo Search packages:      
Sourcecode: libjfreechart-java version File versions  Download package

void org::jfree::chart::plot::CategoryPlot::clearDomainMarkers (  )  [inline, inherited]

Clears all the domain markers for the plot and sends a PlotChangeEvent to all registered listeners.

See also:
clearRangeMarkers()

Definition at line 2000 of file CategoryPlot.java.

Referenced by org::jfree::chart::plot::junit::CategoryPlotTests::testAddDomainMarker(), and org::jfree::chart::plot::junit::MarkerTests::testListenersWithCategoryPlot().

                                     {
        if (this.backgroundDomainMarkers != null) {
            Set keys = this.backgroundDomainMarkers.keySet();
            Iterator iterator = keys.iterator();
            while (iterator.hasNext()) {
                Integer key = (Integer) iterator.next();
                clearDomainMarkers(key.intValue());
            }
            this.backgroundDomainMarkers.clear();
        }
        if (this.foregroundDomainMarkers != null) {
            Set keys = this.foregroundDomainMarkers.keySet();
            Iterator iterator = keys.iterator();
            while (iterator.hasNext()) {
                Integer key = (Integer) iterator.next();
                clearDomainMarkers(key.intValue());
            }
            this.foregroundDomainMarkers.clear();
        }
        fireChangeEvent();
    }


Generated by  Doxygen 1.6.0   Back to index