|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnl.tudelft.simulation.jstats.charts.histogram.Histogram
The histogram specifies a histogram chart for the DSOL framework.
(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
| Field Summary | |
protected org.jfree.chart.JFreeChart |
chart
chart refers to the chart |
protected HistogramDataset |
dataset
dataset refers to the dataset |
static java.lang.String |
LABEL_X_AXIS
LABEL_X_AXIS is the label on the X-axis |
static java.lang.String |
LABEL_Y_AXIS
LABEL_Y_AXIS is the label on the Y-axis |
| Constructor Summary | |
Histogram(java.lang.String title,
double[] domain,
double[] range,
int numberofBins)
constructs a new Histogram. |
|
Histogram(java.lang.String title,
double[] domain,
int numberofBins)
constructs a new Histogram |
|
| Method Summary | |
void |
add(Counter counter)
adds a counter to the histogramdataset. |
void |
add(java.lang.String description,
nl.tudelft.simulation.event.EventProducerInterface source,
nl.tudelft.simulation.event.EventType eventType)
adds an eventProducer to the histogram dataset. |
org.jfree.chart.JFreeChart |
getChart()
returns the chart |
HistogramDataset |
getDataset()
returns the dataset of a histogram. |
java.awt.Container |
getSwingPanel()
returns the chartPanel of this histogram. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String LABEL_X_AXIS
public static final java.lang.String LABEL_Y_AXIS
protected org.jfree.chart.JFreeChart chart
protected HistogramDataset dataset
| Constructor Detail |
public Histogram(java.lang.String title,
double[] domain,
int numberofBins)
title - the titledomain - the domainnumberofBins - the numberofbins
public Histogram(java.lang.String title,
double[] domain,
double[] range,
int numberofBins)
title - the title. The title of the histogramdomain - the domain of the x-axis.range - the y-axis range of the histogram.numberofBins - the numberofbins of this histogram.| Method Detail |
public void add(Counter counter)
Counter.COUNT_EVENT.
counter - the counter to add.
public void add(java.lang.String description,
nl.tudelft.simulation.event.EventProducerInterface source,
nl.tudelft.simulation.event.EventType eventType)
description - the description of the eventProducersource - the eventproducer which functions as source for this
histogram.eventType - the eventType.public org.jfree.chart.JFreeChart getChart()
public java.awt.Container getSwingPanel()
getSwingPanel in interface Swingablepublic HistogramDataset getDataset()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||