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.

Constructor Index

 o RadioWaves()

Method Index

 o getAppletInfo()
Returns version, author and copyright information about the RadioWaves applet.
 o 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").
 o 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.
 o 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.
 o getParameterInfo()
Describes each of RadioWaves` applet parameters.
 o init()
 o initWaveColors(Graphics)
Initializes the wave colour(s) before a series of waves is emitted.
 o run()
Repeatedly emits series of radio waves.
 o setNextWaveColor(Graphics)
Sets the colour of the next wave to be drawn.
 o start()
 o stop()

Constructors

 o RadioWaves
  public RadioWaves()

Methods

 o init
  public void init()
Overrides:
init in class Applet
 o start
  public void start()
Overrides:
start in class Applet
 o stop
  public void stop()
Overrides:
stop in class Applet
 o run
  public void run()
Repeatedly emits series of radio waves.
 o 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
 o 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
 o getAppletInfo
  public String getAppletInfo()
Returns version, author and copyright information about the RadioWaves applet.
Overrides:
getAppletInfo in class Applet
 o getParameterInfo
  public String[][] getParameterInfo()
Describes each of RadioWaves` applet parameters.
Overrides:
getParameterInfo in class Applet
 o 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
 o 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
 o 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