|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjview.GestureLink
public class GestureLink
This class is the client class to a InputEventLinking instance.
The correct usage could be summarized as:
GestureRobot#setParent(),
using the main GUI frame as its argument. Do this
only after the GUI has been drawn on the screen.getDefaultToolkit().addAWTEventListener).linkTo(java.lang.String)
method, using the Naming path to the gui server.attachTo(java.awt.Component)
which calls
GestureRobot.setClientDimension(java.awt.Dimension) with the actual client size.
Again, take special care of identical layouts.
| Field Summary | |
|---|---|
private Component |
display
This is the component we link up. |
private InputEventLinking |
robot
This is the gesture robot that will mimick our movements. |
| Constructor Summary | |
|---|---|
GestureLink()
Create a new gesture link. |
|
GestureLink(String linkto)
Create a new gesture link and links it to the named server. |
|
| Method Summary | |
|---|---|
boolean |
attachTo(Component c)
We attach this component to the robot on the server side. |
void |
eventDispatched(AWTEvent event)
We relay the event received to the server, it the server can interpret the event. |
void |
exit()
On exit, we remove ourtself from the toolkit as a listener. |
boolean |
linkTo(String server)
We try to look up the server at the given name. |
static void |
main(String[] arg)
In the standalone version we try to connect to a gesture robot bound as the argument. |
private void |
transfer(InputEvent ie)
We savly transfer the input event to a non-null robot. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private InputEventLinking robot
private Component display
| Constructor Detail |
|---|
public GestureLink()
public GestureLink(String linkto)
| Method Detail |
|---|
public void exit()
exit in interface ExitCleaningpublic boolean linkTo(String server)
attachTo(java.awt.Component)
public boolean attachTo(Component c)
public void eventDispatched(AWTEvent event)
eventDispatched in interface AWTEventListenerprivate void transfer(InputEvent ie)
public static void main(String[] arg)
throws RemoteException
RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||