be.ac.ulg.montefiore.run.totem.chart.model.plotters
Class LoadIntervalChartPlotter

java.lang.Object
  extended by 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 (correponding to the nbInterval parameter. 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. If some values are superior to maxValue, an extra category is added.

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)

Constructor Summary
LoadIntervalChartPlotter()
           
 
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)
          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
 

Constructor Detail

LoadIntervalChartPlotter

public LoadIntervalChartPlotter()
Method Detail

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 chart
title - Title to display on the chart
xAxisTitle -
yAxisTitle -
params - (nbInterval, maxValue)
Returns:

getParameters

public java.util.List<ParameterDescriptor> getParameters()
Description copied from interface: ChartPlotter
Return a list of parameters that can be given to the plot method.

Specified by:
getParameters in interface ChartPlotter
Returns:

getDefaultXAxisTitle

public java.lang.String getDefaultXAxisTitle()
Description copied from interface: ChartPlotter
returns the default value for the X axis

Specified by:
getDefaultXAxisTitle in interface ChartPlotter
Returns:

getDefaultYAxisTitle

public java.lang.String getDefaultYAxisTitle()
Description copied from interface: ChartPlotter
returns the default value for the Y axis

Specified by:
getDefaultYAxisTitle in interface ChartPlotter
Returns:


Copyright © 2004-2007 Research Unit in Networking, All Rights Reserved.