net.sourceforge.jabm.view
Class BarChart
java.lang.Object
net.sourceforge.jabm.view.BarChart
- All Implemented Interfaces:
- java.io.Serializable, EventListener, Report, ReportWithGUI, org.jfree.data.category.CategoryDataset, org.jfree.data.general.Dataset, org.jfree.data.KeyedValues2D, org.jfree.data.Values2D, org.springframework.beans.factory.InitializingBean
public class BarChart
- extends java.lang.Object
- implements org.jfree.data.category.CategoryDataset, ReportWithGUI, java.io.Serializable, org.springframework.beans.factory.InitializingBean
- See Also:
- Serialized Form
-
-
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
reportVariables
protected ReportVariables reportVariables
variableBindings
protected java.util.Map<java.lang.Object,java.lang.Number> variableBindings
variableNames
protected java.util.LinkedList<java.lang.Object> variableNames
listeners
protected java.util.LinkedList<org.jfree.data.general.DatasetChangeListener> listeners
chartTitle
protected java.lang.String chartTitle
valueAxisLabel
protected java.lang.String valueAxisLabel
chartPanel
protected org.jfree.chart.ChartPanel chartPanel
BarChart
public BarChart()
throws java.awt.HeadlessException
- Throws:
java.awt.HeadlessException
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
getVariableBindings
public java.util.Map<java.lang.Object,java.lang.Number> getVariableBindings()
- Description copied from interface:
Report
- Get the values calculated by this report.
- Specified by:
getVariableBindings
in interface Report
- Returns:
- A
Map
of user-readable variable names to their
associated values.
computeVariableNames
public void computeVariableNames()
compute
public void compute(ReportVariablesChangedEvent event)
dispose
public void dispose(SimEvent event)
initialise
public void initialise(SimEvent event)
addChangeListener
public void addChangeListener(org.jfree.data.general.DatasetChangeListener arg0)
- Specified by:
addChangeListener
in interface org.jfree.data.general.Dataset
removeChangeListener
public void removeChangeListener(org.jfree.data.general.DatasetChangeListener arg0)
- Specified by:
removeChangeListener
in interface org.jfree.data.general.Dataset
eventOccurred
public void eventOccurred(SimEvent event)
- Specified by:
eventOccurred
in interface EventListener
getChartTitle
public java.lang.String getChartTitle()
setChartTitle
public void setChartTitle(java.lang.String chartTitle)
getValueAxisLabel
public java.lang.String getValueAxisLabel()
setValueAxisLabel
public void setValueAxisLabel(java.lang.String valueAxisLabel)
getRowKey
public java.lang.Comparable getRowKey(int row)
- Specified by:
getRowKey
in interface org.jfree.data.KeyedValues2D
getRowIndex
public int getRowIndex(java.lang.Comparable key)
- Specified by:
getRowIndex
in interface org.jfree.data.KeyedValues2D
getRowKeys
public java.util.List getRowKeys()
- Specified by:
getRowKeys
in interface org.jfree.data.KeyedValues2D
getColumnKey
public java.lang.Comparable getColumnKey(int column)
- Specified by:
getColumnKey
in interface org.jfree.data.KeyedValues2D
getColumnIndex
public int getColumnIndex(java.lang.Comparable key)
- Specified by:
getColumnIndex
in interface org.jfree.data.KeyedValues2D
getColumnKeys
public java.util.List getColumnKeys()
- Specified by:
getColumnKeys
in interface org.jfree.data.KeyedValues2D
getValue
public java.lang.Number getValue(java.lang.Comparable rowKey,
java.lang.Comparable columnKey)
- Specified by:
getValue
in interface org.jfree.data.KeyedValues2D
getRowCount
public int getRowCount()
- Specified by:
getRowCount
in interface org.jfree.data.Values2D
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCount
in interface org.jfree.data.Values2D
getValue
public java.lang.Number getValue(int row,
int column)
- Specified by:
getValue
in interface org.jfree.data.Values2D
getGroup
public org.jfree.data.general.DatasetGroup getGroup()
- Specified by:
getGroup
in interface org.jfree.data.general.Dataset
setGroup
public void setGroup(org.jfree.data.general.DatasetGroup group)
- Specified by:
setGroup
in interface org.jfree.data.general.Dataset
getReportVariables
public ReportVariables getReportVariables()
setReportVariables
public void setReportVariables(ReportVariables reportVariables)
getName
public java.lang.String getName()
- Specified by:
getName
in interface Report
getComponent
public javax.swing.JComponent getComponent()
- Specified by:
getComponent
in interface ReportWithGUI