org.chorem.pollen.ui.components
Class Chart

java.lang.Object
  extended by org.chorem.pollen.ui.components.Chart

public class Chart
extends java.lang.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 2836 2010-01-11 12:46:59Z schorlet $
Author:
rannou

Field Summary
static int PIE
          diagramme de type PIE
static int PIE3D
          diagramme de type PIE3D
static int RING
          diagramme de type RING
 
Constructor Summary
Chart()
           
 
Method Summary
 org.apache.tapestry5.StreamResponse onChart(java.lang.String title, int type, int width, int height, int nbSubtitles, java.lang.Object... objects)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PIE

public static final int PIE
diagramme de type PIE

See Also:
Constant Field Values

PIE3D

public static final int PIE3D
diagramme de type PIE3D

See Also:
Constant Field Values

RING

public static final int RING
diagramme de type RING

See Also:
Constant Field Values
Constructor Detail

Chart

public Chart()
Method Detail

onChart

public org.apache.tapestry5.StreamResponse onChart(java.lang.String title,
                                                   int type,
                                                   int width,
                                                   int height,
                                                   int nbSubtitles,
                                                   java.lang.Object... objects)


Copyright © 2009-2010 CodeLutin. All Rights Reserved.