Package com.luciad.controllers
Class PanEventHandler
java.lang.Object
com.luciad.controllers.PanEventHandler
- All Implemented Interfaces:
AutoCloseable
Basic gesture handler dedicated to translate drag gesture events to a pan operation.
-
Constructor Details
-
PanEventHandler
public PanEventHandler()Creates a new instance.
-
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
onDragEvent
@NotNull public EventResult onDragEvent(@NotNull DragEvent dragEvent, @NotNull Map map) throws NullPointerException Moves the map's camera following the drag direction.The drag event is consumed only if the sequence of events is the following : a
EventStatus#Startevent, 0 or moreEventStatus#InProgressevent and finally aEventStatus#Endevent. If the sequence is not correct, this method returnsEventResult#NotConsumed.- Parameters:
dragEvent- a drag event. Cannot benull.map- the map. Cannot benull.- Returns:
- whether the drag event was consumed or not.
- Throws:
NullPointerException- when passingnullfor the map or the event.
-
hashCode
public int hashCode() -
equals
-