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

Public Member Functions

native boolean isValid ()
 
boolean setPosition (LocationPoint point)
 Method is used to specify the center of the icon.
 
boolean setPositionAnimated (LocationPoint point, float duration, AnimationType type)
 Method is used to move the center of the icon with the specified animation.
 
boolean setBitmap (com.navigine.image.ImageProvider bitmap)
 Method is used to specify the decoded raster for the icon.
 
boolean setSize (float width, float height)
 Method is used to specify the size of the icon.
 
boolean setCollisionEnabled (boolean enabled)
 Method is used to enable or disable collision detection for the icon.
 
boolean setAngle (float angle)
 Method is used to specify the rotation angle of the icon.
 
boolean setAngleAnimated (float angle, float duration, AnimationType type)
 Method is used to rotate the icon with the specified animation.
 
boolean setBuffer (float width, float height)
 Method is used to specify the buffer size around the icon for collision detection.
 
boolean setOffset (float width, float height)
 Method is used to specify an offset for the icon’s anchor on screen.
 
boolean setPriority (float priority)
 Method is used to specify the priority of the icon.
 
boolean setFlat (boolean flat)
 Method is used to specify whether the icon is flat or billboarded.
 
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.
 

Detailed Description

Definition at line 13 of file IconMapObjectBinding.java.

Member Function Documentation

◆ getData()

byte[] com.navigine.idl.java.internal.IconMapObjectBinding.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 121 of file IconMapObjectBinding.java.

◆ getId()

int com.navigine.idl.java.internal.IconMapObjectBinding.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 107 of file IconMapObjectBinding.java.

◆ getType()

MapObjectType com.navigine.idl.java.internal.IconMapObjectBinding.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 114 of file IconMapObjectBinding.java.

◆ isValid()

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

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

Reimplemented from com.navigine.idl.java.IconMapObject.

◆ setAlpha()

boolean com.navigine.idl.java.internal.IconMapObjectBinding.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 156 of file IconMapObjectBinding.java.

◆ setAngle()

boolean com.navigine.idl.java.internal.IconMapObjectBinding.setAngle ( float angle)
inline

Method is used to specify the rotation angle of the icon.

Parameters
angleRotation angle in degrees. Default: 0.
Returns
true if the operation is successful, false otherwise.

Java code snippet:

// Set icon rotation angle
boolean angleSuccess = iconMapObject.setAngle(45.0);
System.out.println("Set icon rotation angle to 45 degrees: " + angleSuccess);

Kotlin code snippet:

// Set icon rotation angle
val angleSuccess = iconMapObject!!.setAngle(45.0)
println("Set icon rotation angle to 45 degrees: $angleSuccess")

Reimplemented from com.navigine.idl.java.IconMapObject.

Definition at line 63 of file IconMapObjectBinding.java.

◆ setAngleAnimated()

boolean com.navigine.idl.java.internal.IconMapObjectBinding.setAngleAnimated ( float angle,
float duration,
AnimationType type )
inline

Method is used to rotate the icon with the specified animation.

Parameters
angleRotation angle in degrees.
durationAnimation duration in seconds.
typeAnimation type AnimationType.
Returns
true if the operation is successful, false otherwise.

Java code snippet:

// Set icon rotation with animation
boolean angleAnimatedSuccess = iconMapObject.setAngleAnimated(90.0, 2.0, AnimationType.SINE);
System.out.println("Set icon rotation with animation to 90 degrees: " + angleAnimatedSuccess);

Kotlin code snippet:

// Set icon rotation with animation
val angleAnimatedSuccess = iconMapObject!!.setAngleAnimated(90.0, 2.0, AnimationType.SINE)
println("Set icon rotation with animation to 90 degrees: $angleAnimatedSuccess")

Reimplemented from com.navigine.idl.java.IconMapObject.

Definition at line 70 of file IconMapObjectBinding.java.

◆ setBitmap()

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

Method is used to specify the decoded raster for the icon.

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:

