jAER project on SourceForge

net.sf.jaer.util.chart
Class Category

java.lang.Object
  extended by net.sf.jaer.util.chart.Category

public class Category
extends java.lang.Object

The Category class. A Category is a view of a data series in a chart.


Field Summary
 Axis[] axes
          The axes of the series.
protected  float[] color
          The color of the series.
protected  Series data
           
static Axis DUMMY_AXIS
           
protected  double[] transform
           
 
Constructor Summary
Category(Series data, Axis[] axes)
          Create a new Category
 
Method Summary
 void draw(javax.media.opengl.GL gl)
          Draw the category.
 float[] getColor()
          Get the color.
 Series getData()
          Get the data displayed by the category using some data transformation.
 double[] getDataTransformation()
          Get the transformation of the data.
 void setColor(float[] color)
          Set the color.
 void setData(Series data)
          Set the data displayed by the category using some data transformation.
 void setDataTransformation(double[] transform)
          Set the transformation of the data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DUMMY_AXIS

public static final Axis DUMMY_AXIS

data

protected Series data

transform

protected double[] transform

color

protected float[] color
The color of the series.


axes

public Axis[] axes
The axes of the series.

Constructor Detail

Category

public Category(Series data,
                Axis[] axes)
Create a new Category

Method Detail

draw

public void draw(javax.media.opengl.GL gl)
Draw the category. Buffer series onto opengl device.


setData

public void setData(Series data)
Set the data displayed by the category using some data transformation.


getData

public Series getData()
Get the data displayed by the category using some data transformation.


setDataTransformation

public void setDataTransformation(double[] transform)
Set the transformation of the data.


getDataTransformation

public double[] getDataTransformation()
Get the transformation of the data.


setColor

public void setColor(float[] color)
Set the color.


getColor

public float[] getColor()
Get the color.


jAER project on SourceForge