Package com.luciad.input
Class ClickEvent
java.lang.Object
com.luciad.input.ClickEvent
- All Implemented Interfaces:
- IInputEvent,- AutoCloseable
- Direct Known Subclasses:
- MouseClickEvent,- TouchTapEvent
Implementation of 
IInputEvent that represents a click event.
 
 This class contains the location and the click count. The click count is reset if the interval between two clicks exceeds MouseGestureRecognizer#getMultiClickInterval.
- 
Constructor SummaryConstructorsConstructorDescriptionClickEvent(Coordinate location, long clickCount) Creates an event representing a click.ClickEvent(Coordinate location, long clickCount, ModifierKeys modifierKeys) Creates an event representing a click.
- 
Method Summary
- 
Constructor Details- 
ClickEventCreates an event representing a click.- Parameters:
- location- The location of the event, defined in device independent pixels
- clickCount- The number of clicks.
 
- 
ClickEventpublic ClickEvent(@NotNull Coordinate location, long clickCount, @NotNull ModifierKeys modifierKeys) Creates an event representing a click.- Parameters:
- location- The location of the event, defined in device independent pixels
- clickCount- The number of clicks.
- modifierKeys- The modifiers of the event.
 
 
- 
- 
Method Details- 
finalizeprotected void finalize()
- 
closepublic void close()- Specified by:
- closein interface- AutoCloseable
 
- 
getLocationReturns the position of the event.It is expressed in device independent pixel coordinates with top-left corner of the map being the (0,0) position. - Returns:
- the position of the event.
 
- 
getClickCountpublic long getClickCount()Returns the amount of clicks.- Returns:
- the amount of clicks.
- See Also:
 
- 
getModifierKeysReturns the modifiers of the event.- Returns:
- the modifiers of the event.
 
 
-