Public Member Functions | |
FlashCommunicationServer () | |
Allows us to send messages to the Flash GUI. | |
FlashCommunicationServer (int port) | |
void | addFlashClientListener (FlashListener flashListener) |
void | exitServer () |
void | handleCommand (int clientID, String command) |
void | openFlashGUI (File flashGUIFile) |
Currently, we assume the next client connection is for THIS flash GUI. | |
void | openFlashApolloGUI (File apolloGUIFile) |
Point it to the Apollo exe that will serve as your GUI. | |
void | removeAllFlashClientListeners () |
void | sendMessage (String msg) |
Static Public Attributes | |
static final int | DEFAULT_PORT = Constants.Ports.FLASH_COMMUNICATION_SERVER |
communicate through this port |
This is an early implementation. Later on, we may allow our event handlers to live in the world of Flash, for faster UI prototyping.
This software is distributed under the BSD License.
Definition at line 33 of file FlashCommunicationServer.java.
FlashCommunicationServer | ( | int | port | ) |
void addFlashClientListener | ( | FlashListener | flashListener | ) |
flashListener |
Definition at line 83 of file FlashCommunicationServer.java.
Referenced by FlashWhiteboard.load(), InkAPIBrowser.showFlashView(), DebuggingEnvironment.showFlashView(), and ToolExplorer.ToolExplorer().
void handleCommand | ( | int | clientID, | |
String | command | |||
) |
clientID | ||
command |
Definition at line 143 of file FlashCommunicationServer.java.
Referenced by FlashClient.FlashClient().
void openFlashApolloGUI | ( | File | apolloGUIFile | ) |
Point it to the Apollo exe that will serve as your GUI.
apolloGUIFile |
Definition at line 174 of file FlashCommunicationServer.java.
Referenced by ToolExplorer.ToolExplorer().
void openFlashGUI | ( | File | flashGUIFile | ) |
Currently, we assume the next client connection is for THIS flash GUI.
=) We'll hopefully be able to use this information later.
flashGUIFile | Or perhaps this should be a URL in the future, as the GUI can live online? Launches the flash GUI in a browser. |
Definition at line 159 of file FlashCommunicationServer.java.
Referenced by InkAPIBrowser.showFlashView(), and DebuggingEnvironment.showFlashView().
void sendMessage | ( | String | msg | ) |
msg |
Definition at line 191 of file FlashCommunicationServer.java.
Referenced by FlashWhiteboard.addPen(), FlashWhiteboard.load(), InkAPIBrowser.saveInkFromCurrentFileToDiskAndDisplayIt(), and DebuggingEnvironment.visualize().