Concrete implementations of this class will render text and images, and hence do the actual work of drawing titles.
171172173174175176177178179180181
* @see #addSubtitle(Title) */ public void clearSubtitles() { final Iterator iterator = this.subtitles.iterator(); while (iterator.hasNext()) { final Title t = (Title) iterator.next(); t.removeChangeListener(this); } this.subtitles.clear(); this.fireChartChanged(); }
336337338339340341342343344345346
} } final Iterator iterator = this.subtitles.iterator(); while (iterator.hasNext()) { final Title currentTitle = (Title) iterator.next(); final EntityCollection e = this.drawTitle(currentTitle, gc, nonTitleArea, (entities != null)); if (e != null) { entities.addAll(e); }
507508509510511512513514515516517
*/ public LegendTitle getLegend(final int index) { int seen = 0; final Iterator iterator = this.subtitles.iterator(); while (iterator.hasNext()) { final Title subtitle = (Title) iterator.next(); if (subtitle instanceof LegendTitle) { if (seen == index) { return (LegendTitle) subtitle; } else { seen++;
762763764765766767768769770771772
} this.setNotify(false); this.clearSubtitles(); final Iterator iterator = subtitles.iterator(); while (iterator.hasNext()) { final Title t = (Title) iterator.next(); if (t != null) { this.addSubtitle(t); } } this.setNotify(true); // this fires a ChartChangeEvent