public class EnergyCostChart
extends java.lang.Object
| Constructor and Description |
|---|
EnergyCostChart()
Deprecated.
Just for the use of the WindowBuilder
|
EnergyCostChart(java.lang.String title,
OptionModelController optionModelController,
CostFunction cfSetting)
Instantiates a new energy flow chart.
|
| Modifier and Type | Method and Description |
|---|---|
void |
drawCostFunction()
Draws the current cost function.
|
org.jfree.chart.JFreeChart |
getChart()
Gets the chart.
|
void |
setChartTitle(java.lang.String title)
Sets the chart title.
|
void |
setChartXDateFormat(java.lang.String newTimeFormat)
Sets the chart x-axis date format.
|
void |
setChartYLabel(java.lang.String newLabel)
Sets the chart y label.
|
void |
setRenderer(GlobalInfo.ChartRenderer rendererType)
Sets the renderer type for the plot.
|
@Deprecated public EnergyCostChart()
public EnergyCostChart(java.lang.String title,
OptionModelController optionModelController,
CostFunction cfSetting)
title - the titleoptionModelController - the option model controllercfSetting - the cost functionpublic org.jfree.chart.JFreeChart getChart()
public void setRenderer(GlobalInfo.ChartRenderer rendererType)
rendererType - the new rendererGlobalInfo.ChartRendererpublic void setChartTitle(java.lang.String title)
title - the new chart titlepublic void setChartYLabel(java.lang.String newLabel)
newLabel - the new chart y labelpublic void setChartXDateFormat(java.lang.String newTimeFormat)
newTimeFormat - the new time format as String used with a SimpleDateFormatpublic void drawCostFunction()