zeus.visualiser.statistics.charts
Class XYGraph

java.lang.Object
  extended byzeus.visualiser.statistics.charts.XYGraph
All Implemented Interfaces:
DrawObject

public class XYGraph
extends java.lang.Object
implements DrawObject


Field Summary
protected  java.awt.FontMetrics fm
           
protected  java.awt.Font font
           
protected  int gap
           
protected static int KEY_LINE_LENGTH
           
protected  java.lang.String[] keys
           
protected static int LEFT
           
protected  double max_x
           
protected  double max_y
           
protected  double min_x
           
protected  double min_y
           
protected static int STEP
           
protected static double TINY
           
protected  java.lang.String title
           
protected  int type
           
protected static int TYPE1
           
protected static int TYPE2
           
protected  int x
           
protected  double[][] x_values
           
protected  int y
           
protected  double[][] y_values
           
 
Constructor Summary
XYGraph()
           
XYGraph(double[][] y_values, double[][] x_values, java.lang.String[] keys, java.lang.String title)
           
XYGraph(double[] y_values, double[] x_values, java.lang.String title)
           
 
Method Summary
protected  void computeMinMax()
           
 void drawYourSelf(java.awt.Graphics g)
           
(package private)  boolean isZero(double num)
           
 void setData(double[][] y_values, double[][] x_values, java.lang.String[] keys, java.lang.String title)
           
 void setData(double[] y_values, double[] x_values, java.lang.String title)
           
 void setXY(int xc, int yc)
           
(package private)  void TEST(int num)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE1

protected static final int TYPE1
See Also:
Constant Field Values

TYPE2

protected static final int TYPE2
See Also:
Constant Field Values

TINY

protected static double TINY

LEFT

protected static int LEFT

STEP

protected static int STEP

KEY_LINE_LENGTH

protected static int KEY_LINE_LENGTH

title

protected java.lang.String title

x

protected int x

y

protected int y

fm

protected java.awt.FontMetrics fm

font

protected java.awt.Font font

gap

protected int gap

max_x

protected double max_x

min_x

protected double min_x

max_y

protected double max_y

min_y

protected double min_y

x_values

protected double[][] x_values

y_values

protected double[][] y_values

keys

protected java.lang.String[] keys

type

protected int type
Constructor Detail

XYGraph

public XYGraph()

XYGraph

public XYGraph(double[] y_values,
               double[] x_values,
               java.lang.String title)

XYGraph

public XYGraph(double[][] y_values,
               double[][] x_values,
               java.lang.String[] keys,
               java.lang.String title)
Method Detail

setData

public void setData(double[] y_values,
                    double[] x_values,
                    java.lang.String title)

setData

public void setData(double[][] y_values,
                    double[][] x_values,
                    java.lang.String[] keys,
                    java.lang.String title)

computeMinMax

protected void computeMinMax()

drawYourSelf

public void drawYourSelf(java.awt.Graphics g)
Specified by:
drawYourSelf in interface DrawObject

TEST

void TEST(int num)

isZero

boolean isZero(double num)

setXY

public void setXY(int xc,
                  int yc)


Copyright © 2000-2003 BT Exact Technologies. All Rights Reserved.