Search in sources :

Example 11 with XYDataset

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);
}
Also used : XYDataset(org.jfree.data.xy.XYDataset) JPopupMenu(javax.swing.JPopupMenu)

Aggregations

XYDataset (org.jfree.data.xy.XYDataset)11 XYPlot (org.jfree.chart.plot.XYPlot)8 File (java.io.File)4 SimpleDateFormat (java.text.SimpleDateFormat)4 RectangleInsets (org.jfree.ui.RectangleInsets)4 JFreeChart (org.jfree.chart.JFreeChart)3 IntervalXYDataset (org.jfree.data.xy.IntervalXYDataset)2 ChartType (com.cubrid.cubridmanager.core.monstatistic.model.StatisticParamUtil.ChartType)1 Color (java.awt.Color)1 JPopupMenu (javax.swing.JPopupMenu)1 DateData (net.sourceforge.processdash.data.DateData)1 StandardXYToolTipGenerator (org.jfree.chart.labels.StandardXYToolTipGenerator)1 XYToolTipGenerator (org.jfree.chart.labels.XYToolTipGenerator)1 XYLineAndShapeRenderer (org.jfree.chart.renderer.xy.XYLineAndShapeRenderer)1 Statistic (org.jivesoftware.openfire.stats.Statistic)1