use of org.jfree.data.xy.XYDataset in project processdash by dtuma.
the class EVHiddenOrShownSeriesXYChartPanel method reloadSeriesMenus.
private void reloadSeriesMenus() {
JPopupMenu menu = getPopupMenu();
while (menu.getComponent(0) instanceof ShowChartLineMenuItem) menu.remove(0);
XYDataset data = filteredData.getSourceDataset();
for (int i = data.getSeriesCount(); i-- > 0; ) menu.insert(new ShowChartLineMenuItem(filteredData, i), 0);
}
Aggregations