net.aronnax.CountPaths
Class GUI

java.lang.Object
  extended by net.aronnax.CountPaths.GUI
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class GUI
extends java.lang.Object
implements java.awt.event.ActionListener

Class GUI provides a graphical user interface to run the CountPaths code. It is an alternative to the command line interface (CLI).

Version:
$Id: GUI.java 51 2010-12-28 02:53:56Z rassilon $
See Also:
CLI, CountPaths

Constructor Summary
GUI()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
          The actionPerformed method is required to implement the ActionListener class which allows us to read user interaction.
 void createAndShow()
          The createAndShow() method actually creates the window for the user to interact with.
static void main(java.lang.String[] args)
          The main method just launches the GUI; otherwise, it is useless here.
 void run()
          The run method reads the values from the GUI fields and runs the CountPaths class with the values in said fields.
 void runningAsApplet()
          The runningAsApplet method allows the GUI class to disable features that are not compatible with an Applet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GUI

public GUI()
Method Detail

main

public static void main(java.lang.String[] args)
The main method just launches the GUI; otherwise, it is useless here.


createAndShow

public void createAndShow()
The createAndShow() method actually creates the window for the user to interact with.


actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
The actionPerformed method is required to implement the ActionListener class which allows us to read user interaction.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
evt - The ActionEvent that triggered this method.

run

public void run()
The run method reads the values from the GUI fields and runs the CountPaths class with the values in said fields.


runningAsApplet

public void runningAsApplet()
The runningAsApplet method allows the GUI class to disable features that are not compatible with an Applet.