// Icon pixels come from an ImageProvider (ARGB_8888 Bitmap on Android).
ImageProvider iconBitmap = ImageProvider.fromFile("/path/to/icon.png", true);
boolean bitmapSuccess = iconMapObject.setBitmap(iconBitmap);
System.out.println("Set icon from ImageProvider: " + bitmapSuccess);

Kotlin code snippet:

val iconBitmap = ImageProvider.fromFile("/path/to/icon.png", true)
val bitmapSuccess = iconMapObject!!.setBitmap(iconBitmap)
println("Set icon from ImageProvider: $bitmapSuccess")

Reimplemented from com.navigine.idl.java.IconMapObject.

Definition at line 42 of file IconMapObjectBinding.java.

◆ setBuffer()

boolean com.navigine.idl.java.internal.IconMapObjectBinding.setBuffer ( float width,
float height )
inline

Method is used to specify the buffer size around the icon for collision detection.

Parameters
widthWidth of the buffer in pixels. Default: 0.
heightHeight of the buffer in pixels. Default: 0.
Returns
true if the operation is successful, false otherwise.

Java code snippet:

// Set collision buffer
boolean bufferSuccess = iconMapObject.setBuffer(10.0, 10.0);
System.out.println("Set collision buffer to 10x10 pixels: " + bufferSuccess);

Kotlin code snippet:

Reimplemented from com.navigine.idl.java.IconMapObject.

Definition at line 77 of file IconMapObjectBinding.java.

◆ setCollisionEnabled()

boolean com.navigine.idl.java.internal.IconMapObjectBinding.setCollisionEnabled ( boolean enabled)
inline

Method is used to enable or disable collision detection for the icon.

Parameters
enabledSpecifies whether collision detection is enabled (true) or disabled (false). Default: false.
Returns
true if the operation is successful, false otherwise.

Java code snippet:

// Enable collision detection
boolean collisionSuccess = iconMapObject.setCollisionEnabled(true);
System.out.println("Enabled collision detection for icon: " + collisionSuccess);

Kotlin code snippet:

// Enable collision detection
val collisionSuccess = iconMapObject!!.setCollisionEnabled(true)
println("Enabled collision detection for icon: $collisionSuccess")

Reimplemented from com.navigine.idl.java.IconMapObject.

Definition at line 56 of file IconMapObjectBinding.java.

◆ setData()

void com.navigine.idl.java.internal.IconMapObjectBinding.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 142 of file IconMapObjectBinding.java.

◆ setFlat()

boolean com.navigine.idl.java.internal.IconMapObjectBinding.setFlat ( boolean flat)
inline

Method is used to specify whether the icon is flat or billboarded.

Parameters
flatIf true, the icon aligns with the location view surface; if false, it maintains orientation to the screen surface. Default: false.
Returns
true if the operation is successful, false otherwise.

Java code snippet:

// Set icon flat mode
boolean flatSuccess = iconMapObject.setFlat(true);
System.out.println("Set icon flat mode to true: " + flatSuccess);

Kotlin code snippet:

// Set icon flat mode
val flatSuccess = iconMapObject!!.setFlat(true)
println("Set icon flat mode to true: $flatSuccess")

Reimplemented from com.navigine.idl.java.IconMapObject.

Definition at line 98 of file IconMapObjectBinding.java.

◆ setInteractive()

boolean com.navigine.idl.java.internal.IconMapObjectBinding.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 135 of file IconMapObjectBinding.java.

◆ setOffset()

boolean com.navigine.idl.java.internal.IconMapObjectBinding.setOffset ( float width,
float height )
inline

Method is used to specify an offset for the icon’s anchor on screen.

Parameters
widthHorizontal offset in pixels.
heightVertical offset in pixels.
Returns
true if the operation is successful, false otherwise.

Java code snippet:

// Set position offset
boolean offsetSuccess = iconMapObject.setOffset(0.0, -16.0);
System.out.println("Set position offset to (0.0, -16.0) pixels: " + offsetSuccess);

Kotlin code snippet:

Reimplemented from com.navigine.idl.java.IconMapObject.

Definition at line 84 of file IconMapObjectBinding.java.

◆ setPosition()

boolean com.navigine.idl.java.internal.IconMapObjectBinding.setPosition ( LocationPoint point)
inline

