visad
Class ScalarMapEvent
- java.lang.Object
-
- java.awt.Event
-
- visad.VisADEvent
-
- visad.ScalarMapEvent
-
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- ScalarMapControlEvent
public class ScalarMapEvent extends VisADEvent
ScalarMapEventis the VisAD class forEvents fromScalarMapobjects. They are sourced byScalarMapobjects and received byScalarMapListenerobjects.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static intAUTO_SCALEstatic intCONTROL_ADDEDstatic intCONTROL_REMOVEDstatic intCONTROL_REPLACEDstatic intMANUALstatic intUNKNOWNvalues for id-
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
Constructors Constructor and Description ScalarMapEvent(ScalarMap map, boolean auto)Deprecated.- Explicitly cite the event ID using theScalarMapEvent(ScalarMap map, int id)constructor.ScalarMapEvent(ScalarMap map, int id)Create aScalarMapeventScalarMapEvent(ScalarMap map, int id, int remoteId)Create aScalarMapevent
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetId()Get the ID type of this event.java.lang.StringgetIdString()Get the ID type of this event as a StringScalarMapgetScalarMap()Get the ScalarMap that sent this ScalarMapEvent (or a copy if the ScalarMap was on a different JVM)java.lang.StringtoString()-
Methods inherited from class visad.VisADEvent
getRemoteId, isRemote
-
-
-
-
Field Detail
-
UNKNOWN
public static final int UNKNOWN
values for id- See Also:
- Constant Field Values
-
AUTO_SCALE
public static final int AUTO_SCALE
- See Also:
- Constant Field Values
-
MANUAL
public static final int MANUAL
- See Also:
- Constant Field Values
-
CONTROL_ADDED
public static final int CONTROL_ADDED
- See Also:
- Constant Field Values
-
CONTROL_REMOVED
public static final int CONTROL_REMOVED
- See Also:
- Constant Field Values
-
CONTROL_REPLACED
public static final int CONTROL_REPLACED
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ScalarMapEvent
public ScalarMapEvent(ScalarMap map, int id)
Create aScalarMapevent- Parameters:
map- map to which this event refersid- the event type.
-
ScalarMapEvent
public ScalarMapEvent(ScalarMap map, int id, int remoteId)
Create aScalarMapevent- Parameters:
map- map to which this event refersid- the event type.
-
ScalarMapEvent
public ScalarMapEvent(ScalarMap map, boolean auto)
Deprecated. - Explicitly cite the event ID using theScalarMapEvent(ScalarMap map, int id)constructor.Create aScalarMapevent- Parameters:
map- map to which this event refersauto-trueif this is an AUTO_SCALE eventfalseif it's a MANUAL event.
-
-
Method Detail
-
getScalarMap
public ScalarMap getScalarMap()
Get the ScalarMap that sent this ScalarMapEvent (or a copy if the ScalarMap was on a different JVM)- Returns:
- the
ScalarMap
-
getId
public int getId()
Get the ID type of this event.- Returns:
ScalarMapEventtype. Valid types are:- ScalarMapEvent.AUTO_SCALE
- ScalarMapEvent.MANUAL
- ScalarMapEvent.CONTROL_ADDED
- ScalarMapEvent.CONTROL_REMOVED
- ScalarMapEvent.CONTROL_REPLACED
-
getIdString
public java.lang.String getIdString()
Get the ID type of this event as a String- Returns:
- The event type string.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.awt.Event
-
-
DMelt 3.0 © DataMelt by jWork.ORG