Examples of ChartEvent


Examples of eas.plugins.standard.visualization.chartPlugin.ChartEvent

                }
               
                stat.addValue(1 / (sum / werte.size()));
            }

            ChartEvent event1 = new ChartEvent(chartName, columns[0], stat.getMean());
            ChartEvent event2 = new ChartEvent(chartName, columns[1], stat.getMean() + stat.getStandardDeviation());
            ChartEvent event3 = new ChartEvent(chartName, columns[2], stat.getMean() - stat.getStandardDeviation());
            ChartEvent event4 = new ChartEvent(chartName, columns[3], stat.getMax());
            ChartEvent event5 = new ChartEvent(chartName, columns[4], stat.getMin());
           
            event1.setyAxisLabel("Universality");
            event1.setLineColor(Color.black);
            event1.setLineStroke(new BasicStroke(3));
            event2.setLineColor(Color.gray);
            event3.setLineColor(Color.gray);
            event4.setLineColor(Color.blue);
            event5.setLineColor(Color.red);
            env.getSimTime().broadcastEvent(event1);
            env.getSimTime().broadcastEvent(event2);
            env.getSimTime().broadcastEvent(event3);
            env.getSimTime().broadcastEvent(event4);
            env.getSimTime().broadcastEvent(event5);
           
            if (this.chartDaten.get(chartName) == null) {
                this.chartDaten.put(chartName, new LinkedList<String>());
                this.chartDaten.get(chartName).add(
                                  columns[0] + ";"
                                + columns[1] + ";"
                                + columns[2] + ";"
                                + columns[3] + ";"
                                + columns[4]);
            } else {
                this.chartDaten.get(chartName).add(
                        event1.getValue() + ";"
                      + event2.getValue() + ";"
                      + event3.getValue() + ";"
                      + event4.getValue() + ";"
                      + event5.getValue());
            }
        }
    }
View Full Code Here

Examples of eas.plugins.standard.visualization.chartPlugin.ChartEvent

                    20,
                    true);
            dia2.setVisible(true);
            String seriesName = dia2.getText();
           
            ChartEvent event = new ChartEvent(chartName, seriesName, 0);
            events.put(event, pars);
            chartMethods.put(event, m);
            chartAgents.put(event, invokerAgent);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.