net.sf.j3d.physics.test
Class WaveGrid

java.lang.Object
  extended by net.sf.j3d.physics.test.WaveGrid

public class WaveGrid
extends Object


Constructor Summary
WaveGrid(int w, int h)
           
 
Method Summary
 void displace(int x, int y, double d)
           
 void drawImage(Graphics g)
           
 JPanel getDisplay()
           
 RGB[][] getImage()
           
 boolean imageAvailable()
           
static void main(String[] args)
           
 double neighbors(int x, int y)
           
 double neighbors(int x, int y, boolean diag)
           
 void saveImage(String file)
           
 void tick()
           
 void tick(double t)
           
 void writeImage(OutputStream out)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WaveGrid

public WaveGrid(int w,
                int h)
Method Detail

main

public static void main(String[] args)
Parameters:
args -

displace

public void displace(int x,
                     int y,
                     double d)

neighbors

public double neighbors(int x,
                        int y)

neighbors

public double neighbors(int x,
                        int y,
                        boolean diag)

drawImage

public void drawImage(Graphics g)

writeImage

public void writeImage(OutputStream out)
                throws IOException
Throws:
IOException

saveImage

public void saveImage(String file)
               throws IOException
Throws:
IOException

imageAvailable

public boolean imageAvailable()

getImage

public RGB[][] getImage()

getDisplay

public JPanel getDisplay()

tick

public void tick()

tick

public void tick(double t)