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

Class edu.cornell.lassp.houle.HysSym.HysCanvas

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

public class HysCanvas
extends Canvas
implements AvalancheConsumer, RunStopConsumer
HysCanvas displays the square lattice used by HysLattice but will someday be generalized to work with other lattice simulations. For an example of use, see the applet hys.

Source code is available.

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

Constructor Index

 o HysCanvas(HysLattice)
Constructs a new HysCanvas attached to HysLattice l.

Method Index

 o paint(Graphics)
 o receiveAvalanche(Vector, int)
 o receiveRunStop(boolean)
 o update(Graphics)

Constructors

 o HysCanvas
  public HysCanvas(HysLattice l)
Constructs a new HysCanvas attached to HysLattice l.
Parameters:
l - a HysLattice that will be displayed by HysCanvas.

Methods

 o receiveRunStop
  public void receiveRunStop(boolean b)
See Also:
RunStopConsumer
 o receiveAvalanche
  public synchronized void receiveAvalanche(Vector avalanche,
                                            int dee)
See Also:
AvalancheConsumer
 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