public class TLcdActionAtLocationEvent extends ActionEvent
ActionEvent
which specifies a location
where the action occurred. Can be used to trigger an ILcdAction
over a specific point
on the map.ACTION_FIRST, ACTION_LAST, ACTION_PERFORMED, ALT_MASK, CTRL_MASK, META_MASK, SHIFT_MASK
ACTION_EVENT_MASK, ADJUSTMENT_EVENT_MASK, COMPONENT_EVENT_MASK, consumed, CONTAINER_EVENT_MASK, FOCUS_EVENT_MASK, HIERARCHY_BOUNDS_EVENT_MASK, HIERARCHY_EVENT_MASK, id, INPUT_METHOD_EVENT_MASK, INVOCATION_EVENT_MASK, ITEM_EVENT_MASK, KEY_EVENT_MASK, MOUSE_EVENT_MASK, MOUSE_MOTION_EVENT_MASK, MOUSE_WHEEL_EVENT_MASK, PAINT_EVENT_MASK, RESERVED_ID_MAX, TEXT_EVENT_MASK, WINDOW_EVENT_MASK, WINDOW_FOCUS_EVENT_MASK, WINDOW_STATE_EVENT_MASK
source
Constructor and Description |
---|
TLcdActionAtLocationEvent(Object aSource,
Component aComponent,
int aID,
String aCommand,
int aModifiers,
Point aLocation)
Deprecated.
the
aComponent parameter is redundant due to overlap with the event. Use a constructor which doesn't take this parameter instead. |
TLcdActionAtLocationEvent(Object aSource,
Component aComponent,
int aID,
String aCommand,
long aWhen,
int aModifiers,
Point aLocation)
Deprecated.
the
aComponent parameter is redundant due to overlap with the event. Use a constructor which doesn't take this parameter instead. |
TLcdActionAtLocationEvent(Object aSource,
Component aComponent,
int aID,
String aCommand,
Point aLocation)
Deprecated.
the
aComponent parameter is redundant due to overlap with the event. Use a constructor which doesn't take this parameter instead. |
TLcdActionAtLocationEvent(Object aSource,
int aID,
String aCommand,
int aModifiers,
Point aLocation)
Create a new
TLcdActionAtLocationEvent which occurred at time 0. |
TLcdActionAtLocationEvent(Object aSource,
int aID,
String aCommand,
long aWhen,
int aModifiers,
Point aLocation)
Create a new
TLcdActionAtLocationEvent . |
TLcdActionAtLocationEvent(Object aSource,
int aID,
String aCommand,
Point aLocation)
Create a new
TLcdActionAtLocationEvent which occurred at time 0 and with modifiers 0. |
Modifier and Type | Method and Description |
---|---|
Component |
getComponent()
Deprecated.
this property is not being used in practice due to its overlap with the event's source.
|
Point |
getLocation()
Returns the location of the event relative to the event's
source . |
getActionCommand, getModifiers, getWhen, paramString
getSource
public TLcdActionAtLocationEvent(Object aSource, Component aComponent, int aID, String aCommand, long aWhen, int aModifiers, Point aLocation)
aComponent
parameter is redundant due to overlap with the event. Use a constructor which doesn't take this parameter instead.TLcdActionAtLocationEvent
aSource
- the object that originated the eventaComponent
- the Component on which the event occurredaID
- an integer that identifies the eventaCommand
- a string that may specify a command (possibly one of several) associated with
the eventaWhen
- the time the event occurredaModifiers
- the modifier keys held down during this actionaLocation
- the location of the event relative to aComponent
IllegalArgumentException
- if aSource
or aComponent
is nullpublic TLcdActionAtLocationEvent(Object aSource, Component aComponent, int aID, String aCommand, int aModifiers, Point aLocation)
aComponent
parameter is redundant due to overlap with the event. Use a constructor which doesn't take this parameter instead.TLcdActionAtLocationEvent
which occurred at time 0aSource
- the object that originated the eventaComponent
- the component on which the event occurredaID
- an integer that identifies the eventaCommand
- a string that may specify a command (possibly one of several) associated with
the eventaModifiers
- the modifier keys held down during this actionaLocation
- the location of the event relative to aComponent
IllegalArgumentException
- if aSource
or aComponent
is nullTLcdActionAtLocationEvent(Object, java.awt.Component, int, String, int, java.awt.Point)
public TLcdActionAtLocationEvent(Object aSource, Component aComponent, int aID, String aCommand, Point aLocation)
aComponent
parameter is redundant due to overlap with the event. Use a constructor which doesn't take this parameter instead.TLcdActionAtLocationEvent
which occurred at time 0 and with modifiers
0aSource
- the object that originated the eventaComponent
- the Component on which the event occurredaID
- an integer that identifies the eventaCommand
- a string that may specify a command (possibly one of several) associated with
the eventaLocation
- the location of the event relative to aComponent
IllegalArgumentException
- if aSource
or aComponent
is nullTLcdActionAtLocationEvent(Object, java.awt.Component, int, String, int, java.awt.Point)
public TLcdActionAtLocationEvent(Object aSource, int aID, String aCommand, long aWhen, int aModifiers, Point aLocation)
TLcdActionAtLocationEvent
.aSource
- the object that originated the event, typically an AWT component or JavaFX nodeaID
- an integer that identifies the eventaCommand
- a string that may specify a command (possibly one of several) associated with
the eventaWhen
- the time the event occurredaModifiers
- the modifier keys held down during this actionaLocation
- the location of the event relative to aSource
IllegalArgumentException
- if aSource
is nullpublic TLcdActionAtLocationEvent(Object aSource, int aID, String aCommand, int aModifiers, Point aLocation)
TLcdActionAtLocationEvent
which occurred at time 0.aSource
- the object that originated the event, typically an AWT component or JavaFX nodeaID
- an integer that identifies the eventaCommand
- a string that may specify a command (possibly one of several) associated with
the eventaModifiers
- the modifier keys held down during this actionaLocation
- the location of the event relative to aSource
IllegalArgumentException
- if aSource
is nullTLcdActionAtLocationEvent(Object, int, String, int, java.awt.Point)
public TLcdActionAtLocationEvent(Object aSource, int aID, String aCommand, Point aLocation)
TLcdActionAtLocationEvent
which occurred at time 0 and with modifiers 0.aSource
- the object that originated the event, typically an AWT component or JavaFX nodeaID
- an integer that identifies the eventaCommand
- a string that may specify a command (possibly one of several) associated with
the eventaLocation
- the location of the event relative to aSource
IllegalArgumentException
- if aSource
is nullTLcdActionAtLocationEvent(Object, int, String, int, java.awt.Point)
public Point getLocation()
source
.EventObject.getSource()
public Component getComponent()