Class edu.cornell.lassp.houle.HysSym.XyPlot
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class edu.cornell.lassp.houle.HysSym.XyPlot

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----edu.cornell.lassp.houle.HysSym.XyPlot

public class XyPlot
extends Canvas
implements XyConsumer
XyPlot is an X-Y plotting class. XyPlot is an XyConsumer and gets X-Y values to plot through the receiveXy() method. For an example of usage see the hys applet which sets one up and the HysLattice class which feeds it information.

Source code is available.

Version:
0.9a
Author:
Paul Houle (E-mail: ph18@cornell.edu)
See Also:
XyConsumer, HysLattice, hys

Constructor Index

 o XyPlot(int, int)
Construct an XyPlot.

Method Index

 o paint(Graphics)
 o receiveXy(double, double)
 o setWorld(double, double, double, double)
 o update(Graphics)

Constructors

 o XyPlot
  public XyPlot(int width,
                int height)
Construct an XyPlot.
Parameters:
width - width in pixels
height - height in pixels

Methods

 o setWorld
  public void setWorld(double x1,
                       double y1,
                       double x2,
                       double y2)
 o receiveXy
  public void receiveXy(double x,
                        double y)
 o paint
  public void paint(Graphics g)
Overrides:
paint in class Canvas
 o update
  public void update(Graphics g)
Overrides:
update in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index