|
||||||||||
| 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
public class 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: Lesser
General Public License (LGPL) , no warranty.
| Field Summary | |
|---|---|
protected JFreeChart |
chart
chart refers to the chart |
protected HistogramDataset |
dataset
dataset refers to the dataset |
static String |
LABEL_X_AXIS
LABEL_X_AXIS is the label on the X-axis |
static String |
LABEL_Y_AXIS
LABEL_Y_AXIS is the label on the Y-axis |
| Constructor Summary | |
|---|---|
Histogram(String title,
double[] domain,
double[] range,
int numberofBins)
constructs a new Histogram. |
|
Histogram(String title,
double[] domain,
int numberofBins)
constructs a new Histogram |
|
| Method Summary | |
|---|---|
void |
add(Counter counter)
adds a counter to the histogramdataset. |
void |
add(String description,
EventProducerInterface source,
EventType eventType)
adds an eventProducer to the histogram dataset. |
JFreeChart |
getChart()
returns the chart |
HistogramDataset |
getDataset()
returns the dataset of a histogram. |
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 String LABEL_X_AXIS
public static final String LABEL_Y_AXIS
protected JFreeChart chart
protected HistogramDataset dataset
| Constructor Detail |
|---|
public Histogram(String title,
double[] domain,
int numberofBins)
title - the titledomain - the domainnumberofBins - the numberofbins
public Histogram(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(String description,
EventProducerInterface source,
EventType eventType)
description - the description of the eventProducersource - the eventproducer which functions as source for this
histogram.eventType - the eventType.public JFreeChart getChart()
public Container getSwingPanel()
getSwingPanel in interface Swingablepublic HistogramDataset getDataset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||