Loading...
Searching...
No Matches
com.navigine.idl.java.internal.ClusterMapObjectBinding Class Reference
+ Inheritance diagram for com.navigine.idl.java.internal.ClusterMapObjectBinding:

Public Member Functions

native boolean isValid ()
 
boolean setBitmap (com.navigine.image.ImageProvider bitmap)
 Method is used to specify the decoded raster for the cluster marker.
 
void addListener (ClusterMapObjectListener listener)
 Adds a listener for cluster state updates ClusterMapObjectListener.
 
void removeListener (ClusterMapObjectListener listener)
 Removes a previously added listener.
 
LocationPoint getPosition ()
 Cluster center in metrics coordinates.
 
int getCount ()
 Number of icon map objects in the cluster (at least 2 while the cluster is visible).
 
ArrayList< IconMapObjectgetIconMapObjects ()
 Icon map objects currently grouped into this cluster.
 
int getId ()
 Gets the unique identifier of the map object.
 
MapObjectType getType ()
 Gets the type of the map object.
 
byte[] getData ()
 Gets the user-defined data associated with the map object.
 
boolean setVisible (boolean visible)
 Method is used to specify the visibility of the map object.
 
boolean setInteractive (boolean interactive)
 Method is used to specify whether the map object can be interacted with.
 
void setData (byte[] data)
 Method is used to set user-defined data for the map object.
 
boolean setTitle (String title)
 Method is used to set the title of the map object.
 
boolean setAlpha (float alpha)
 Method is used to set the opacity of the map object.
 

Protected Attributes

Subscription< ClusterMapObjectListenerweakClusterMapObjectListenerSubscription
 

Detailed Description

Definition at line 16 of file ClusterMapObjectBinding.java.

Member Function Documentation

◆ addListener()

void com.navigine.idl.java.internal.ClusterMapObjectBinding.addListener ( ClusterMapObjectListener listener)
inline

Adds a listener for cluster state updates ClusterMapObjectListener.

Parameters
listenerListener instance.

Java code snippet:

cluster.addListener(clusterChangeListener);
System.out.println("Added cluster change listener, initial count: " + cluster.getCount());

Kotlin code snippet:

cluster.addListener(clusterChangeListener)
println("Added cluster change listener, initial count: ${cluster.count}")

Reimplemented from com.navigine.idl.java.ClusterMapObject.

Definition at line 46 of file ClusterMapObjectBinding.java.

◆ getCount()

int com.navigine.idl.java.internal.ClusterMapObjectBinding.getCount ( )
inline

Number of icon map objects in the cluster (at least 2 while the cluster is visible).

Returns

Reimplemented from com.navigine.idl.java.ClusterMapObject.

Definition at line 67 of file ClusterMapObjectBinding.java.

◆ getData()

byte[] com.navigine.idl.java.internal.ClusterMapObjectBinding.getData ( )
inline

Gets the user-defined data associated with the map object.

Returns
The data stored in the map object.

Java code snippet:

// Get custom data
Map<String, String> retrievedData = circleMapObject.getData();
System.out.println("Circle custom data: " + retrievedData);

Kotlin code snippet:

// Get custom data
val retrievedData = circleMapObject!!.data
println("Circle custom data: $retrievedData")

Reimplemented from com.navigine.idl.java.MapObject.

Definition at line 97 of file ClusterMapObjectBinding.java.

◆ getIconMapObjects()

ArrayList< IconMapObject > com.navigine.idl.java.internal.ClusterMapObjectBinding.getIconMapObjects ( )
inline

Icon map objects currently grouped into this cluster.

Returns

Reimplemented from com.navigine.idl.java.ClusterMapObject.

Definition at line 74 of file ClusterMapObjectBinding.java.

◆ getId()

int com.navigine.idl.java.internal.ClusterMapObjectBinding.getId ( )
inline

Gets the unique identifier of the map object.

Returns
The unique identifier of the map object.

Java code snippet:

// Get object ID
int objectId = circleMapObject.getId();
System.out.println("Circle object ID: " + objectId);

Kotlin code snippet:

// Get object ID
val objectId = circleMapObject!!.id
println("Circle object ID: $objectId")

Reimplemented from com.navigine.idl.java.MapObject.

Definition at line 83 of file ClusterMapObjectBinding.java.

◆ getPosition()

LocationPoint com.navigine.idl.java.internal.ClusterMapObjectBinding.getPosition ( )
inline

Cluster center in metrics coordinates.

Returns

Reimplemented from com.navigine.idl.java.ClusterMapObject.

Definition at line 60 of file ClusterMapObjectBinding.java.

◆ getType()

MapObjectType com.navigine.idl.java.internal.ClusterMapObjectBinding.getType ( )
inline

Gets the type of the map object.

Returns
The type of the map object MapObjectType.

Java code snippet:

// Get object type
String objectTypeString = circleMapObject.getType();
System.out.println("Circle object type: " + objectTypeString);

Kotlin code snippet:

// Get object type
val objectTypeString = circleMapObject!!.type
println("Circle object type: $objectTypeString")

Reimplemented from com.navigine.idl.java.MapObject.

Definition at line 90 of file ClusterMapObjectBinding.java.

◆ isValid()

native boolean com.navigine.idl.java.internal.ClusterMapObjectBinding.isValid ( )

Tells if this ClusterMapObject is valid or not. Any other method (except for this one) called on an invalid ClusterMapObject will throw java.lang.RuntimeException.

Reimplemented from com.navigine.idl.java.ClusterMapObject.

◆ removeListener()

void com.navigine.idl.java.internal.ClusterMapObjectBinding.removeListener ( ClusterMapObjectListener listener)
inline

Removes a previously added listener.

Parameters
listenerListener instance to remove.

Java code snippet:

activeCluster.removeListener(clusterChangeListener);
System.out.println("Removed cluster change listener");

Kotlin code snippet:

cluster.removeListener(clusterChangeListener)
println("Removed cluster change listener")

Reimplemented from com.navigine.idl.java.ClusterMapObject.

Definition at line 53 of file ClusterMapObjectBinding.java.

◆ setAlpha()

boolean com.navigine.idl.java.internal.ClusterMapObjectBinding.setAlpha ( float alpha)
inline

Method is used to set the opacity of the map object.

Parameters
alphaOpacity multiplier. Values below 0 will be set to 0. Values above 1 will be set to 1. Default: 1.
Returns
true if the operation is successful, false otherwise.

Java code snippet:

// Set alpha transparency
boolean alphaSuccess = circleMapObject.setAlpha(0.7);
System.out.println("Set circle alpha to 0.7: " + alphaSuccess);

Kotlin code snippet:

// Set alpha transparency
val alphaSuccess = circleMapObject!!.setAlpha(0.7)
println("Set circle alpha to 0.7: $alphaSuccess")

Reimplemented from com.navigine.idl.java.MapObject.

Definition at line 132 of file ClusterMapObjectBinding.java.

◆ setBitmap()

boolean com.navigine.idl.java.internal.ClusterMapObjectBinding.setBitmap ( com.navigine.image.ImageProvider bitmap)
inline

Method is used to specify the decoded raster for the cluster marker.

Parameters
bitmapImage provider: Android com.navigine.image.ImageProvider; iOS UIImage via binding; Flutter navigine_sdk ImageProvider.
Returns
true if the operation is successful, false otherwise.

Java code snippet:

ImageProvider clusterBitmap = ImageProvider.fromFile("/path/to/cluster.png", true);
boolean bitmapSuccess = cluster.setBitmap(clusterBitmap);
System.out.println("Set cluster bitmap from ImageProvider: " + bitmapSuccess);

Kotlin code snippet:

val clusterBitmap = ImageProvider.fromFile("/path/to/cluster.png", true)
val bitmapSuccess = cluster.setBitmap(clusterBitmap)
println("Set cluster bitmap from ImageProvider: $bitmapSuccess")

