ePOST API

rice.visualization.data
Class LineGraphView

java.lang.Object
  extended by rice.visualization.data.DataView
      extended by rice.visualization.data.LineGraphView
All Implemented Interfaces:
java.io.Serializable

public class LineGraphView
extends DataView

See Also:
Serialized Form

Field Summary
protected  boolean area
           
protected  java.util.Vector colors
           
protected  java.util.Vector domains
           
protected  java.util.Vector labels
           
protected  boolean legend
           
protected  java.util.Vector ranges
           
protected  java.lang.String xLabel
           
protected  java.lang.String yLabel
           
 
Fields inherited from class rice.visualization.data.DataView
constraints, data, height, name, width
 
Constructor Summary
LineGraphView(java.lang.String name, int width, int height, Constraints constraints, java.lang.String xLabel, java.lang.String yLabel, boolean area, boolean legend)
           
 
Method Summary
 void addSeries(java.lang.String name, double[] domain, double[] range, Color color)
           
 boolean getArea()
           
 Color getColor(int index)
           
 double[] getDomain(int index)
           
 java.lang.String getLabel(int index)
           
 boolean getLegend()
           
 double[] getRange(int index)
           
 int getSeriesCount()
           
 java.lang.String getXLabel()
           
 java.lang.String getYLabel()
           
 
Methods inherited from class rice.visualization.data.DataView
getConstraints, getHeight, getName, getWidth, setData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

domains

protected java.util.Vector domains

ranges

protected java.util.Vector ranges

labels

protected java.util.Vector labels

xLabel

protected java.lang.String xLabel

yLabel

protected java.lang.String yLabel

colors

protected java.util.Vector colors

area

protected boolean area

legend

protected boolean legend
Constructor Detail

LineGraphView

public LineGraphView(java.lang.String name,
                     int width,
                     int height,
                     Constraints constraints,
                     java.lang.String xLabel,
                     java.lang.String yLabel,
                     boolean area,
                     boolean legend)
Method Detail

addSeries

public void addSeries(java.lang.String name,
                      double[] domain,
                      double[] range,
                      Color color)

getSeriesCount

public int getSeriesCount()

getDomain

public double[] getDomain(int index)

getLabel

public java.lang.String getLabel(int index)

getColor

public Color getColor(int index)

getRange

public double[] getRange(int index)

getXLabel

public java.lang.String getXLabel()

getYLabel

public java.lang.String getYLabel()

getArea

public boolean getArea()

getLegend

public boolean getLegend()

ePOST API

Copyright © 2001-2005 - Rice Pastry.