|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.tudelft.simulation.jstats.charts.xy.XYChart
public class XYChart
The xyChart specifies the xyChart 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.
| Field Summary | |
|---|---|
protected short |
axisType
the axis type of the chart |
protected JFreeChart |
chart
chart refers to the chart |
protected XYDataset |
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 |
static short |
XLINEAR_YLINEAR
x-axis is linear y-axis is linear |
static short |
XLINEAR_YLOGARITHMIC
x-axis is linear y-axis is logarithmic |
static short |
XLOGARITHMIC_YLINEAR
x-axis is logarithmic y-axis is linear |
static short |
XLOGARITHMIC_YLOGARITHMIC
x-axis is logarithmic y-axis is logarithmic |
| Constructor Summary | |
|---|---|
XYChart(String title)
constructs a new XYChart |
|
XYChart(String title,
double period)
constructs a new XYChart |
|
XYChart(String title,
double[] domain)
constructs a new XYChart |
|
XYChart(String title,
double[] domain,
double[] range)
constructs a new XYChart |
|
XYChart(String title,
double[] domain,
double[] range,
short axisType)
constructs a new XYChart |
|
XYChart(String title,
double[] domain,
short axisType)
constructs a new XYChart |
|
XYChart(String title,
double period,
double[] range)
constructs a new XYChart |
|
XYChart(String title,
double period,
double[] range,
short axisType)
constructs a new XYChart |
|
XYChart(String title,
double period,
short axisType)
constructs a new XYChart |
|
XYChart(String title,
short axisType)
constructs a new XYChart |
|
| Method Summary | |
|---|---|
void |
add(Persistent persistent)
adds a tally to the xyChart |
void |
add(String description,
EventProducerInterface source,
EventType eventType)
adds an eventProducer to the xyChart |
JFreeChart |
getChart()
returns the chart |
XYDataset |
getDataset()
returns the dataset of a xyChart |
Container |
getSwingPanel()
returns the chartPanel of this xyChart |
void |
setFilter(Filterinterface filter)
applies a filter on the chart |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final short XLINEAR_YLINEAR
public static final short XLINEAR_YLOGARITHMIC
public static final short XLOGARITHMIC_YLINEAR
public static final short XLOGARITHMIC_YLOGARITHMIC
public static final String LABEL_X_AXIS
public static final String LABEL_Y_AXIS
protected JFreeChart chart
protected XYDataset dataset
protected short axisType
| Constructor Detail |
|---|
public XYChart(String title)
title - the title
public XYChart(String title,
short axisType)
title - the titleaxisType - the axisType
public XYChart(String title,
double[] domain)
title - tht titledomain - the domain
public XYChart(String title,
double period)
title - tht titleperiod - the period to show in the domain
public XYChart(String title,
double period,
short axisType)
title - tht titleperiod - the period to show in the domainaxisType - the axisType to use.
public XYChart(String title,
double[] domain,
short axisType)
title - tht titledomain - the domainaxisType - the axisType to use.
public XYChart(String title,
double[] domain,
double[] range)
title - the titledomain - the domainrange - the range
public XYChart(String title,
double period,
double[] range)
title - the titleperiod - the period to show in the domainrange - the range
public XYChart(String title,
double period,
double[] range,
short axisType)
title - the titleperiod - the period to show in the domainrange - the rangeaxisType - the type of the axsis
public XYChart(String title,
double[] domain,
double[] range,
short axisType)
title - the titledomain - the domainrange - the rangeaxisType - the type of the axsis| Method Detail |
|---|
public void add(Persistent persistent)
persistent - the persistent
public void add(String description,
EventProducerInterface source,
EventType eventType)
throws RemoteException
description - the description of the eventProducersource - the souceeventType - the event
RemoteException - on network failurepublic JFreeChart getChart()
public Container getSwingPanel()
getSwingPanel in interface Swingablepublic XYDataset getDataset()
public void setFilter(Filterinterface filter)
filter - the filter to apply
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||