Class RadioWaves
Class RadioWaves
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----java.applet.Applet
|
+----RadioWaves
- public class RadioWaves
- extends Applet
- implements Runnable
Draws repeating series of radio waves emitted from its centre.
Also see RadioWaves` applet
parameters documentation.
-
RadioWaves()
-
-
getAppletInfo()
- Returns version, author and copyright information about the
RadioWaves applet.
-
getBooleanParameter(String, boolean)
- Returns the boolean value of the applet parameter paramName,
or defaultValue if the parameter isn`t specified or isn`t
a boolean ("true" or "false").
-
getColorParameter(String, Color)
- Returns the Color specified by the value of the applet parameter
paramName, or defaultValue if the parameter
isn`t specified or isn`t valid.
-
getIntParameter(String, int)
- Returns the integer value of the applet parameter paramName,
or defaultValue if the parameter isn`t specified or isn`t
an integer.
-
getParameterInfo()
- Describes each of RadioWaves` applet parameters.
-
init()
-
-
initWaveColors(Graphics)
- Initializes the wave colour(s) before a series of waves is emitted.
-
run()
- Repeatedly emits series of radio waves.
-
setNextWaveColor(Graphics)
- Sets the colour of the next wave to be drawn.
-
start()
-
-
stop()
-
RadioWaves
public RadioWaves()
init
public void init()
- Overrides:
- init in class Applet
start
public void start()
- Overrides:
- start in class Applet
stop
public void stop()
- Overrides:
- stop in class Applet
run
public void run()
- Repeatedly emits series of radio waves.
initWaveColors
protected void initWaveColors(Graphics g)
- Initializes the wave colour(s) before a series of waves is emitted.
- Parameters:
- g - the Graphics object on which the series of waves will be drawn
setNextWaveColor
protected void setNextWaveColor(Graphics g)
- Sets the colour of the next wave to be drawn.
- Parameters:
- g - the Graphics object on which the wave will be drawn
getAppletInfo
public String getAppletInfo()
- Returns version, author and copyright information about the
RadioWaves applet.
- Overrides:
- getAppletInfo in class Applet
getParameterInfo
public String[][] getParameterInfo()
- Describes each of RadioWaves` applet parameters.
- Overrides:
- getParameterInfo in class Applet
getIntParameter
protected final int getIntParameter(String paramName,
int defaultValue)
- Returns the integer value of the applet parameter paramName,
or defaultValue if the parameter isn`t specified or isn`t
an integer.
- Parameters:
- paramName - the name of the applet parameter whose value is to
be returned
- defaultValue - the value to be returned if the applet parameter
hasn`t been specified or isn`t an integer
getBooleanParameter
protected final boolean getBooleanParameter(String paramName,
boolean defaultValue)
- Returns the boolean value of the applet parameter paramName,
or defaultValue if the parameter isn`t specified or isn`t
a boolean ("true" or "false").
- Parameters:
- paramName - the name of the applet parameter whose value is to
be returned
- defaultValue - the value to be returned if the applet parameter
hasn`t been specified or isn`t a boolean
getColorParameter
protected final Color getColorParameter(String paramName,
Color defaultValue)
- Returns the Color specified by the value of the applet parameter
paramName, or defaultValue if the parameter
isn`t specified or isn`t valid. (The parameter`s value must be a
hexadecimal colour value of the form RRGGBB.)
- Parameters:
- paramName - the name of the applet parameter whose value is to
be returned
- defaultValue - the value to be returned if the applet parameter
hasn`t been specified or isn`t valid