EchoPoint API - 3.0.0b5
App Webcontainer

echopoint.google.chart.model
Class ChartData<N extends Number>

java.lang.Object
  extended by echopoint.google.chart.model.ChartData<N>
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ScatterPlotData

public class ChartData<N extends Number>
extends Object
implements Serializable

A model object that represents a data set that is to be plotted. Note that the data models are designed to correspond to the way Google expecte data and hence does not provide a more logical Point class. A point class would not work naturally for bar charts either.

Version:
$Id: ChartData.java 116 2009-02-19 00:23:08Z sptrakesh $
Author:
Rakesh 2008-08-10
See Also:
Serialized Form

Constructor Summary
ChartData()
          Default constructor.
ChartData(Collection<N> xdata, int xmax)
          Create a new instance using the mandatory field values.
 
Method Summary
 String getColor()
          Accessor for property 'color'.
 String getLegend()
          Accessor for property 'legend'.
 Collection<ShapeMarker> getMarkers()
          Accessor for property 'markers'.
 Collection<N> getXdata()
          Accessor for property 'xdata'.
 int getXmax()
          Accessor for property 'xmax'.
 Collection<N> getYdata()
          Accessor for property 'ydata'.
 int getYmax()
          Accessor for property 'ymax'.
 void setColor(String color)
          Mutator for property 'color'.
 void setLegend(String legend)
          Mutator for property 'legend'.
 void setMarkers(Collection<ShapeMarker> markers)
          Mutator for property 'markers'.
 void setXdata(Collection<N> xdata)
          Mutator for property 'xdata'.
 void setXmax(int xmax)
          Mutator for property 'xmax'.
 void setYdata(Collection<N> ydata)
          Mutator for property 'ydata'.
 void setYmax(int ymax)
          Mutator for property 'ymax'.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChartData

public ChartData()
Default constructor.


ChartData

public ChartData(Collection<N> xdata,
                 int xmax)
Create a new instance using the mandatory field values.

Parameters:
xdata - The xdata to use.
xmax - The xmax to use.
Method Detail

getXdata

public Collection<N> getXdata()
Accessor for property 'xdata'. Returns an unmodifiable view of the data.

Returns:
Value for property 'xdata'.

setXdata

public void setXdata(Collection<N> xdata)
Mutator for property 'xdata'.

Parameters:
xdata - Value to set for property 'xdata'.

getXmax

public int getXmax()
Accessor for property 'xmax'. If xmax is not defined, return the maximum value from xdata.

Returns:
Value for property 'xmax'.

setXmax

public void setXmax(int xmax)
Mutator for property 'xmax'.

Parameters:
xmax - Value to set for property 'xmax'.

getYdata

public Collection<N> getYdata()
Accessor for property 'ydata'. Returns an unmodifiable view of the data.

Returns:
Value for property 'ydata'.

setYdata

public void setYdata(Collection<N> ydata)
Mutator for property 'ydata'.

Parameters:
ydata - Value to set for property 'ydata'.

getYmax

public int getYmax()
Accessor for property 'ymax'.

Returns:
Value for property 'ymax'.

setYmax

public void setYmax(int ymax)
Mutator for property 'ymax'.

Parameters:
ymax - Value to set for property 'ymax'.

getColor

public String getColor()
Accessor for property 'color'.

Returns:
Value for property 'color'.

setColor

public void setColor(String color)
Mutator for property 'color'.

Parameters:
color - Value to set for property 'color'.

getLegend

public String getLegend()
Accessor for property 'legend'.

Returns:
Value for property 'legend'.

setLegend

public void setLegend(String legend)
Mutator for property 'legend'.

Parameters:
legend - Value to set for property 'legend'.

getMarkers

public Collection<ShapeMarker> getMarkers()
Accessor for property 'markers'.

Returns:
Value for property 'markers'.

setMarkers

public void setMarkers(Collection<ShapeMarker> markers)
Mutator for property 'markers'.

Parameters:
markers - Value to set for property 'markers'.

EchoPoint API - 3.0.0b5
App Webcontainer