All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class user.plot.PlotApplet

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----java.applet.Applet
                                   |
                                   +----user.plot.PlotApplet

public class PlotApplet
extends Applet
implements PlotStatusHandler
This class contains the Applet methods connected with the PlotCanvas.

See Also:
PlotCanvas, PlotDataApplet

Constructor Index

 o PlotApplet()

Method Index

 o destroy()
Overload the (empty) destroy() method of the Applet class to destroy the painting in the PlotCanvas class.
 o getAppletInfo()
Return the information about the plot Applet.
 o getError()
Get the error string.
 o getParameterInfo()
Return information about the Plot Applet parameters.
 o init(PlotCanvas)
Initialise the PlotApplet.
 o parseColor(String)
Needed for the "colors" parameter list, converts string to color.
 o showMessage(String, int)
Show the plot status message.
 o start()
Overload the (empty) start() method of the Applet class to resume the painting in the PlotCanvas class.
 o stop()
Overload the (empty) stop() method of the Applet class to suspend the painting in the PlotCanvas class.

Constructors

 o PlotApplet
 public PlotApplet()

Methods

 o init
 public void init(PlotCanvas plot)
Initialise the PlotApplet. In this method the plot canvas is specialised. Also the Applet parameters are read.

Parameters:
plot - The used plot canvas.
 o start
 public void start()
Overload the (empty) start() method of the Applet class to resume the painting in the PlotCanvas class.

Overrides:
start in class Applet
See Also:
resumePaint, stop, destroy
 o stop
 public void stop()
Overload the (empty) stop() method of the Applet class to suspend the painting in the PlotCanvas class.

Overrides:
stop in class Applet
See Also:
suspendPaint, start, destroy
 o destroy
 public void destroy()
Overload the (empty) destroy() method of the Applet class to destroy the painting in the PlotCanvas class.

Overrides:
destroy in class Applet
See Also:
destroyPaint, start, stop
 o getError
 public String getError()
Get the error string.

Returns:
The error string.
 o parseColor
 public Color parseColor(String name)
Needed for the "colors" parameter list, converts string to color. (As of Java 1.0 there is no such utility in the Color class.)

Parameters:
name - "red", "green", "blue", "pink", "orange", "magenta", "cyan", "white", "yellow", "gray", "grey", "lightGray", "lightGrey", "darkGray", "darkGrey" or "black"
Returns:
The color specified by the color name.
 o showMessage
 public void showMessage(String message,
                         int canvas_state)
Show the plot status message. This method is part of the PlotStatusHandler interface. This implementation shows the message in the status bar of the browser. It is only used when the user does not implements the interface.

Parameters:
message - The plot status message to show.
canvas_state - The enter, be within, or exit the plot canvas state.
See Also:
PlotStatusHandler, ENTER, WITHIN, EXIT
 o getAppletInfo
 public String getAppletInfo()
Return the information about the plot Applet.

Returns:
The applet information.
Overrides:
getAppletInfo in class Applet
 o getParameterInfo
 public String[][] getParameterInfo()
Return information about the Plot Applet parameters.

Returns:
The parameter information.
Overrides:
getParameterInfo in class Applet

All Packages  Class Hierarchy  This Package  Previous  Next  Index