org.fraid
Class ScriptingConsole

java.lang.Object
  extended by org.fraid.ScriptingConsole

public class ScriptingConsole
extends java.lang.Object

This is the console part of Fraid's scripting interface. A set of static methods helping when FrAid is embedded in Java, Jython, BeanShell, Groovy, etc. This is the easyest way to use FrAid programmatically from your Java or Java scripting environment. For efficiency direct calls to the internal functions may be better though. It consists of static members/methods only so no construction is needed. In a scripting environment though you may save some typing by doing s = new org.fraid.ScriptingGraphics() and then work only with s.


Constructor Summary
ScriptingConsole()
           
 
Method Summary
static FraidConsole console(java.lang.String aInitialText)
          Open a FraidConsole with an associated FrAid interpreter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptingConsole

public ScriptingConsole()
Method Detail

console

public static FraidConsole console(java.lang.String aInitialText)
Open a FraidConsole with an associated FrAid interpreter.

Parameters:
aInitialText - a String value
Returns:
a FraidConsole value


Fraid (system and language). (C) 2003-2007 Ivaylo Iliev
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.