public class DisplayEvent extends VisADEvent
Modifier and Type | Field and Description |
---|---|
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.
|
LOCAL_SOURCE, UNKNOWN_REMOTE_SOURCE
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 and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getRemoteId, isRemote
controlDown, metaDown, paramString, shiftDown, translate
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
public DisplayEvent(Display d, int id_d)
d
- display that sends the eventid_d
- type of DisplayEvent that is sentpublic DisplayEvent(Display d, int id_d, int remoteId)
d
- display that sends the eventid_d
- type of DisplayEvent that is sentremoteId
- ID of remote sourcepublic 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 componentpublic 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 DisplayEventpublic 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 sourcepublic 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 sourceprotected static Component getDisplayComponent(Display d)
d
- the Displaypublic 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()
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.