|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.ac.ulg.montefiore.run.totem.chart.model.plotters.LoadChartPlotter
public class LoadChartPlotter
This plotter creates bar charts using links loads. The x-axis represents the links and the y-axis represents the (absolute or relative) load.
This class has been designed to allow the creation of two different bar charts:
allLinks
parameter. If it is true
, the first type
of charts is created. Otherwise, the second type of charts is created.
There is also a distinction in the meaning of the series names. In the first case, they give the name of the algorithm used to compute loads. In the second case, they give the links IDs.
Finally, for the first type of plots, a legend will be displayed. This is not the case for the second type of plots.
Creation date: 13-f�vr.-2006
Constructor Summary | |
---|---|
LoadChartPlotter()
|
Method Summary | |
---|---|
java.lang.String |
getDefaultXAxisTitle()
returns the default value for the X axis |
java.lang.String |
getDefaultYAxisTitle()
returns the default value for the Y axis |
java.util.List<ParameterDescriptor> |
getParameters()
Return a list of parameters that can be given to the plot method. |
org.jfree.chart.JFreeChart |
plot(ChartData data,
java.lang.String title,
java.lang.String xAxisTitle,
java.lang.String yAxisTitle,
java.util.HashMap<java.lang.String,java.lang.String> params)
Creates and returns a bar chart using data . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LoadChartPlotter()
Method Detail |
---|
public org.jfree.chart.JFreeChart plot(ChartData data, java.lang.String title, java.lang.String xAxisTitle, java.lang.String yAxisTitle, java.util.HashMap<java.lang.String,java.lang.String> params)
data
.
The following parameters are accepted:
true
): see the
documentation above.
plot
in interface ChartPlotter
data
- Data to use to compute the charttitle
- Title to display on the chartparams
- Parameters of the chart to build (implementation dependant).
public java.util.List<ParameterDescriptor> getParameters()
ChartPlotter
getParameters
in interface ChartPlotter
public java.lang.String getDefaultXAxisTitle()
ChartPlotter
getDefaultXAxisTitle
in interface ChartPlotter
public java.lang.String getDefaultYAxisTitle()
ChartPlotter
getDefaultYAxisTitle
in interface ChartPlotter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |