Loading...
Searching...
No Matches
com.navigine.idl.java.MapObjectPickResult Class Referenceabstract

Class is used to handle information in PickListener. More...

+ Inheritance diagram for com.navigine.idl.java.MapObjectPickResult:

Public Member Functions

abstract LocationPoint getPoint ()
 Location of the picked map object LocationPoint.
 
abstract MapObject getMapObject ()
 Picked map object MapObject.
 

Detailed Description

Class is used to handle information in PickListener.

Referenced from PickListener.

Definition at line 16 of file MapObjectPickResult.java.

Member Function Documentation

◆ getMapObject()

abstract MapObject com.navigine.idl.java.MapObjectPickResult.getMapObject ( )
abstract

Picked map object MapObject.

Returns

Java code snippet:

MapObject mapObject = mapObjectPickResult.getMapObject();
System.out.println(" Object type: " + mapObject.getClass().getSimpleName());

Kotlin code snippet:

val mapObject = mapObjectPickResult.mapObject
println(" Object type: ${mapObject::class.simpleName}")

Reimplemented in com.navigine.idl.java.internal.MapObjectPickResultBinding.

◆ getPoint()

abstract LocationPoint com.navigine.idl.java.MapObjectPickResult.getPoint ( )
abstract

Location of the picked map object LocationPoint.

Returns

Java code snippet:

LocationPoint point = mapObjectPickResult.getPoint();
System.out.println("Map object picked at screen position (" + screenPosition.x + ", " + screenPosition.y + ")");
System.out.println(" Object location: (" + point.getX() + ", " + point.getY() + ")");

Kotlin code snippet:

val point = mapObjectPickResult.point
println("Map object picked at screen position (${screenPosition.x}, ${screenPosition.y})")
println(" Object location: (${point.x}, ${point.y})")

Reimplemented in com.navigine.idl.java.internal.MapObjectPickResultBinding.


The documentation for this class was generated from the following file: