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
-
PlotApplet()
-
-
destroy()
- Overload the (empty)
destroy()
method of the
Applet
class to destroy the painting in the
PlotCanvas
class.
-
getAppletInfo()
- Return the information about the plot Applet.
-
getError()
- Get the error string.
-
getParameterInfo()
- Return information about the Plot Applet parameters.
-
init(PlotCanvas)
- Initialise the
PlotApplet
.
-
parseColor(String)
- Needed for the "colors" parameter list, converts string
to color.
-
showMessage(String, int)
- Show the plot status message.
-
start()
- Overload the (empty)
start()
method of the
Applet
class to resume the painting in the
PlotCanvas
class.
-
stop()
- Overload the (empty)
stop()
method of the
Applet
class to suspend the painting in the
PlotCanvas
class.
PlotApplet
public PlotApplet()
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.
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
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
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
getError
public String getError()
- Get the error string.
- Returns:
- The error string.
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.
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
getAppletInfo
public String getAppletInfo()
- Return the information about the plot Applet.
- Returns:
- The applet information.
- Overrides:
- getAppletInfo in class Applet
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