nl.tudelft.simulation.jstats.charts.xy
Class XYSeries

java.lang.Object
  extended by org.jfree.data.general.AbstractDataset
      extended by nl.tudelft.simulation.jstats.charts.xy.XYSeries
All Implemented Interfaces:
ObjectInputValidation, Serializable, Cloneable, EventListener, EventListenerInterface, Dataset

public class XYSeries
extends AbstractDataset
implements EventListenerInterface

The xySerie specifies an xySerie for XY Plots in DSOL.

(c) copyright 2002-2005 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser General Public License (LGPL) , no warranty.

Since:
1.0
Version:
$Revision: 1.1 $ $Date: 2007/01/06 13:25:44 $
Author:
Peter Jacobs
See Also:
Serialized Form

Field Summary
protected  List entries
          the entries of the serie
static EventType LOWER_RANGE_EVENT
          LOWER_RANGE_EVENT is fired on a range change
static EventType UPPER_RANGE_EVENT
          UPPER_RANGE_EVENT is fired on a range change
 
Constructor Summary
XYSeries(String name, short axisType, double period)
          constructs a new XYSeries.
 
Method Summary
 int getItemCount()
          returns the number of items in this seris
 String getSeriesName()
          returns the name of this serie
 Number getXValue(int item)
          returns the X value
 Number getYValue(int item)
          returns the yValue
 void notify(EventInterface event)
           
 void setFilter(Filterinterface filter)
          applies a filter on the chart
 
Methods inherited from class org.jfree.data.general.AbstractDataset
addChangeListener, clone, fireDatasetChanged, getGroup, hasListener, notifyListeners, removeChangeListener, setGroup, validateObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOWER_RANGE_EVENT

public static final EventType LOWER_RANGE_EVENT
LOWER_RANGE_EVENT is fired on a range change


UPPER_RANGE_EVENT

public static final EventType UPPER_RANGE_EVENT
UPPER_RANGE_EVENT is fired on a range change


entries

protected List entries
the entries of the serie

Constructor Detail

XYSeries

public XYSeries(String name,
                short axisType,
                double period)
constructs a new XYSeries.

Parameters:
name - the name of the series.
axisType - whether this serie is logarithmic (x=0 & y=0 are neglected)
period - the period of this series.
Method Detail

notify

public void notify(EventInterface event)
Specified by:
notify in interface EventListenerInterface
See Also:
#notify(nl.tudelft.simulation.event.EventInterface)

getItemCount

public int getItemCount()
returns the number of items in this seris

Returns:
int the number

getXValue

public Number getXValue(int item)
returns the X value

Parameters:
item - the item
Returns:
Number the xValue

getYValue

public Number getYValue(int item)
returns the yValue

Parameters:
item - the item
Returns:
Number

getSeriesName

public String getSeriesName()
returns the name of this serie

Returns:
String name

setFilter

public void setFilter(Filterinterface filter)
applies a filter on the chart

Parameters:
filter - the filter to apply


Copyright © 2002-2011 Delft University of Technology, the Netherlands. All Rights Reserved.