|
EchoPoint API - 3.0.0b5 App Webcontainer |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnextapp.echo.app.Component
echopoint.internal.AbstractContainer
echopoint.google.chart.internal.AbstractChart<N>
echopoint.google.chart.internal.SimpleChart<N>
echopoint.google.chart.PieChart<N>
public class PieChart<N extends Number>
Component wrapper for a Pie chart provided by Google Chart API.
The following code shows sample use of this component:
import echopoint.google.chart.PieChart;
import echopoint.google.chart.model.ChartData;
...
final ChartData<Integer> data = new ChartData<Integer>();
final Integer[] array = new Integer[]
{ 31, 28, 31, 30, 31, 31, 31, 31, 30, 31, 30, 31 };
data.setXdata( Arrays.asList( array ) );
final PieChart<Integer> chart = new PieChart<Integer>();
chart.setDimensions( PieChart.Dimensions.p3 );
final ArrayList<ChartData<Integer>> collection = new ArrayList<ChartData<Integer>>();
collection.add( data );
chart.setData( collection );
| Nested Class Summary | |
|---|---|
static class |
PieChart.Dimensions
An enumeration used to represent the pie chart dimensions. |
| Field Summary | |
|---|---|
static String |
PROPERTY_DIMENSIONS
The property used to configure 2 or 3-dimensional charts. |
static String |
PROPERTY_LABELS
The property that holds the collection of string labels to associate with the segments in the pie chart. |
| Fields inherited from class echopoint.google.chart.internal.SimpleChart |
|---|
PROPERTY_LEGEND_POSITION |
| Fields inherited from class echopoint.google.chart.internal.AbstractChart |
|---|
PROPERTY_ALT, PROPERTY_DATA, PROPERTY_FILL, PROPERTY_TITLE |
| Fields inherited from class echopoint.internal.AbstractContainer |
|---|
ACTION_COMMAND_PROPERTY, ACTION_LISTENERS_CHANGED_PROPERTY, INPUT_ACTION, PROPERTY_ALIGNMENT, PROPERTY_BACKGROUND_IMAGE, PROPERTY_BORDER, PROPERTY_HEIGHT, PROPERTY_INSETS, PROPERTY_WIDTH |
| Constructor Summary | |
|---|---|
PieChart()
|
|
| Method Summary | |
|---|---|
PieChart.Dimensions |
getDimensions()
Return the PROPERTY_DIMENSIONS property value. |
Collection<String> |
getLabels()
Return the PROPERTY_LABELS property value. |
void |
setDimensions(PieChart.Dimensions dimension)
Set the value of the PROPERTY_DIMENSIONS property. |
void |
setLabels(Collection<String> labels)
Set the value of the PROPERTY_LABELS property. |
| Methods inherited from class echopoint.google.chart.internal.SimpleChart |
|---|
getLegendPosition, setLegendPosition |
| Methods inherited from class echopoint.google.chart.internal.AbstractChart |
|---|
getAlt, getData, getFill, getTitle, isValidChild, setAlt, setData, setData, setFill, setTitle |
| Methods inherited from class echopoint.internal.AbstractContainer |
|---|
addActionListener, fireActionPerformed, getAlignment, getBackgroundImage, getBorder, getHeight, getInsets, getWidth, hasActionListeners, removeActionListener, setAlignment, setBackgroundImage, setBorder, setHeight, setInsets, setWidth |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PROPERTY_DIMENSIONS
public static final String PROPERTY_LABELS
| Constructor Detail |
|---|
public PieChart()
| Method Detail |
|---|
public PieChart.Dimensions getDimensions()
PROPERTY_DIMENSIONS property value.
public void setDimensions(PieChart.Dimensions dimension)
PROPERTY_DIMENSIONS property.
dimension - The value to set.public Collection<String> getLabels()
PROPERTY_LABELS property value.
public void setLabels(Collection<String> labels)
PROPERTY_LABELS property.
labels - The value to set.
|
EchoPoint API - 3.0.0b5 App Webcontainer |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||