Package com.luciad.gui
Class TLcdActionAtLocationEvent
java.lang.Object
java.util.EventObject
java.awt.AWTEvent
java.awt.event.ActionEvent
com.luciad.gui.TLcdActionAtLocationEvent
- All Implemented Interfaces:
Serializable
Extension of
ActionEvent
which specifies a location
where the action occurred. Can be used to trigger an ILcdAction
over a specific point
on the map.- Since:
- 10.0
- See Also:
-
Field Summary
Fields inherited from class java.awt.event.ActionEvent
ACTION_FIRST, ACTION_LAST, ACTION_PERFORMED, ALT_MASK, CTRL_MASK, META_MASK, SHIFT_MASK
Fields inherited from class java.awt.AWTEvent
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
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionTLcdActionAtLocationEvent
(Object aSource, int aID, String aCommand, int aModifiers, Point aLocation) Create a newTLcdActionAtLocationEvent
which occurred at time 0.TLcdActionAtLocationEvent
(Object aSource, int aID, String aCommand, long aWhen, int aModifiers, Point aLocation) Create a newTLcdActionAtLocationEvent
.TLcdActionAtLocationEvent
(Object aSource, int aID, String aCommand, Point aLocation) Create a newTLcdActionAtLocationEvent
which occurred at time 0 and with modifiers 0.TLcdActionAtLocationEvent
(Object aSource, Component aComponent, int aID, String aCommand, int aModifiers, Point aLocation) Deprecated.TLcdActionAtLocationEvent
(Object aSource, Component aComponent, int aID, String aCommand, long aWhen, int aModifiers, Point aLocation) Deprecated.theaComponent
parameter is redundant due to overlap with the event.TLcdActionAtLocationEvent
(Object aSource, Component aComponent, int aID, String aCommand, Point aLocation) Deprecated.theaComponent
parameter is redundant due to overlap with the event. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.this property is not being used in practice due to its overlap with the event's source.Returns the location of the event relative to the event'ssource
.Methods inherited from class java.awt.event.ActionEvent
getActionCommand, getModifiers, getWhen, paramString
Methods inherited from class java.util.EventObject
getSource
-
Constructor Details
-
TLcdActionAtLocationEvent
public TLcdActionAtLocationEvent(Object aSource, Component aComponent, int aID, String aCommand, long aWhen, int aModifiers, Point aLocation) Deprecated.theaComponent
parameter is redundant due to overlap with the event. Use a constructor which doesn't take this parameter instead.Create a newTLcdActionAtLocationEvent
- Parameters:
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 toaComponent
- Throws:
IllegalArgumentException
- ifaSource
oraComponent
is null
-
TLcdActionAtLocationEvent
public TLcdActionAtLocationEvent(Object aSource, Component aComponent, int aID, String aCommand, int aModifiers, Point aLocation) Deprecated.theaComponent
parameter is redundant due to overlap with the event. Use a constructor which doesn't take this parameter instead.Create a newTLcdActionAtLocationEvent
which occurred at time 0- Parameters:
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 eventaModifiers
- the modifier keys held down during this actionaLocation
- the location of the event relative toaComponent
- Throws:
IllegalArgumentException
- ifaSource
oraComponent
is null- See Also:
-
TLcdActionAtLocationEvent
public TLcdActionAtLocationEvent(Object aSource, Component aComponent, int aID, String aCommand, Point aLocation) Deprecated.theaComponent
parameter is redundant due to overlap with the event. Use a constructor which doesn't take this parameter instead.Create a newTLcdActionAtLocationEvent
which occurred at time 0 and with modifiers 0- Parameters:
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 eventaLocation
- the location of the event relative toaComponent
- Throws:
IllegalArgumentException
- ifaSource
oraComponent
is null- See Also:
-
TLcdActionAtLocationEvent
public TLcdActionAtLocationEvent(Object aSource, int aID, String aCommand, long aWhen, int aModifiers, Point aLocation) Create a newTLcdActionAtLocationEvent
.- Parameters:
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 toaSource
- Throws:
IllegalArgumentException
- ifaSource
is null- Since:
- 2020.0
-
TLcdActionAtLocationEvent
public TLcdActionAtLocationEvent(Object aSource, int aID, String aCommand, int aModifiers, Point aLocation) Create a newTLcdActionAtLocationEvent
which occurred at time 0.- Parameters:
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 toaSource
- Throws:
IllegalArgumentException
- ifaSource
is null- Since:
- 2020.0
- See Also:
-
TLcdActionAtLocationEvent
Create a newTLcdActionAtLocationEvent
which occurred at time 0 and with modifiers 0.- Parameters:
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 toaSource
- Throws:
IllegalArgumentException
- ifaSource
is null- Since:
- 2020.0
- See Also:
-
-
Method Details
-
getLocation
Returns the location of the event relative to the event'ssource
.- Returns:
- the location of the event relative to the event's source
- See Also:
-
getComponent
Deprecated.this property is not being used in practice due to its overlap with the event's source.Returns the component on which the event occurred.- Returns:
- the component on which the event occurred
-
aComponent
parameter is redundant due to overlap with the event.