visad
Class ControlEvent

java.lang.Object
  |
  +--java.awt.Event
        |
        +--visad.VisADEvent
              |
              +--visad.ControlEvent

public class ControlEvent
extends VisADEvent

ControlEvent is the VisAD class for changes in Control objects. They are sourced by Control objects and received by ControlListener objects.

See Also:
Serialized Form

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, id, 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
ControlEvent(Control c)
          construct a ControlEvent for Control c and LOCAL_SOURCE
ControlEvent(Control c, int remoteId)
          construct a ControlEvent for Control c and remoteId
 
Method Summary
 Control getControl()
           
 
Methods inherited from class visad.VisADEvent
getRemoteId, isRemote
 
Methods inherited from class java.awt.Event
, consume, controlDown, getKeyEventChar, getOldEventKey, isConsumed, metaDown, paramString, shiftDown, toString, translate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ControlEvent

public ControlEvent(Control c)
construct a ControlEvent for Control c and LOCAL_SOURCE
Parameters:
c - Control associated with this ControlEvent

ControlEvent

public ControlEvent(Control c,
                    int remoteId)
construct a ControlEvent for Control c and remoteId
Parameters:
c - Control associated with this ControlEvent
remoteId - ID for this ControlEvent
Method Detail

getControl

public Control getControl()
Returns:
the Control that sent this ControlEvent (or a copy if the Control was on a different JVM)