Class GUI

java.lang.Object
  extended bycom.otherwise.jurtle.Turtle
      extended byGUI
All Implemented Interfaces:
java.lang.Runnable

public class GUI
extends com.otherwise.jurtle.Turtle


Field Summary
(package private)  javax.swing.JButton blueBtn
           
(package private)  javax.swing.JFrame frame
           
(package private)  javax.swing.JButton greenBtn
           
(package private)  javax.swing.JButton redBtn
           
 
Fields inherited from class com.otherwise.jurtle.Turtle
NO_PAUSE
 
Constructor Summary
GUI()
           
 
Method Summary
 void runTurtle()
          Main entry point to the code.
 
Methods inherited from class com.otherwise.jurtle.Turtle
backward, center, clearDisplay, forward, getAutoUpdate, getAutoUpdatePause, getDisplay, getDisplayColor, getDisplayContainer, getDisplaySize, getGraphics, getHeading, getPenColor, getPenWidth, getPixelColor, getPosition, getTurtles, hideTurtle, home, isPenDown, isRunning, isVisible, left, paintTurtle, pause, penDown, penErase, penPaint, penUp, right, run, setAutoUpdate, setAutoUpdatePause, setDisplayColor, setHeading, setPenColor, setPenWidth, setPixelColor, setPosition, setPositionX, setPositionY, showTurtle, start, stopTurtle, turtleStopped, updateDisplay, waitForStop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

frame

javax.swing.JFrame frame

redBtn

javax.swing.JButton redBtn

greenBtn

javax.swing.JButton greenBtn

blueBtn

javax.swing.JButton blueBtn
Constructor Detail

GUI

public GUI()
Method Detail

runTurtle

public void runTurtle()
Main entry point to the code. Creates a JFrame to hold the GUI and calls initialize to populate it. After showing the frame it calls waitForStop to wait until the Stop button is clicked.