public class

VectorElementClickInfo

extends Object
java.lang.Object
   ↳ com.carto.ui.VectorElementClickInfo

Class Overview

A container class that provides information about a click performed on
a vector element.

Summary

Public Methods
synchronized void delete()
boolean equals(Object obj)
Checks if this object is equal to the specified object.
MapPos getClickPos()
Returns the click position.
ClickType getClickType()
Returns the click type.
MapPos getElementClickPos()
Returns the position on the clicked element, that is close to the click position.
Layer getLayer()
Returns the layer of the clicked vector element.
VectorElement getVectorElement()
Returns the clicked vector element.
int hashCode()
Returns the hash value of this object.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public synchronized void delete ()

public boolean equals (Object obj)

Checks if this object is equal to the specified object.

Parameters
obj The reference object.
Returns
  • True when objects are equal, false otherwise.

public MapPos getClickPos ()

Returns the click position.

Returns
  • The click position in the coordinate system of the data source.

public ClickType getClickType ()

Returns the click type.

Returns
  • The type of the click performed.

public MapPos 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.

public Layer getLayer ()

Returns the layer of the clicked vector element.

Returns
  • The layer of the vector element on which the click was performed.

public VectorElement getVectorElement ()

Returns the clicked vector element.

Returns
  • The vector element on which the click was performed.

public int hashCode ()

Returns the hash value of this object.

Returns
  • The hash value of this object.