Class HasFeatureDrag.AbstractSourceFeatureDragEvent
java.lang.Object
java.util.EventObject
io.jmix.mapsflowui.component.model.source.HasFeatureDrag.AbstractSourceFeatureDragEvent
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
HasFeatureDrag.SourceFeatureDragEndEvent,HasFeatureDrag.SourceFeatureDragStartEvent
- Enclosing interface:
- HasFeatureDrag
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Collection<Feature>protected final booleanprotected final org.locationtech.jts.geom.CoordinateFields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionAbstractSourceFeatureDragEvent(Source source, Collection<Feature> features, org.locationtech.jts.geom.Coordinate mouseCoordinate, boolean fromClient) -
Method Summary
Modifier and TypeMethodDescriptionorg.locationtech.jts.geom.CoordinatebooleanChecks if this event originated from the client side.Methods inherited from class java.util.EventObject
toString
-
Field Details
-
features
-
mouseCoordinate
protected final org.locationtech.jts.geom.Coordinate mouseCoordinate -
fromClient
protected final boolean fromClient
-
-
Constructor Details
-
AbstractSourceFeatureDragEvent
public AbstractSourceFeatureDragEvent(Source source, Collection<Feature> features, org.locationtech.jts.geom.Coordinate mouseCoordinate, boolean fromClient)
-
-
Method Details
-
getSource
- Overrides:
getSourcein classEventObject- Returns:
- source that contains dragged features
-
getFeatures
- Returns:
- features 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:
trueif the event originated from the client side,falseotherwise
-