org.achartengine.model
Class XYValueSeries

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

public class XYValueSeries
extends XYSeries

An extension of the XY series which adds a third dimension. It is used for XY charts like bubble.

See Also:
Serialized Form

Constructor Summary
XYValueSeries(java.lang.String title)
          Builds a new XY value series.
 
Method Summary
 void add(double x, double y)
          Adds a new value to the series.
 void add(double x, double y, double value)
          Adds a new value to the series.
 void clear()
          Removes all the values from the series.
 double getMaxValue()
          Returns the maximum value.
 double getMinValue()
          Returns the minimum value.
 double getValue(int index)
          Returns the value at the specified index.
 void remove(int index)
          Removes an existing value from the series.
 
Methods inherited from class org.achartengine.model.XYSeries
add, addAnnotation, getAnnotationAt, getAnnotationCount, getAnnotationX, getAnnotationY, getIndexForKey, getItemCount, getMaxX, getMaxY, getMinX, getMinY, getPadding, getRange, getScaleNumber, getTitle, getX, getY, removeAnnotation, setTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XYValueSeries

public XYValueSeries(java.lang.String title)
Builds a new XY value series.

Parameters:
title - the series title.
Method Detail

add

public void add(double x,
                double y,
                double value)
Adds a new value to the series.

Parameters:
x - the value for the X axis
y - the value for the Y axis
value - the value

add

public void add(double x,
                double y)
Adds a new value to the series.

Overrides:
add in class XYSeries
Parameters:
x - the value for the X axis
y - the value for the Y axis

remove

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

Overrides:
remove in class XYSeries
Parameters:
index - the index in the series of the value to remove

clear

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

Overrides:
clear in class XYSeries

getValue

public double getValue(int index)
Returns the value at the specified index.

Parameters:
index - the index
Returns:
the value

getMinValue

public double getMinValue()
Returns the minimum value.

Returns:
the minimum value

getMaxValue

public double getMaxValue()
Returns the maximum value.

Returns:
the maximum value


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