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
-
SPEED_OF_LIGHT
-
-
x
-
-
y
-
-
RadiationWave(int, int)
- Constructs a new Radiation wave eminating from point _x, _y
-
getColor()
- gets the color of the radiation wave.
-
getWave()
- returns the expanded radius of the radiation wave
-
isActive()
- returns boolean indicating if the radiation wave is still active
-
spread()
- inflates the radiation wave by the speed of light
SPEED_OF_LIGHT
public static final int SPEED_OF_LIGHT
x
public int x
y
public int y
RadiationWave
public RadiationWave(int _x,
int _y)
- Constructs a new Radiation wave eminating from point _x, _y
spread
public void spread()
- inflates the radiation wave by the speed of light
isActive
public boolean isActive()
- returns boolean indicating if the radiation wave is still active
getWave
public int getWave()
- returns the expanded radius of the radiation wave
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