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
-
DerivationCanvas()
-
-
drawDerivation(String, String)
- draws the list with the new derivation
-
paint(Graphics)
-
-
setStartString(String)
- set the beginning input string
-
startOver()
-
-
update(Graphics)
-
DerivationCanvas
public DerivationCanvas()
setStartString
public void setStartString(String str)
- set the beginning input string
drawDerivation
public void drawDerivation(String prodUsed,
String derivation)
- draws the list with the new derivation
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
update
public void update(Graphics g)
- Overrides:
- update in class Component
startOver
public void startOver()
All Packages Class Hierarchy This Package Previous Next Index