|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hp.hpl.guess.Guess
the main guess system, it contains a Main that does most of what you want, but you can basically build your own application using the stuff in this class. Generally, you will want to do:
StorageFactory.useDBServer(...) // to set up the database you want Guess.configureUI() // unless you want your own L&F Guess.init(...)
Field Summary | |
static BufferedReader |
errHandle
|
static boolean |
handleOver
|
static boolean |
nowarn
|
static BufferedReader |
outHandle
|
Constructor Summary | |
Guess()
|
Method Summary | |
static boolean |
allowMultiEdge()
allow multiple edges |
static void |
checkFrozen(InterpreterAbstraction interp)
|
static void |
configureUI()
do some initial setup to the UI look and feel |
static void |
enableMainUI(boolean state)
enable the main UI window? |
static void |
exceptionHandle(Throwable e2)
|
static AppletContext |
getAppletContext()
get the applet context |
static boolean |
getAppletMode()
are we running inside an applet? |
static void |
getDataBase()
when a database is unspecified you get walked through a few steps, this should only be run once before the init process (see the main loop for an example) |
static FrameListener |
getFrame()
|
static boolean |
getGPLFreeMode()
get the gplfree mode |
static Graph |
getGraph()
gets the current working graph, if the sytem hasn't been inited you get back null |
static InterpreterAbstraction |
getInterpreter()
get the interpreter (fake or real depending on useFakeInterpreter setting) |
static MainUIWindow |
getMainUIWindow()
|
static boolean |
getMTF()
Are objects being moved to the front when they change |
static boolean |
getSynchronous()
thread management |
static void |
init(int uiMode,
boolean guiMode,
boolean textMode)
the main loop, this will get us running. |
static void |
initHandles()
|
static void |
initRest(int uiMode,
boolean guiMode,
boolean textMode)
|
static void |
initUI(int uiMode,
boolean guiMode,
boolean textMode)
|
static void |
main(String[] argv)
the main loop, this gets used when you're not using the applet version |
static void |
setAppletMode(boolean state,
AppletContext ac)
running inside an applet? true for yes, default is false |
static void |
setCacheDir()
|
static void |
setGPLFreeMode(boolean state)
set the gplfree mode |
static void |
setMTF(boolean state)
should objects in the visualization be moved to the front when they change |
static void |
setSynchronous(boolean state)
should layouts run in their own threads? |
static void |
shutdown()
shutdown and exit |
static void |
useFakeInterpreter(boolean state)
call this first if you want to use the "fake" interpreter. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static boolean nowarn
public static BufferedReader outHandle
public static BufferedReader errHandle
public static boolean handleOver
Constructor Detail |
public Guess()
Method Detail |
public static boolean allowMultiEdge()
public static void enableMainUI(boolean state)
public static void setGPLFreeMode(boolean state)
public static boolean getGPLFreeMode()
public static void setAppletMode(boolean state, AppletContext ac)
public static boolean getAppletMode()
public static AppletContext getAppletContext()
public static void useFakeInterpreter(boolean state)
public static InterpreterAbstraction getInterpreter()
public static FrameListener getFrame()
public static Graph getGraph()
public static MainUIWindow getMainUIWindow()
public static void setCacheDir()
public static void main(String[] argv) throws Exception
argv
- arguments
Exception
public static void getDataBase()
public static void configureUI()
public static void exceptionHandle(Throwable e2)
public static void init(int uiMode, boolean guiMode, boolean textMode) throws Exception
uiMode
- which ui to use
(currently VisFactory.PICCOLO,VisFactory.TOUCGRAPH,
VisFactory.PREFUSE, or VisFactory.NOVIS)guiMode
- run the interpeter as a seperate consoletextMode
- run the intepreter in the original console
Exception
public static void initHandles() throws Exception
Exception
public static void setSynchronous(boolean state)
public static boolean getSynchronous()
public static void setMTF(boolean state)
public static boolean getMTF()
public static void initUI(int uiMode, boolean guiMode, boolean textMode) throws Exception
Exception
public static void initRest(int uiMode, boolean guiMode, boolean textMode) throws Exception
Exception
public static void checkFrozen(InterpreterAbstraction interp)
public static void shutdown()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |