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 (GlobalPoint point, Integer sublocationId)
 Method is used to specify the center of the circle.
 
boolean setPositionAnimated (GlobalPoint point, Integer sublocationId, float duration, AnimationType type)
 Method is used to move the center of the circle with the specified animation.
 
boolean setColor (int color)
 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 (int color)
 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 setTitleWithStyle (String title, TitleStyle style)
 Method is used to set the title and its style for the map object.
 
boolean setAlpha (float alpha)
 Method is used to set the opacity of the map object.
 

Detailed Description

Definition at line 14 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 122 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 108 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 115 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 164 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 64 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 57 of file CircleMapObjectBinding.java.

◆ setColor()

boolean com.navigine.idl.java.internal.CircleMapObjectBinding.setColor ( int color)
inline

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

Parameters
colorFill color.
Returns
true if the operation is successful, false otherwise.

Java code snippet:

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

Kotlin code snippet:

// Set circle color
val colorSuccess = circleMapObject!!.setColor(0xCCFF0000.toInt())
println("Set circle color to red with 80% opacity: $colorSuccess")

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

Definition at line 43 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 143 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 136 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 71 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 99 of file CircleMapObjectBinding.java.

◆ setOutlineColor()

boolean com.navigine.idl.java.internal.CircleMapObjectBinding.setOutlineColor ( int color)
inline

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

Parameters
colorOutline color.
Returns
true if the operation is successful, false otherwise.

Java code snippet:

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

Kotlin code snippet:

// Set outline color
val outlineColorSuccess = circleMapObject!!.setOutlineColor(0xFF0000FF.toInt())
println("Set circle outline color to blue: $outlineColorSuccess")

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

Definition at line 85 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 92 of file CircleMapObjectBinding.java.

◆ setPosition()

boolean com.navigine.idl.java.internal.CircleMapObjectBinding.setPosition ( GlobalPoint point,
Integer sublocationId )
inline

Method is used to specify the center of the circle.

Parameters
pointWGS84 coordinates of the center GlobalPoint.
sublocationIdFloor this object is attached to, or null for the outdoor map.
Returns
true if the operation is successful, false otherwise.

Java code snippet:

// Set circle position
GlobalPoint centerPoint = new GlobalPoint(55.7558, 37.6176);
boolean success = circleMapObject.setPosition(centerPoint, 7);
System.out.println("Set circle position to (" + centerPoint.getLatitude() + ", " + centerPoint.getLongitude() + "): " + success);

Kotlin code snippet:

// Set circle position
val centerPoint = GlobalPoint(100.0, 200.0)
val success = circleMapObject!!.setPosition(centerPoint, 7)
println("Set circle position to (${centerPoint.latitude}, ${centerPoint.longitude}): $success")

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

Definition at line 29 of file CircleMapObjectBinding.java.

◆ setPositionAnimated()

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

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

Parameters
pointWGS84 coordinates of the center GlobalPoint.
sublocationIdFloor this object is attached to, or null for the outdoor map.
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
GlobalPoint animatedPoint = new GlobalPoint(55.7560, 37.6180);
boolean animatedSuccess = circleMapObject.setPositionAnimated(animatedPoint, 7, 2.0f, AnimationType.LINEAR);
System.out.println("Set circle position with animation to (" + animatedPoint.getLatitude() + ", " + animatedPoint.getLongitude() + "): " + animatedSuccess);

Kotlin code snippet:

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

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

Definition at line 36 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 78 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 50 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 150 of file CircleMapObjectBinding.java.

◆ setTitleWithStyle()

boolean com.navigine.idl.java.internal.CircleMapObjectBinding.setTitleWithStyle ( String title,
TitleStyle style )
inline

Method is used to set the title and its style for the map object.

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

Java code snippet:

// Set title with style
boolean titleStyleSuccess = circleMapObject.setTitleWithStyle("Styled Circle", titleStyle);
System.out.println("Set circle title with style: " + titleStyleSuccess);

Kotlin code snippet:

// Set title with style
val titleStyleSuccess = circleMapObject!!.setTitleWithStyle("Styled Circle", titleStyle)
println("Set circle title with style: $titleStyleSuccess")

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

Definition at line 157 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 129 of file CircleMapObjectBinding.java.


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