adalogo

Class Engine

Implemented Interfaces:
WindowListener

public class Engine
extends java.lang.Object
implements WindowListener

this is the engine for the program. everything goes through here.

Nested Class Summary

Constructor Summary

Engine()
this will create a frame, an editor box, a console, a canvas, a variable monitor and a turtle.

Method Summary

void
finalize()
for debug purposes.
TurtleCanvas
getCanvas()
Console
getConsole()
Editor
getEditor()
Action
getExitAction()
MenuBar
getMenuBar()
StatusBar
getStatusBar()
ToolBar
getToolBar()
Turtle
getTurtle()
VarMonitor
getVarMonitor()
VisitorMaster
getVisitor()
WindowFrame
getWindow()
void
mainScreenTurnOff()
this will close the window.
void
mainScreenTurnOn()
this will show the window frame.
void
windowActivated(WindowEvent e)
void
windowClosed(WindowEvent e)
void
windowClosing(WindowEvent e)
void
windowDeactivated(WindowEvent e)
void
windowDeiconified(WindowEvent e)
void
windowIconified(WindowEvent e)
void
windowOpened(WindowEvent e)

Constructor Details

Engine

public Engine()
this will create a frame, an editor box, a console, a canvas, a variable monitor and a turtle.

Method Details

finalize

public void finalize()
            throws Throwable
for debug purposes.


getCanvas

public TurtleCanvas getCanvas()


getConsole

public Console getConsole()


getEditor

public Editor getEditor()


getExitAction

public Action getExitAction()


getMenuBar

public MenuBar getMenuBar()


getStatusBar

public StatusBar getStatusBar()


getToolBar

public ToolBar getToolBar()


getTurtle

public Turtle getTurtle()


getVarMonitor

public VarMonitor getVarMonitor()


getVisitor

public VisitorMaster getVisitor()


getWindow

public WindowFrame getWindow()


mainScreenTurnOff

public void mainScreenTurnOff()
this will close the window. if started as applet this will re-enable the button, if started as application this will exit the program.


mainScreenTurnOn

public void mainScreenTurnOn()
this will show the window frame.


windowActivated

public void windowActivated(WindowEvent e)


windowClosed

public void windowClosed(WindowEvent e)


windowClosing

public void windowClosing(WindowEvent e)


windowDeactivated

public void windowDeactivated(WindowEvent e)


windowDeiconified

public void windowDeiconified(WindowEvent e)


windowIconified

public void windowIconified(WindowEvent e)


windowOpened

public void windowOpened(WindowEvent e)