Package com.massifmaps.ui
Class VectorElementClickInfo
java.lang.Object
com.massifmaps.ui.VectorElementClickInfo
A container class that provides information about a click performed on
a vector element.
a vector element.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if this object is equal to the specified object.Returns the click info.Returns the click position.intReturns the click type.Returns the position on the clicked element, that is close to the click position.
For points it will always be the center position, for lines it will be the closest point
on the line, for billboards it will be the anchor point and for polygons it's equal to
getClickPos().getLayer()Returns the layer of the clicked vector element.Returns the clicked vector element.inthashCode()Returns the hash value of this object.
-
Method Details
-
equals
Checks if this object is equal to the specified object. -
hashCode
public int hashCode()Returns the hash value of this object. -
getClickType
public int getClickType()Returns the click type.- Returns:
- The type of the click performed.
-
getClickInfo
Returns the click info.- Returns:
- The attributes of the click.
-
getClickPos
Returns the click position.- Returns:
- The click position in the coordinate system of the data source.
-
getElementClickPos
Returns the position on the clicked element, that is close to the click position.
For points it will always be the center position, for lines it will be the closest point
on the line, for billboards it will be the anchor point and for polygons it's equal to
getClickPos().- Returns:
- The element click position in the coordinate system of the data source.
-
getVectorElement
Returns the clicked vector element.- Returns:
- The vector element on which the click was performed.
-
getLayer
Returns the layer of the clicked vector element.- Returns:
- The layer of the vector element on which the click was performed.
-