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

java.lang.Object
  extended byorg.jfree.data.AbstractDataset
      extended bynl.tudelft.simulation.jstats.charts.xy.XYSeries
All Implemented Interfaces:
java.lang.Cloneable, org.jfree.data.Dataset, java.util.EventListener, nl.tudelft.simulation.event.EventListenerInterface, java.io.ObjectInputValidation, java.io.Serializable

public class XYSeries
extends org.jfree.data.AbstractDataset
implements nl.tudelft.simulation.event.EventListenerInterface

The xySerie specifies an xySerie for XY Plots in DSOL.

(c) copyright 2003 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: General Public License (GPL) , no warranty

Since:
1.0
Version:
1.8 2004-03-18
Author:
Peter Jacobs
See Also:
Serialized Form

Field Summary
static nl.tudelft.simulation.event.EventType LOWER_RANGE_EVENT
          LOWER_RANGE_EVENT is fired on a range change
static nl.tudelft.simulation.event.EventType UPPER_RANGE_EVENT
          UPPER_RANGE_EVENT is fired on a range change
 
Constructor Summary
XYSeries(java.lang.String name, short axisType)
          constructs a new XYSeries.
 
Method Summary
 int getItemCount()
          returns the number of items in this seris
 java.lang.String getSeriesName()
          returns the name of this serie
 java.lang.Number getXValue(int item)
          returns the X value
 java.lang.Number getYValue(int item)
          returns the yValue
 void notify(nl.tudelft.simulation.event.EventInterface event)
           
 
Methods inherited from class org.jfree.data.AbstractDataset
addChangeListener, clone, fireDatasetChanged, getGroup, 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 nl.tudelft.simulation.event.EventType LOWER_RANGE_EVENT
LOWER_RANGE_EVENT is fired on a range change


UPPER_RANGE_EVENT

public static final nl.tudelft.simulation.event.EventType UPPER_RANGE_EVENT
UPPER_RANGE_EVENT is fired on a range change

Constructor Detail

XYSeries

public XYSeries(java.lang.String name,
                short axisType)
constructs a new XYSeries.

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

notify

public void notify(nl.tudelft.simulation.event.EventInterface event)
Specified by:
notify in interface nl.tudelft.simulation.event.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 java.lang.Number getXValue(int item)
returns the X value

Parameters:
item - the item
Returns:
Number the xValue

getYValue

public java.lang.Number getYValue(int item)
returns the yValue

Parameters:
item - the item
Returns:
Number

getSeriesName

public java.lang.String getSeriesName()
returns the name of this serie

Returns:
String name


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