All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class DopplerProgram.RadiationWave

java.lang.Object
   |
   +----DopplerProgram.RadiationWave

public class RadiationWave
extends Object
A single radiation wave. should dissipate in color to as extending from origin


Variable Index

 o SPEED_OF_LIGHT
 o x
 o y

Constructor Index

 o RadiationWave(int, int)
Constructs a new Radiation wave eminating from point _x, _y

Method Index

 o getColor()
gets the color of the radiation wave.
 o getWave()
returns the expanded radius of the radiation wave
 o isActive()
returns boolean indicating if the radiation wave is still active
 o spread()
inflates the radiation wave by the speed of light

Variables

 o SPEED_OF_LIGHT
 public static final int SPEED_OF_LIGHT
 o x
 public int x
 o y
 public int y

Constructors

 o RadiationWave
 public RadiationWave(int _x,
                      int _y)
Constructs a new Radiation wave eminating from point _x, _y

Methods

 o spread
 public void spread()
inflates the radiation wave by the speed of light

 o isActive
 public boolean isActive()
returns boolean indicating if the radiation wave is still active

 o getWave
 public int getWave()
returns the expanded radius of the radiation wave

 o getColor
 public Color getColor()
gets the color of the radiation wave. The color intensity will decrease with time.


All Packages  Class Hierarchy  This Package  Previous  Next  Index