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

java.lang.Object
  extended by be.ac.ulg.montefiore.run.totem.chart.model.plotters.DecreasingLineChartPlotter
All Implemented Interfaces:
ChartPlotter

public class DecreasingLineChartPlotter
extends java.lang.Object
implements ChartPlotter

This class is used to plot a line graph where all values in a series are sorted. The plotted point with the highest Y coordinate has the smallest X coordinate, so that the chart represent a decreasing line. A typical use is to represent the links of a domain on the X axis and the load for each link on the Y axis.

Creation date: 20 déc. 2005

Author:
Gaël Monfort (monfort@run.montefiore.ulg.ac.be)

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

DecreasingLineChartPlotter

public DecreasingLineChartPlotter()
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.

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 - no parameters used
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.