public class XYChart extends Object implements Swingable
(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.
Modifier and Type | Field and Description |
---|---|
protected short |
axisType
the axis type of the chart
|
protected org.jfree.chart.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 and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
void |
add(Persistent persistent)
adds a tally to the xyChart
|
void |
add(String description,
nl.tudelft.simulation.event.EventProducerInterface source,
nl.tudelft.simulation.event.EventType eventType)
adds an eventProducer to the xyChart
|
org.jfree.chart.JFreeChart |
getChart()
returns the chart
|
XYDataset |
getDataset()
returns the dataset of a xyChart
|
Container |
getSwingPanel()
returns the chartPanel of this xyChart
|
void |
setFilter(nl.tudelft.simulation.language.filters.Filterinterface filter)
applies a filter on the chart
|
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 org.jfree.chart.JFreeChart chart
protected XYDataset dataset
protected short axisType
public XYChart(String title)
title
- the titlepublic XYChart(String title, short axisType)
title
- the titleaxisType
- the axisTypepublic XYChart(String title, double[] domain)
title
- tht titledomain
- the domainpublic XYChart(String title, double period)
title
- tht titleperiod
- the period to show in the domainpublic 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 rangepublic XYChart(String title, double period, double[] range)
title
- the titleperiod
- the period to show in the domainrange
- the rangepublic 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 axsispublic XYChart(String title, double[] domain, double[] range, short axisType)
title
- the titledomain
- the domainrange
- the rangeaxisType
- the type of the axsispublic void add(Persistent persistent)
persistent
- the persistentpublic void add(String description, nl.tudelft.simulation.event.EventProducerInterface source, nl.tudelft.simulation.event.EventType eventType) throws RemoteException
description
- the description of the eventProducersource
- the souceeventType
- the eventRemoteException
- on network failurepublic org.jfree.chart.JFreeChart getChart()
public Container getSwingPanel()
getSwingPanel
in interface Swingable
public XYDataset getDataset()
public void setFilter(nl.tudelft.simulation.language.filters.Filterinterface filter)
filter
- the filter to applyCopyright © 2002-2012 Delft University of Technology, the Netherlands. All Rights Reserved.