All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class javaParse.DerivationCanvas

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----javaParse.DerivationCanvas

public class DerivationCanvas
extends Canvas
The class that is the canvas for the String derivation view in the string tester window


Constructor Index

 o DerivationCanvas()

Method Index

 o drawDerivation(String, String)
draws the list with the new derivation
 o paint(Graphics)
 o setStartString(String)
set the beginning input string
 o startOver()
 o update(Graphics)

Constructors

 o DerivationCanvas
 public DerivationCanvas()

Methods

 o setStartString
 public void setStartString(String str)
set the beginning input string

 o drawDerivation
 public void drawDerivation(String prodUsed,
                            String derivation)
draws the list with the new derivation

 o paint
 public void paint(Graphics g)
Parameters:
s - the Graphic to draw on paints the derivations and productions used on the Canvas at the prefect locations
Overrides:
paint in class Canvas
 o update
 public void update(Graphics g)
Overrides:
update in class Component
 o startOver
 public void startOver()

All Packages  Class Hierarchy  This Package  Previous  Next  Index