fr.ifremer.suiviobsmer.ui.components
Class Chart

java.lang.Object
  extended by fr.ifremer.suiviobsmer.ui.components.Chart

public class Chart
extends Object

Composant qui affiche un graphe de type PieChart.

 Utilisation :
 <t:chart width="210" height="190" values="choice" title="title" type="1"/>
 - choice est une liste de chaînes représentant les labels et leur valeurs respectives. ({"val1", "20", "val2", "10"}...)
 - type est le type de représentation du diagramme (1:PIE, 2:PIE3D...)
 Pour généraliser à d'autres types de graphes il faudrait passer un JFreeChart :
 Persist Parameter(required=true)
 private JFreeChart _chart;
 

Version:
$Id: Chart.java 222 2010-01-17 19:49:21Z fdesbois $
Author:
rannou

Constructor Summary
Chart()
           
 
Method Summary
 org.apache.tapestry5.StreamResponse onChart(String title, int width, int height)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Chart

public Chart()
Method Detail

onChart

public org.apache.tapestry5.StreamResponse onChart(String title,
                                                   int width,
                                                   int height)


Copyright © 2009-2010 Ifremer. All Rights Reserved.