|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttortues.Controller
public class Controller
Controller (MVC) * @author Julien VAUBOURG * @version 0.2 (2010-10-12)
Constructor Summary | |
---|---|
protected |
Controller(Tortoise franklin)
Creates the controller, with a turtle |
Method Summary | |
---|---|
protected void |
execCommand(java.lang.String commandText)
Executes a turtle command, and adds it to the history |
protected void |
execCommand(java.lang.String commandText,
boolean save)
Executes a turtle command |
protected Tortoise |
getFranklin()
Returns Franklin |
protected java.util.ArrayList<java.awt.Point[]> |
getSegments()
Returns the drawing |
protected static void |
help()
Help on console |
protected java.lang.String |
historyDown()
Goes down in the command history |
protected java.lang.String |
historyUp()
Back in the command history |
protected void |
open()
Open a saved drawing (with file chooser) |
protected void |
open(java.io.File dumpFile)
Open a saved drawing |
protected void |
open(java.io.InputStream dumpStream)
Open a saved drawing |
protected void |
setView(Screen view)
Set the attached view (MVC) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Controller(Tortoise franklin)
franklin
- Tortoise instance of FranklinMethod Detail |
---|
protected java.util.ArrayList<java.awt.Point[]> getSegments()
protected Tortoise getFranklin()
protected java.lang.String historyUp()
protected java.lang.String historyDown()
protected void setView(Screen view)
view
- Screen view instanceprotected void execCommand(java.lang.String commandText)
commandText
- Turtle commandprotected void execCommand(java.lang.String commandText, boolean save)
commandText
- Turtle commandsave
- Save in the command historyprotected void open()
protected void open(java.io.File dumpFile)
dumpFile
- Saved drawing fileprotected void open(java.io.InputStream dumpStream)
dumpStream
- Saved drawing fileprotected static void help()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |