nl.tudelft.simulation.jstats.charts.histogram
Class HistogramSeries

java.lang.Object
  extended byorg.jfree.data.AbstractDataset
      extended bynl.tudelft.simulation.jstats.charts.histogram.HistogramSeries
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 HistogramSeries
extends org.jfree.data.AbstractDataset
implements nl.tudelft.simulation.event.EventListenerInterface

The serie defines a histogram series containing the entries of a set.

(c) copyright 2002-2004 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.2
Version:
1.7 2004-03-22
Author:
Alexander Verbraeck
Peter Jacobs
See Also:
Serialized Form

Constructor Summary
HistogramSeries(java.lang.String name, double[] domain, double[] range, int numberOfBins)
          constructs a new HistogramSeries
 
Method Summary
 int getBinCount()
          returns the number of bins in the histogram
 java.lang.Number getEndXValue(int bin)
          returns the maxX value for bin
 java.lang.Number getEndYValue(int bin)
          returns the maxY value
 java.lang.String getName()
          returns the name of the serie
 java.lang.Number getStartXValue(int bin)
          returns the minimumX value
 java.lang.Number getStartYValue(int bin)
          returns the minimumY value
 java.lang.Number getXValue(int bin)
          returns the x value
 java.lang.Number getYValue(int bin)
          returns the Y value
 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
 

Constructor Detail

HistogramSeries

public HistogramSeries(java.lang.String name,
                       double[] domain,
                       double[] range,
                       int numberOfBins)
constructs a new HistogramSeries

Parameters:
name - the name of the dataset
domain - the domain of the serie
range - the range of the serie
numberOfBins - the number of bins to be used
Method Detail

getName

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

Returns:
String the name

getEndXValue

public java.lang.Number getEndXValue(int bin)
returns the maxX value for bin

Parameters:
bin - the bin number
Returns:
Number

getEndYValue

public java.lang.Number getEndYValue(int bin)
returns the maxY value

Parameters:
bin - the bin number
Returns:
Number

getStartXValue

public java.lang.Number getStartXValue(int bin)
returns the minimumX value

Parameters:
bin - the bin number
Returns:
Number

getStartYValue

public java.lang.Number getStartYValue(int bin)
returns the minimumY value

Parameters:
bin - the bin number
Returns:
Number

getBinCount

public int getBinCount()
returns the number of bins in the histogram

Returns:
int

getXValue

public java.lang.Number getXValue(int bin)
returns the x value

Parameters:
bin - the bin number
Returns:
Number

getYValue

public java.lang.Number getYValue(int bin)
returns the Y value

Parameters:
bin - the bin number
Returns:
Number

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)


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