Example usage for org.jfree.data XYSeries add

List of usage examples for org.jfree.data XYSeries add

Introduction

In this page you can find the example usage for org.jfree.data XYSeries add.

Prototype

public void add(final Number x, final Number y, final boolean notify) 

Source Link

Document

Adds new data to the series and, if requested, sends a SeriesChangeEvent to all registered listeners.

Usage

From source file:edu.caltechUcla.sselCassel.projects.jMarkets.shared.interfaces.PriceChart.java

public void addSecurity(String name, float[][] points) {
    XYSeries security = new XYSeries(name);
    for (int i = 0; i < points.length; i++)
        security.add(points[i][0], points[i][1], true);
    lines.put(name, security);/*from w ww  .jav a  2s .  c  om*/
}