Class HasGeoObjectDrag.AbstractSourceGeoObjectDragEvent<E>
java.lang.Object
java.util.EventObject
io.jmix.mapsflowui.component.model.source.HasGeoObjectDrag.AbstractSourceGeoObjectDragEvent<E>
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
HasGeoObjectDrag.SourceGeoObjectDragEndEvent
,HasGeoObjectDrag.SourceGeoObjectDragStartEvent
- Enclosing interface:
- HasGeoObjectDrag<E>
public abstract static class HasGeoObjectDrag.AbstractSourceGeoObjectDragEvent<E>
extends EventObject
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final boolean
protected final Collection<E>
protected final org.locationtech.jts.geom.Coordinate
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractSourceGeoObjectDragEvent
(Source source, Collection<E> items, org.locationtech.jts.geom.Coordinate mouseCoordinate, boolean fromClient) -
Method Summary
Modifier and TypeMethodDescriptiongetItems()
org.locationtech.jts.geom.Coordinate
boolean
Checks if this event originated from the client side.Methods inherited from class java.util.EventObject
toString
-
Field Details
-
items
-
mouseCoordinate
protected final org.locationtech.jts.geom.Coordinate mouseCoordinate -
fromClient
protected final boolean fromClient
-
-
Constructor Details
-
AbstractSourceGeoObjectDragEvent
public AbstractSourceGeoObjectDragEvent(Source source, Collection<E> items, org.locationtech.jts.geom.Coordinate mouseCoordinate, boolean fromClient)
-
-
Method Details
-
getSource
- Overrides:
getSource
in classEventObject
- Returns:
- source that contains dragged items
-
getItems
- Returns:
- items that are participating in dragging
-
getMouseCoordinate
public org.locationtech.jts.geom.Coordinate getMouseCoordinate()- Returns:
- mouse position on a map
-
isFromClient
public boolean isFromClient()Checks if this event originated from the client side.- Returns:
true
if the event originated from the client side,false
otherwise
-