be.ac.ulg.montefiore.run.totem.chart.model.plotters
Class LoadIntervalChartPlotter
java.lang.Object
be.ac.ulg.montefiore.run.totem.chart.model.plotters.LoadIntervalChartPlotter
- All Implemented Interfaces:
- ChartPlotter
public class LoadIntervalChartPlotter
- extends java.lang.Object
- implements ChartPlotter
This class is used to build an interval graph.
The interval 0-maxValue is divided in a number of disjoint sets.
For each of these sets, a bar is represented. The height of the bar corresponds to the frequency of the data for the
considerated set.
A typical use of this chart is to represent the relative load of the links of a domain.
X Axis represent the load categories (ex: 0%-33%, 33%-66%, 66%-100%). Y axis is the relative number of links that
match the load category.
Creation date: 19 déc. 2005
- Author:
- Gaël Monfort (monfort@run.montefiore.ulg.ac.be)
Method Summary |
java.util.List<ParameterDescriptor> |
getParameters()
Return a list of parameters taht 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)
Build the chart and return the JFreeChart representation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoadIntervalChartPlotter
public LoadIntervalChartPlotter()
plot
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)
- Build the chart and return the JFreeChart representation.
The parameters are :
- nbInterval (default value 10) : number of categories to represent.
- maxValue (default 1) : value used for 100%
- Specified by:
plot
in interface ChartPlotter
- Parameters:
data
- Data to use to compute the charttitle
- Title to display on the chartxAxisTitle
- yAxisTitle
- params
- (nbInterval, maxValue)
- Returns:
getParameters
public java.util.List<ParameterDescriptor> getParameters()
- Description copied from interface:
ChartPlotter
- Return a list of parameters taht can be given to the plot method.
- Specified by:
getParameters
in interface ChartPlotter
- Returns:
Copyright © 2004-2006 Research Unit in Networking, All Rights Reserved.