Reimplemented from com.navigine.idl.java.ClusterMapObject.

Definition at line 39 of file ClusterMapObjectBinding.java.

◆ setData()

void com.navigine.idl.java.internal.ClusterMapObjectBinding.setData ( byte[] data)
inline

Method is used to set user-defined data for the map object.

Parameters
dataData to store in the map object.

Java code snippet:

// Set custom data
Map<String, String> customData = new HashMap<>();
customData.put("key", "value");
customData.put("number", "42");
boolean dataSuccess = circleMapObject.setData(customData);
System.out.println("Set circle custom data: " + dataSuccess);

Kotlin code snippet:

// Set custom data
val customData = mapOf("key" to "value", "number" to "42")
val dataSuccess = circleMapObject!!.setData(customData)
println("Set circle custom data: $dataSuccess")

Reimplemented from com.navigine.idl.java.MapObject.

Definition at line 118 of file ClusterMapObjectBinding.java.

◆ setInteractive()

boolean com.navigine.idl.java.internal.ClusterMapObjectBinding.setInteractive ( boolean interactive)
inline

Method is used to specify whether the map object can be interacted with.

Parameters
interactiveSpecifies whether the object can be picked in the pickMapObjectAt method (true) or not (false). Default: false.
Returns
true if the operation is successful, false otherwise.

Java code snippet:

// Set interactive mode
boolean interactiveSuccess = circleMapObject.setInteractive(true);
System.out.println("Set circle interactive to true: " + interactiveSuccess);

Kotlin code snippet:

// Set interactive mode
val interactiveSuccess = circleMapObject!!.setInteractive(true)
println("Set circle interactive to true: $interactiveSuccess")

Reimplemented from com.navigine.idl.java.MapObject.

Definition at line 111 of file ClusterMapObjectBinding.java.

◆ setTitle()

boolean com.navigine.idl.java.internal.ClusterMapObjectBinding.setTitle ( String title)
inline

Method is used to set the title of the map object.

Parameters
titleThe title to display on the location view.
Returns
true if the operation is successful, false otherwise.

Java code snippet:

// Set title
boolean titleSuccess = circleMapObject.setTitle("Circle Object");
System.out.println("Set circle title to 'Circle Object': " + titleSuccess);

Kotlin code snippet:

// Set title
val titleSuccess = circleMapObject!!.setTitle("Circle Object")
println("Set circle title to 'Circle Object': $titleSuccess")

Reimplemented from com.navigine.idl.java.MapObject.

Definition at line 125 of file ClusterMapObjectBinding.java.

◆ setVisible()

boolean com.navigine.idl.java.internal.ClusterMapObjectBinding.setVisible ( boolean visible)
inline

Method is used to specify the visibility of the map object.

Parameters
visibleSpecifies whether the object is visible (true) or hidden (false). Default: true.
Returns
true if the operation is successful, false otherwise.

Java code snippet:

// Set visibility
boolean visibleSuccess = circleMapObject.setVisible(true);
System.out.println("Set circle visibility to true: " + visibleSuccess);

Kotlin code snippet:

// Set visibility
val visibleSuccess = circleMapObject!!.setVisible(true)
println("Set circle visibility to true: $visibleSuccess")

Reimplemented from com.navigine.idl.java.MapObject.

Definition at line 104 of file ClusterMapObjectBinding.java.

Member Data Documentation

◆ weakClusterMapObjectListenerSubscription

Subscription<ClusterMapObjectListener> com.navigine.idl.java.internal.ClusterMapObjectBinding.weakClusterMapObjectListenerSubscription
protected
Initial value:
= new Subscription<ClusterMapObjectListener>() {
@Override
public NativeObject createNativeListener(ClusterMapObjectListener listener) {
return createClusterMapObjectListener(listener);
}
}

Definition at line 25 of file ClusterMapObjectBinding.java.


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