public class FlowChart
extends java.lang.Object
implements java.util.Observer
Constructor and Description |
---|
FlowChart(OptionModelController optionModelController,
java.lang.String title)
Instantiates a new energy flow chart.
|
Modifier and Type | Method and Description |
---|---|
void |
addTimeSeries(org.jfree.data.time.TimeSeries series)
Adds the series.
|
void |
deleteOptionModelObserver()
Removes this as a observer of the
OptionModelController . |
AbstractFlow |
getAbstractFlow()
Returns the current abstract flow.
|
org.jfree.chart.JFreeChart |
getChart()
Gets the chart.
|
java.lang.String |
getGoodUnit()
Returns the good unit.
|
void |
setAbstractFlow(AbstractFlow newAbstractFlow)
Sets the current abstract flow.
|
void |
setChartTitle(java.lang.String title)
Sets the chart title.
|
void |
setChartYLabel()
Sets the chart y label according to the current energy flow.
|
void |
setEnergySiPrefix(EnergyUnitFactorPrefixSI siPrefixforWatt)
Sets the energy prefix for the energy flow.
|
void |
setRenderer(GlobalInfo.ChartRenderer rendererType)
Sets the renderer type for the plot.
|
void |
setTimeUnitFormat(TimeUnit timeUnit)
Sets the time format with the specified
TimeUnit . |
void |
update(java.util.Observable observable,
java.lang.Object updateObject) |
public FlowChart(OptionModelController optionModelController, java.lang.String title)
optionModelController
- the option model controllertitle
- the titlepublic void setAbstractFlow(AbstractFlow newAbstractFlow)
newAbstractFlow
- the new abstract flowpublic AbstractFlow getAbstractFlow()
public org.jfree.chart.JFreeChart getChart()
public void setRenderer(GlobalInfo.ChartRenderer rendererType)
rendererType
- the new rendererGlobalInfo.ChartRenderer
public void setChartTitle(java.lang.String title)
title
- the new chart titlepublic void setChartYLabel()
public void setTimeUnitFormat(TimeUnit timeUnit)
TimeUnit
.timeUnit
- the new time formatpublic void setEnergySiPrefix(EnergyUnitFactorPrefixSI siPrefixforWatt)
siPrefixforWatt
- the new energy prefix for powerpublic java.lang.String getGoodUnit()
public void addTimeSeries(org.jfree.data.time.TimeSeries series)
series
- the seriespublic void deleteOptionModelObserver()
OptionModelController
.public void update(java.util.Observable observable, java.lang.Object updateObject)
update
in interface java.util.Observer