public class BarChart extends Object implements org.jfree.data.category.CategoryDataset, ReportWithGUI, Serializable, org.springframework.beans.factory.InitializingBean
Modifier and Type | Field and Description |
---|---|
protected org.jfree.chart.ChartPanel |
chartPanel |
protected String |
chartTitle |
protected LinkedList<org.jfree.data.general.DatasetChangeListener> |
listeners |
protected ReportVariables |
reportVariables |
protected String |
valueAxisLabel |
protected Map<Object,Number> |
variableBindings |
protected LinkedList<Object> |
variableNames |
Constructor and Description |
---|
BarChart() |
protected ReportVariables reportVariables
protected LinkedList<Object> variableNames
protected LinkedList<org.jfree.data.general.DatasetChangeListener> listeners
protected String chartTitle
protected String valueAxisLabel
protected org.jfree.chart.ChartPanel chartPanel
public BarChart() throws HeadlessException
HeadlessException
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
public Map<Object,Number> getVariableBindings()
Report
getVariableBindings
in interface Report
Map
of user-readable variable names to their
associated values.public void computeVariableNames()
public void compute(ReportVariablesChangedEvent event)
public void dispose(SimEvent event)
public void initialise(SimEvent event)
public void addChangeListener(org.jfree.data.general.DatasetChangeListener arg0)
addChangeListener
in interface org.jfree.data.general.Dataset
public void removeChangeListener(org.jfree.data.general.DatasetChangeListener arg0)
removeChangeListener
in interface org.jfree.data.general.Dataset
public void eventOccurred(SimEvent event)
eventOccurred
in interface EventListener
public String getChartTitle()
public void setChartTitle(String chartTitle)
public String getValueAxisLabel()
public void setValueAxisLabel(String valueAxisLabel)
public Comparable getRowKey(int row)
getRowKey
in interface org.jfree.data.KeyedValues2D
public int getRowIndex(Comparable key)
getRowIndex
in interface org.jfree.data.KeyedValues2D
public List getRowKeys()
getRowKeys
in interface org.jfree.data.KeyedValues2D
public Comparable getColumnKey(int column)
getColumnKey
in interface org.jfree.data.KeyedValues2D
public int getColumnIndex(Comparable key)
getColumnIndex
in interface org.jfree.data.KeyedValues2D
public List getColumnKeys()
getColumnKeys
in interface org.jfree.data.KeyedValues2D
public Number getValue(Comparable rowKey, Comparable columnKey)
getValue
in interface org.jfree.data.KeyedValues2D
public int getRowCount()
getRowCount
in interface org.jfree.data.Values2D
public int getColumnCount()
getColumnCount
in interface org.jfree.data.Values2D
public Number getValue(int row, int column)
getValue
in interface org.jfree.data.Values2D
public org.jfree.data.general.DatasetGroup getGroup()
getGroup
in interface org.jfree.data.general.Dataset
public void setGroup(org.jfree.data.general.DatasetGroup group)
setGroup
in interface org.jfree.data.general.Dataset
public ReportVariables getReportVariables()
public void setReportVariables(ReportVariables reportVariables)
public JComponent getComponent()
getComponent
in interface ReportWithGUI
Copyright © 2014. All rights reserved.