org.jboss.dtf.testframework.dtfweb.performance
Class XYGraphingBean

java.lang.Object
  extended by org.jboss.dtf.testframework.dtfweb.performance.XYGraphingBean
All Implemented Interfaces:
java.awt.image.ImageObserver

public class XYGraphingBean
extends java.lang.Object
implements java.awt.image.ImageObserver


Field Summary
protected  java.util.Vector _dataSeries
           
protected  java.awt.image.BufferedImage _image
           
protected  double _maxX
           
protected  double _maxY
           
protected  double _minX
           
protected  double _minY
           
protected  int _numIncX
           
protected  int _numIncY
           
protected  java.lang.String _xAxisLabelText
           
protected  java.awt.image.BufferedImage _yAxisLabel
           
protected  java.lang.String _yAxisLabelText
           
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
XYGraphingBean()
           
 
Method Summary
 void addDataSeries(XYDataSeries data)
           
 java.awt.image.BufferedImage createGraphImage(int width, int height)
          Draw the graph
protected  java.awt.image.BufferedImage createYAxisLabel(java.awt.Graphics g, java.lang.String text)
           
 java.lang.String getXAxisLabel()
           
 java.lang.String getYAxisLabel()
           
 boolean imageUpdate(java.awt.Image img, int infoflags, int x, int y, int width, int height)
           
 void setXAxisLabel(java.lang.String text)
           
 void setYAxisLabel(java.lang.String text)
           
 void updateGraph()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_dataSeries

protected java.util.Vector _dataSeries

_image

protected java.awt.image.BufferedImage _image

_yAxisLabel

protected java.awt.image.BufferedImage _yAxisLabel

_yAxisLabelText

protected java.lang.String _yAxisLabelText

_xAxisLabelText

protected java.lang.String _xAxisLabelText

_numIncX

protected int _numIncX

_minX

protected double _minX

_maxX

protected double _maxX

_minY

protected double _minY

_maxY

protected double _maxY

_numIncY

protected int _numIncY
Constructor Detail

XYGraphingBean

public XYGraphingBean()
Method Detail

addDataSeries

public void addDataSeries(XYDataSeries data)

updateGraph

public void updateGraph()

createYAxisLabel

protected java.awt.image.BufferedImage createYAxisLabel(java.awt.Graphics g,
                                                        java.lang.String text)

getYAxisLabel

public java.lang.String getYAxisLabel()

getXAxisLabel

public java.lang.String getXAxisLabel()

setYAxisLabel

public void setYAxisLabel(java.lang.String text)

setXAxisLabel

public void setXAxisLabel(java.lang.String text)

createGraphImage

public java.awt.image.BufferedImage createGraphImage(int width,
                                                     int height)
Draw the graph


imageUpdate

public boolean imageUpdate(java.awt.Image img,
                           int infoflags,
                           int x,
                           int y,
                           int width,
                           int height)
Specified by:
imageUpdate in interface java.awt.image.ImageObserver