Method is used to specify the center of the icon.

Parameters
pointMetrics coordinates of the center LocationPoint.
Returns
true if the operation is successful, false otherwise.

Java code snippet:

// Set icon position
LocationPoint iconPoint = new LocationPoint(200.0, 300.0);
boolean success = iconMapObject.setPosition(iconPoint);
System.out.println("Set icon position to (" + iconPoint.getX() + ", " + iconPoint.getY() + "): " + success);

Kotlin code snippet:

// Set icon position
val position = LocationPoint(30.0, 40.0)
val success = iconMapObject!!.setPosition(position)
println("Set icon position to (${position.x}, ${position.y}): $success")

Reimplemented from com.navigine.idl.java.IconMapObject.

Definition at line 28 of file IconMapObjectBinding.java.

◆ setPositionAnimated()

boolean com.navigine.idl.java.internal.IconMapObjectBinding.setPositionAnimated ( LocationPoint point,
float duration,
AnimationType type )
inline

Method is used to move the center of the icon with the specified animation.

Parameters
pointMetrics coordinates of the center LocationPoint.
durationAnimation duration in seconds.
typeAnimation type AnimationType.
Returns
true if the operation is successful, false otherwise.

Java code snippet:

// Set icon position with animation
LocationPoint animatedIconPoint = new LocationPoint(250.0, 350.0);
boolean animatedSuccess = iconMapObject.setPositionAnimated(animatedIconPoint, 1.5, AnimationType.CUBIC);
System.out.println("Set icon position with animation to (" + animatedIconPoint.getX() + ", " + animatedIconPoint.getY() + "): " + animatedSuccess);

Kotlin code snippet:

// Set icon position with animation
val animatedPosition = LocationPoint(35.0, 45.0)
val animatedSuccess = iconMapObject!!.setPositionAnimated(animatedPosition, 1.5, AnimationType.CUBIC)
println("Set icon position with animation to (${animatedPosition.x}, ${animatedPosition.y}): $animatedSuccess")

Reimplemented from com.navigine.idl.java.IconMapObject.

Definition at line 35 of file IconMapObjectBinding.java.

◆ setPriority()

boolean com.navigine.idl.java.internal.IconMapObjectBinding.setPriority ( float priority)
inline

Method is used to specify the priority of the icon.

Parameters
priorityThe priority value for rendering or interaction. Default: max.
Returns
true if the operation is successful, false otherwise.

Java code snippet:

// Set rendering priority
boolean prioritySuccess = iconMapObject.setPriority(2);
System.out.println("Set rendering priority to 2: " + prioritySuccess);

Kotlin code snippet:

// Set rendering priority
val prioritySuccess = iconMapObject!!.setPriority(2)
println("Set rendering priority to 2: $prioritySuccess")

Reimplemented from com.navigine.idl.java.IconMapObject.

Definition at line 91 of file IconMapObjectBinding.java.

◆ setSize()

boolean com.navigine.idl.java.internal.IconMapObjectBinding.setSize ( float width,
float height )
inline

Method is used to specify the size of the icon.

Parameters
widthWidth of the icon in pixels.
heightHeight of the icon in pixels.
Returns
true if the operation is successful, false otherwise.

Java code snippet:

// Set icon size
boolean sizeSuccess = iconMapObject.setSize(32.0, 32.0);
System.out.println("Set icon size to 32x32 pixels: " + sizeSuccess);

Kotlin code snippet:

// Set icon size
val size = Size(32.0, 32.0)
val sizeSuccess = iconMapObject!!.setSize(size)
println("Set icon size to (${size.width}, ${size.height}): $sizeSuccess")

Reimplemented from com.navigine.idl.java.IconMapObject.

Definition at line 49 of file IconMapObjectBinding.java.

◆ setTitle()

boolean com.navigine.idl.java.internal.IconMapObjectBinding.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 149 of file IconMapObjectBinding.java.

◆ setVisible()

boolean com.navigine.idl.java.internal.IconMapObjectBinding.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 128 of file IconMapObjectBinding.java.


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