org.achartengine.model
Class MultipleCategorySeries

java.lang.Object
  extended by org.achartengine.model.MultipleCategorySeries
All Implemented Interfaces:
java.io.Serializable

public class MultipleCategorySeries
extends java.lang.Object
implements java.io.Serializable

A series for the multiple category charts like the doughnut.

See Also:
Serialized Form

Constructor Summary
MultipleCategorySeries(java.lang.String title)
          Builds a new category series.
 
Method Summary
 void add(java.lang.String[] titles, double[] values)
          Adds a new value to the series
 void add(java.lang.String category, java.lang.String[] titles, double[] values)
          Adds a new value to the series.
 void clear()
          Removes all the existing values from the series.
 int getCategoriesCount()
          Returns the categories count.
 java.lang.String getCategory(int index)
          Returns the category name at the specified index.
 int getItemCount(int index)
          Returns the series item count.
 java.lang.String[] getTitles(int index)
          Returns the series titles.
 double[] getValues(int index)
          Returns the values at the specified index.
 void remove(int index)
          Removes an existing value from the series.
 XYSeries toXYSeries()
          Transforms the category series to an XY series.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultipleCategorySeries

public MultipleCategorySeries(java.lang.String title)
Builds a new category series.

Parameters:
title - the series title
Method Detail

add

public void add(java.lang.String[] titles,
                double[] values)
Adds a new value to the series

Parameters:
titles - the titles to be used as labels
values - the new value

add

public void add(java.lang.String category,
                java.lang.String[] titles,
                double[] values)
Adds a new value to the series.

Parameters:
category - the category name
titles - the titles to be used as labels
values - the new value

remove

public void remove(int index)
Removes an existing value from the series.

Parameters:
index - the index in the series of the value to remove

clear

public void clear()
Removes all the existing values from the series.


getValues

public double[] getValues(int index)
Returns the values at the specified index.

Parameters:
index - the index
Returns:
the value at the index

getCategory

public java.lang.String getCategory(int index)
Returns the category name at the specified index.

Parameters:
index - the index
Returns:
the category name at the index

getCategoriesCount

public int getCategoriesCount()
Returns the categories count.

Returns:
the categories count

getItemCount

public int getItemCount(int index)
Returns the series item count.

Parameters:
index - the index
Returns:
the series item count

getTitles

public java.lang.String[] getTitles(int index)
Returns the series titles.

Parameters:
index - the index
Returns:
the series titles

toXYSeries

public XYSeries toXYSeries()
Transforms the category series to an XY series.

Returns:
the XY series


Copyright © 2009 - 2011 4ViewSoft. All Rights Reserved.