|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Event
visad.VisADEvent
visad.DisplayEvent
DisplayEvent is the VisAD class for Events from Display objects. They are sourced by Display objects and received by DisplayListener objects.
| Field Summary | |
static int |
COMPONENT_RESIZED
The "component resized" event. |
static int |
DESTROYED
The "display destroyed" event. |
static int |
FRAME_DONE
The "frame done" event. |
static int |
KEY_PRESSED
The "key pressed" event. |
static int |
KEY_RELEASED
The "key released" event. |
static int |
MAP_ADDED
The "map added" event. |
static int |
MAP_REMOVED
The "map removed" event. |
static int |
MAPS_CLEARED
The "maps cleared" event. |
static int |
MOUSE_DRAGGED
The "mouse dragged" event. |
static int |
MOUSE_ENTERED
The "mouse entered" event. |
static int |
MOUSE_EXITED
The "mouse exited" event. |
static int |
MOUSE_MOVED
The "mouse moved" event. |
static int |
MOUSE_PRESSED
The "mouse pressed" event. |
static int |
MOUSE_PRESSED_CENTER
The "center mouse button pressed" event. |
static int |
MOUSE_PRESSED_LEFT
The "left mouse button pressed" event. |
static int |
MOUSE_PRESSED_RIGHT
The "right mouse button pressed" event. |
static int |
MOUSE_RELEASED
The "mouse released" event. |
static int |
MOUSE_RELEASED_CENTER
The "center mouse button released" event. |
static int |
MOUSE_RELEASED_LEFT
The "left mouse button released" event. |
static int |
MOUSE_RELEASED_RIGHT
The "right mouse button released" event. |
static int |
REFERENCE_ADDED
The "reference added" event. |
static int |
REFERENCE_REMOVED
The "reference removed" event. |
static int |
TRANSFORM_DONE
The "transform done" event. |
static int |
WAIT_OFF
The "display wait off" event. |
static int |
WAIT_ON
The "display wait on" event. |
| Fields inherited from class visad.VisADEvent |
LOCAL_SOURCE, UNKNOWN_REMOTE_SOURCE |
| Fields inherited from class java.awt.Event |
ACTION_EVENT, ALT_MASK, arg, BACK_SPACE, CAPS_LOCK, clickCount, CTRL_MASK, DELETE, DOWN, END, ENTER, ESCAPE, evt, F1, F10, F11, F12, F2, F3, F4, F5, F6, F7, F8, F9, GOT_FOCUS, HOME, INSERT, key, KEY_ACTION, KEY_ACTION_RELEASE, KEY_PRESS, KEY_RELEASE, LEFT, LIST_DESELECT, LIST_SELECT, LOAD_FILE, LOST_FOCUS, META_MASK, modifiers, MOUSE_DOWN, MOUSE_DRAG, MOUSE_ENTER, MOUSE_EXIT, MOUSE_MOVE, MOUSE_UP, NUM_LOCK, PAUSE, PGDN, PGUP, PRINT_SCREEN, RIGHT, SAVE_FILE, SCROLL_ABSOLUTE, SCROLL_BEGIN, SCROLL_END, SCROLL_LINE_DOWN, SCROLL_LINE_UP, SCROLL_LOCK, SCROLL_PAGE_DOWN, SCROLL_PAGE_UP, SHIFT_MASK, TAB, target, UP, when, WINDOW_DEICONIFY, WINDOW_DESTROY, WINDOW_EXPOSE, WINDOW_ICONIFY, WINDOW_MOVED, x, y |
| Constructor Summary | |
DisplayEvent(Display d,
int id_d)
Constructs a DisplayEvent object with the specified source display, and type of event. |
|
DisplayEvent(Display d,
int id_d,
InputEvent e)
Constructs a DisplayEvent object with the specified source display, type of event, and mouse event describing mouse details. |
|
DisplayEvent(Display d,
int id_d,
InputEvent e,
int remoteId)
Constructs a DisplayEvent object with the specified source display, type of event, mouse event describing mouse details, and remote flag indicating whether event came from a remote source. |
|
DisplayEvent(Display d,
int id_d,
int remoteId)
Constructs a DisplayEvent object with the specified source display, and type of event. |
|
DisplayEvent(Display d,
int id_d,
int x,
int y)
Constructs a DisplayEvent object with the specified source display, type of event, and mouse positions where event occurred. |
|
DisplayEvent(Display d,
int id_d,
int x,
int y,
int remoteId)
Constructs a DisplayEvent object with the specified source display, type of event, mouse positions where event occurred, and remote flag indicating whether event came from a remote source. |
|
| Method Summary | |
DisplayEvent |
cloneButDisplay(Display dpy)
|
Display |
getDisplay()
|
protected static Component |
getDisplayComponent(Display d)
get the AWT (including Swing) Component of a Display |
int |
getId()
Get the ID type of this event |
InputEvent |
getInputEvent()
Get the InputEvent associated with this DisplayEvent. |
int |
getKeyCode()
Get the key code for the pressed or released key. |
int |
getModifiers()
Get the keyboard modifiers (such as whether SHIFT or CTRL was being held during the event). |
int |
getX()
Get the horizontal x coordinate for the mouse location. |
int |
getY()
Get the vertical y coordinate for the mouse location. |
String |
toString()
String representation of the event. |
| Methods inherited from class visad.VisADEvent |
getRemoteId, isRemote |
| Methods inherited from class java.awt.Event |
controlDown, metaDown, paramString, shiftDown, translate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int MOUSE_PRESSED
public static final int TRANSFORM_DONE
public static final int FRAME_DONE
public static final int MOUSE_PRESSED_CENTER
public static final int MOUSE_PRESSED_LEFT
public static final int MOUSE_PRESSED_RIGHT
public static final int MOUSE_RELEASED
public static final int MOUSE_RELEASED_CENTER
public static final int MOUSE_RELEASED_LEFT
public static final int MOUSE_RELEASED_RIGHT
public static final int MAP_ADDED
public static final int MAPS_CLEARED
public static final int REFERENCE_ADDED
public static final int REFERENCE_REMOVED
public static final int DESTROYED
public static final int KEY_PRESSED
public static final int KEY_RELEASED
public static final int MOUSE_DRAGGED
public static final int MOUSE_ENTERED
public static final int MOUSE_EXITED
public static final int MOUSE_MOVED
public static final int WAIT_ON
public static final int WAIT_OFF
public static final int MAP_REMOVED
public static final int COMPONENT_RESIZED
| Constructor Detail |
public DisplayEvent(Display d,
int id_d)
d - display that sends the eventid_d - type of DisplayEvent that is sent
public DisplayEvent(Display d,
int id_d,
int remoteId)
d - display that sends the eventid_d - type of DisplayEvent that is sentremoteId - ID of remote source
public DisplayEvent(Display d,
int id_d,
int x,
int y)
d - display that sends the eventid_d - type of DisplayEvent that is sentx - the horizontal x coordinate for the mouse location in
the display componenty - the vertical y coordinate for the mouse location in
the display component
public DisplayEvent(Display d,
int id_d,
InputEvent e)
d - display that sends the eventid_d - type of DisplayEvent that is sente - the InputEvent describing this MOUSE type DisplayEvent
public DisplayEvent(Display d,
int id_d,
int x,
int y,
int remoteId)
d - display that sends the eventid_d - type of DisplayEvent that is sentx - the horizontal x coordinate for the mouse location in
the display componenty - the vertical y coordinate for the mouse location in
the display componentremoteId - ID of remote source
public DisplayEvent(Display d,
int id_d,
InputEvent e,
int remoteId)
d - display that sends the eventid_d - type of DisplayEvent that is sente - the InputEvent describing this MOUSE type DisplayEventremoteId - ID of remote source| Method Detail |
protected static Component getDisplayComponent(Display d)
d - the Display
public DisplayEvent cloneButDisplay(Display dpy)
public Display getDisplay()
public int getId()
public int getX()
public int getY()
public int getKeyCode()
public int getModifiers()
public InputEvent getInputEvent()
public String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||