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

Public Member Functions

native boolean isValid ()
 
boolean setPosition (LocationPoint point)
 Method is used to specify the center of the circle.
 
boolean setPositionAnimated (LocationPoint point, float duration, AnimationType type)
 Method is used to move the center of the circle with the specified animation.
 
boolean setColor (float red, float green, float blue, float alpha)
 Method is used to specify the fill color of the circle.
 
boolean setRadius (float radius)
 Method is used to specify the size of the circle.
 
boolean setCollisionEnabled (boolean enabled)
 Method is used to enable or disable collision detection for the circle.
 
boolean setBuffer (float width, float height)
 Method is used to specify the buffer size around the circle for collision detection.
 
boolean setOffset (float width, float height)
 Method is used to specify an offset for the circle’s position.
 
boolean setPriority (float priority)
 Method is used to specify the priority of the circle.
 
boolean setOutlineColor (float red, float green, float blue, float alpha)
 Method is used to specify the color of the circle’s outline.
 
boolean setOutlineRadius (float radius)
 Method is used to specify the thickness of the circle’s outline.
 
boolean setOutlineAlpha (float alpha)
 Method is used to specify the opacity of the circle’s outline.
 
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 CircleMapObjectBinding.java.

Member Function Documentation

◆ getData()

byte[] com.navigine.idl.java.internal.CircleMapObjectBinding.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 CircleMapObjectBinding.java.

◆ getId()

int com.navigine.idl.java.internal.CircleMapObjectBinding.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 CircleMapObjectBinding.java.

◆ getType()

MapObjectType com.navigine.idl.java.internal.CircleMapObjectBinding.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 CircleMapObjectBinding.java.

◆ isValid()

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

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

Reimplemented from com.navigine.idl.java.CircleMapObject.

◆ setAlpha()

boolean com.navigine.idl.java.internal.CircleMapObjectBinding.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 CircleMapObjectBinding.java.

◆ setBuffer()

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

Method is used to specify the buffer size around the circle 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 = circleMapObject.setBuffer(5.0, 5.0);
System.out.println("Set collision buffer to 5x5 pixels: " + bufferSuccess);

Kotlin code snippet:

// Set collision buffer
val bufferSuccess = circleMapObject!!.setBuffer(5.0, 5.0)
println("Set collision buffer to 5x5 pixels: $bufferSuccess")

Reimplemented from com.navigine.idl.java.CircleMapObject.

Definition at line 63 of file CircleMapObjectBinding.java.

◆ setCollisionEnabled()

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

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

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 = circleMapObject.setCollisionEnabled(true);
System.out.println("Enabled collision detection for circle: " + collisionSuccess);

Kotlin code snippet:

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

Reimplemented from com.navigine.idl.java.CircleMapObject.

Definition at line 56 of file CircleMapObjectBinding.java.

◆ setColor()

boolean com.navigine.idl.java.internal.CircleMapObjectBinding.setColor ( float red,
float green,
float blue,
float alpha )
inline

Method is used to specify the fill color of the circle.

Parameters
redRed RGBA component (0 to 1).
greenGreen RGBA component (0 to 1).
blueBlue RGBA component (0 to 1).
alphaOpacity multiplier (0 to 1). Values below 0 are set to 0. Default: 1.
Returns
true if the operation is successful, false otherwise.

Java code snippet:

// Set circle color
boolean colorSuccess = circleMapObject.setColor(1.0, 0.0, 0.0, 0.8);
System.out.println("Set circle color to red with 80% opacity: " + colorSuccess);

Kotlin code snippet:

// Set circle color
val colorSuccess = circleMapObject!!.setColor(1.0, 0.0, 0.0, 0.8)
println("Set circle color to red with 80% opacity: $colorSuccess")

Reimplemented from com.navigine.idl.java.CircleMapObject.

Definition at line 42 of file CircleMapObjectBinding.java.

◆ setData()

void com.navigine.idl.java.internal.CircleMapObjectBinding.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 CircleMapObjectBinding.java.

◆ setInteractive()

boolean com.navigine.idl.java.internal.CircleMapObjectBinding.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 CircleMapObjectBinding.java.

◆ setOffset()

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

Method is used to specify an offset for the circle’s position.

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 = circleMapObject.setOffset(2.0, 3.0);
System.out.println("Set position offset to (2.0, 3.0) pixels: " + offsetSuccess);

Kotlin code snippet:

// Set position offset
val offsetSuccess = circleMapObject!!.setOffset(2.0, 3.0)
println("Set position offset to (2.0, 3.0) pixels: $offsetSuccess")

Reimplemented from com.navigine.idl.java.CircleMapObject.

Definition at line 70 of file CircleMapObjectBinding.java.

◆ setOutlineAlpha()

boolean com.navigine.idl.java.internal.CircleMapObjectBinding.setOutlineAlpha ( float alpha)
inline

Method is used to specify the opacity of the circle’s outline.

Parameters
alphaOpacity multiplier (0 to 1). Values below 0 are set to 0. Default: 1.
Returns
true if the operation is successful, false otherwise.

Java code snippet:

// Set outline alpha
boolean outlineAlphaSuccess = circleMapObject.setOutlineAlpha(0.5);
System.out.println("Set circle outline alpha to 0.5: " + outlineAlphaSuccess);

Kotlin code snippet:

