org.chorem.pollen.ui.components
Class Chart
java.lang.Object
org.chorem.pollen.ui.components.Chart
public class Chart
- extends java.lang.Object
Composant qui affiche un graphe de type PieChart.
Utilisation :
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 2615 2009-07-01 13:47:45Z nrannou $
- 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,
java.lang.Object... rest)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
Chart
public Chart()
onChart
public org.apache.tapestry5.StreamResponse onChart(java.lang.String title,
int type,
int width,
int height,
java.lang.Object... rest)
Copyright © 2009 CodeLutin. All Rights Reserved.