orc.gui
Class OrcGui

java.lang.Object
  extended by orc.gui.OrcGui
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
OrcApp

public class OrcGui
extends java.lang.Object
implements java.lang.Runnable

A basic GUI interface for Orc. This outputs to its own window instead of the console. It also provides pause/resume/stop buttons in the menubar. You still need to start the GUI from the command line.

Author:
quark

Nested Class Summary
protected static class OrcGui.OpenDialog
          Opens automatically when the program launches.
 
Field Summary
protected  Config config
           
protected  OrcEngine engine
           
protected  javax.swing.Action pause
           
protected  javax.swing.Action resume
           
protected  javax.swing.Action stop
           
 
Constructor Summary
OrcGui(Config config)
           
 
Method Summary
protected  javax.swing.JFrame createFrame()
           
protected  javax.swing.JMenuBar createMenuBar()
           
protected  javax.swing.JScrollPane createScrollPane()
           
protected static void error(java.lang.String title, java.lang.String message)
           
static void main(java.lang.String[] args)
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

config

protected Config config

engine

protected OrcEngine engine

pause

protected javax.swing.Action pause

resume

protected javax.swing.Action resume

stop

protected javax.swing.Action stop
Constructor Detail

OrcGui

public OrcGui(Config config)
Method Detail

main

public static void main(java.lang.String[] args)

error

protected static void error(java.lang.String title,
                            java.lang.String message)

createFrame

protected javax.swing.JFrame createFrame()

createScrollPane

protected javax.swing.JScrollPane createScrollPane()

createMenuBar

protected javax.swing.JMenuBar createMenuBar()

run

public void run()
Specified by:
run in interface java.lang.Runnable