// Set outline alpha
val outlineAlphaSuccess = circleMapObject!!.setOutlineAlpha(0.5)
println("Set circle outline alpha to 0.5: $outlineAlphaSuccess")

Reimplemented from com.navigine.idl.java.CircleMapObject.

Definition at line 98 of file CircleMapObjectBinding.java.

◆ setOutlineColor()

boolean com.navigine.idl.java.internal.CircleMapObjectBinding.setOutlineColor ( float red,
float green,
float blue,
float alpha )
inline

Method is used to specify the color of the circle’s outline.

Parameters
redRed RGBA component (0 to 1).
greenGreen RGBA component (0 to 1).
blueBlue RGBA component (0 to 1).
alphaOpacity multiplier (0 to 1). Values below 0 are set to 0. Default: 1.
Returns
true if the operation is successful, false otherwise.

Java code snippet:

// Set outline color
boolean outlineColorSuccess = circleMapObject.setOutlineColor(0.0, 0.0, 1.0, 1.0);
System.out.println("Set circle outline color to blue: " + outlineColorSuccess);

Kotlin code snippet:

// Set outline color
val outlineColorSuccess = circleMapObject!!.setOutlineColor(0.0, 0.0, 1.0, 1.0)
println("Set circle outline color to blue: $outlineColorSuccess")

Reimplemented from com.navigine.idl.java.CircleMapObject.

Definition at line 84 of file CircleMapObjectBinding.java.

◆ setOutlineRadius()

boolean com.navigine.idl.java.internal.CircleMapObjectBinding.setOutlineRadius ( float radius)
inline

Method is used to specify the thickness of the circle’s outline.

Parameters
radiusThickness of the outline in pixels.
Returns
true if the operation is successful, false otherwise.

Java code snippet:

// Set outline radius
boolean outlineRadiusSuccess = circleMapObject.setOutlineRadius(2.0);
System.out.println("Set circle outline radius to 2.0: " + outlineRadiusSuccess);

Kotlin code snippet:

// Set outline radius
val outlineRadiusSuccess = circleMapObject!!.setOutlineRadius(2.0)
println("Set circle outline radius to 2.0: $outlineRadiusSuccess")

Reimplemented from com.navigine.idl.java.CircleMapObject.

Definition at line 91 of file CircleMapObjectBinding.java.

◆ setPosition()

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

Method is used to specify the center of the circle.

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

Java code snippet:

// Set circle position
LocationPoint centerPoint = new LocationPoint(100.0, 200.0);
boolean success = circleMapObject.setPosition(centerPoint);
System.out.println("Set circle position to (" + centerPoint.getX() + ", " + centerPoint.getY() + "): " + success);

Kotlin code snippet:

// Set circle position
val centerPoint = LocationPoint(100.0, 200.0)
val success = circleMapObject!!.setPosition(centerPoint)
println("Set circle position to (${centerPoint.x}, ${centerPoint.y}): $success")

Reimplemented from com.navigine.idl.java.CircleMapObject.

Definition at line 28 of file CircleMapObjectBinding.java.

◆ setPositionAnimated()

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

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

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

Java code snippet:

// Set circle position with animation
LocationPoint animatedPoint = new LocationPoint(150.0, 250.0);
boolean animatedSuccess = circleMapObject.setPositionAnimated(animatedPoint, 2.0, AnimationType.LINEAR);
System.out.println("Set circle position with animation to (" + animatedPoint.getX() + ", " + animatedPoint.getY() + "): " + animatedSuccess);

Kotlin code snippet:

// Set circle position with animation
val animatedPoint = LocationPoint(150.0, 250.0)
val animatedSuccess = circleMapObject!!.setPositionAnimated(animatedPoint, 2.0, AnimationType.LINEAR)
println("Set circle position with animation to (${animatedPoint.x}, ${animatedPoint.y}): $animatedSuccess")

Reimplemented from com.navigine.idl.java.CircleMapObject.

Definition at line 35 of file CircleMapObjectBinding.java.

◆ setPriority()

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

Method is used to specify the priority of the circle.

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

Java code snippet:

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

Kotlin code snippet:

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

Reimplemented from com.navigine.idl.java.CircleMapObject.

Definition at line 77 of file CircleMapObjectBinding.java.

◆ setRadius()

boolean com.navigine.idl.java.internal.CircleMapObjectBinding.setRadius ( float radius)
inline

Method is used to specify the size of the circle.

Parameters
radiusRadius of the circle in meters.
Returns
true if the operation is successful, false otherwise.

Java code snippet:

// Set circle radius
boolean radiusSuccess = circleMapObject.setRadius(10.0);
System.out.println("Set circle radius to 10.0 meters: " + radiusSuccess);

Kotlin code snippet:

// Set circle radius
val radiusSuccess = circleMapObject!!.setRadius(10.0)
println("Set circle radius to 10.0 meters: $radiusSuccess")

Reimplemented from com.navigine.idl.java.CircleMapObject.

Definition at line 49 of file CircleMapObjectBinding.java.

◆ setTitle()

boolean com.navigine.idl.java.internal.CircleMapObjectBinding.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 CircleMapObjectBinding.java.

◆ setVisible()

boolean com.navigine.idl.java.internal.CircleMapObjectBinding.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 CircleMapObjectBinding.java.


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