All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class javaParse.LRStringTesterWindow

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Frame
                                   |
                                   +----javaParse.WindowItem
                                           |
                                           +----javaParse.StringTesterWindow
                                                   |
                                                   +----javaParse.LRStringTesterWindow

public class LRStringTesterWindow
extends StringTesterWindow
LRStringTesterWindow - the window for the LR string testing and tree drawing.


Constructor Index

 o LRStringTesterWindow(ParseTable, GrammarInfo, TableWindow)

Method Index

 o changeView(String)
changes the tree drawing view on the canvas
 o returnToGrammar()
override return to Grammar so that the user can be prompted as to whether or not he/she wants to return to the Table or the grammar (used in case there are conflicts
 o start()
 o step()

Constructors

 o LRStringTesterWindow
 public LRStringTesterWindow(ParseTable table,
                             GrammarInfo info,
                             TableWindow tableWindow)
Parameters:
table - the ParseTable holding all the information for creating the tree
info - the grammar's GrammarInfo
tableWindow - the tableWindow for the grammar (used so that cells may be highlighted when the user steps through the parsing)

Methods

 o step
 public void step()
Overrides:
step in class StringTesterWindow
 o start
 public void start()
Overrides:
start in class StringTesterWindow
 o returnToGrammar
 public void returnToGrammar()
override return to Grammar so that the user can be prompted as to whether or not he/she wants to return to the Table or the grammar (used in case there are conflicts

Overrides:
returnToGrammar in class WindowItem
 o changeView
 public void changeView(String viewType)
changes the tree drawing view on the canvas

Parameters:
viewType - the view type to which the view will be changed
Overrides:
changeView in class StringTesterWindow

All Packages  Class Hierarchy  This Package  Previous  Next  Index