|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.fraid.ScriptingGraphics
public class ScriptingGraphics
This is the graphics 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 | |
---|---|
ScriptingGraphics()
|
Method Summary | |
---|---|
static int |
close_w(java.lang.Object... aWindowList)
Close the windows listed in aWindowList (integers). |
static BehaviorBean |
get_p(int aWindowNumber)
Get the plugin for this window. |
static int |
new_w()
Open a new empty window. |
static void |
paint_w(int aWindowNumber)
Repaint window number aWindowNumber. |
static java.lang.Object[] |
query_w()
Get a list of the currently open window numbers. |
static java.awt.Dimension |
size_w(int aWindowNumber)
Get the size of window number aWindowNumber. |
static java.awt.Dimension |
size_w(int aWindowNumber,
int aWidth,
int aHeight)
Set the size of window number aWindowNumber. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScriptingGraphics()
Method Detail |
---|
public static int new_w() throws ParseException
ParseException
- if an error occurspublic static java.lang.Object[] query_w()
Object[]
value which actually is a list of Integer(s)public static java.awt.Dimension size_w(int aWindowNumber) throws ParseException
aWindowNumber
- an int
value
Dimension
value
ParseException
- if an error occurspublic static java.awt.Dimension size_w(int aWindowNumber, int aWidth, int aHeight) throws ParseException
aWindowNumber
- an int
valueaWidth
- an int
valueaHeight
- an int
value
Dimension
value
ParseException
- if an error occurspublic static void paint_w(int aWindowNumber) throws ParseException
aWindowNumber
- an int
value
ParseException
- if an error occurspublic static int close_w(java.lang.Object... aWindowList) throws java.lang.Exception
close_w( query_w() )
- closes all windows.
close_w( 1,2,3 )
- closes the specifyed windows.
int
value
java.lang.Exception
- if an error occurspublic static BehaviorBean get_p(int aWindowNumber) throws ParseException
aWindowNumber
- an int
value
BehaviourPlugInAdapter
value
ParseException
- if an error occurs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |