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

Public Member Functions

native boolean isValid ()
 
boolean setPolygon (LocationPolygon polygon)
 Method is used to specify the source polygon of the object.
 
boolean setColor (int color)
 Method is used to specify the color of the object.
 
boolean setOrder (int order)
 Method is used to specify the rendering order of the object.
 
boolean setOutlineColor (int color)
 Method is used to specify the color of the polygon’s outline.
 
boolean setOutlineWidth (float width)
 Method is used to specify the width of the polygon’s outline.
 
boolean setOutlineAlpha (float alpha)
 Method is used to specify the opacity of the polygon’s outline.
 
boolean setOutlineOrder (int order)
 Method is used to specify the rendering order of the polygon’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 13 of file PolygonMapObjectBinding.java.

Member Function Documentation

◆ getData()

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

◆ getId()

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

◆ getType()

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

◆ isValid()

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

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

Reimplemented from com.navigine.idl.java.PolygonMapObject.

◆ setAlpha()

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

◆ setColor()

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

Method is used to specify the color of the object.

Parameters
colorFill color.
Returns
true if success, false otherwise.

Java code snippet:

// Set polygon color
boolean colorSuccess = polygonMapObject.setColor(0xB300FF00);
System.out.println("Set polygon color to green with 70% opacity: " + colorSuccess);

Kotlin code snippet:

// Set polygon color
val colorSuccess = polygonMapObject!!.setColor(0xB300FF00.toInt())
println("Set polygon color to green with 70% opacity: $colorSuccess")

Reimplemented from com.navigine.idl.java.PolygonMapObject.

Definition at line 35 of file PolygonMapObjectBinding.java.

◆ setData()

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

◆ setInteractive()

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

◆ setOrder()

boolean com.navigine.idl.java.internal.PolygonMapObjectBinding.setOrder ( int order)
inline

Method is used to specify the rendering order of the object.

Parameters
orderThe rendering order value. Default: 0.
Returns
true if success, false otherwise.

Java code snippet:

// Set polygon rendering order
boolean orderSuccess = polygonMapObject.setOrder(2);
System.out.println("Set polygon rendering order to 2: " + orderSuccess);

Kotlin code snippet:

// Set polygon rendering order
val orderSuccess = polygonMapObject!!.setOrder(2)
println("Set polygon rendering order to 2: $orderSuccess")

Reimplemented from com.navigine.idl.java.PolygonMapObject.

Definition at line 42 of file PolygonMapObjectBinding.java.

◆ setOutlineAlpha()

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

Method is used to specify the opacity of the polygon’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 polygon outline alpha
boolean outlineAlphaSuccess = polygonMapObject.setOutlineAlpha(0.8);
System.out.println("Set polygon outline alpha to 0.8: " + outlineAlphaSuccess);

Kotlin code snippet:

// Set polygon outline alpha
val outlineAlphaSuccess = polygonMapObject!!.setOutlineAlpha(0.8)
println("Set polygon outline alpha to 0.8: $outlineAlphaSuccess")

Reimplemented from com.navigine.idl.java.PolygonMapObject.

Definition at line 63 of file PolygonMapObjectBinding.java.

◆ setOutlineColor()

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

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

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

Java code snippet:

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

Kotlin code snippet:

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

Reimplemented from com.navigine.idl.java.PolygonMapObject.

Definition at line 49 of file PolygonMapObjectBinding.java.

◆ setOutlineOrder()

boolean com.navigine.idl.java.internal.PolygonMapObjectBinding.setOutlineOrder ( int order)
inline

Method is used to specify the rendering order of the polygon’s outline.

Parameters
orderThe rendering order value. Default: 0.
Returns
true if the operation is successful, false otherwise.

Java code snippet:

// Set polygon outline order
boolean outlineOrderSuccess = polygonMapObject.setOutlineOrder(1);
System.out.println("Set polygon outline order to 1: " + outlineOrderSuccess);

Kotlin code snippet:

// Set polygon outline order
val outlineOrderSuccess = polygonMapObject!!.setOutlineOrder(1)
println("Set polygon outline order to 1: $outlineOrderSuccess")

Reimplemented from com.navigine.idl.java.PolygonMapObject.

Definition at line 70 of file PolygonMapObjectBinding.java.

◆ setOutlineWidth()

boolean com.navigine.idl.java.internal.PolygonMapObjectBinding.setOutlineWidth ( float width)
inline

Method is used to specify the width of the polygon’s outline.

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

Java code snippet:

// Set polygon outline width
boolean outlineWidthSuccess = polygonMapObject.setOutlineWidth(2.0);
System.out.println("Set polygon outline width to 2.0 pixels: " + outlineWidthSuccess);

Kotlin code snippet:

// Set polygon outline width
val outlineWidthSuccess = polygonMapObject!!.setOutlineWidth(2.0)
println("Set polygon outline width to 2.0 pixels: $outlineWidthSuccess")

Reimplemented from com.navigine.idl.java.PolygonMapObject.

Definition at line 56 of file PolygonMapObjectBinding.java.

◆ setPolygon()

boolean com.navigine.idl.java.internal.PolygonMapObjectBinding.setPolygon ( LocationPolygon polygon)
inline

Method is used to specify the source polygon of the object.

Parameters
polygonMetrics coordinates of the polygon LocationPolygon.
Returns
true if success, false otherwise.

Java code snippet:

// Set polygon geometry
List<GlobalPoint> points = Arrays.asList(
new GlobalPoint(100.0, 200.0),
new GlobalPoint(150.0, 250.0),
new GlobalPoint(200.0, 200.0),
new GlobalPoint(150.0, 150.0)
);
LocationPolygon polygon = new LocationPolygon(points, 0);
boolean success = polygonMapObject.setPolygon(polygon);
System.out.println("Set polygon with " + points.size() + " points: " + success);

Kotlin code snippet:

// Set polygon geometry
val points = listOf(
Point(50.0, 60.0),
Point(55.0, 65.0),
Point(60.0, 60.0),
Point(55.0, 55.0)
)
val polygon = LocationPolygon(points, 0)
val success = polygonMapObject!!.setPolygon(polygon)
println("Set polygon with ${points.size} points: $success")

Reimplemented from com.navigine.idl.java.PolygonMapObject.

Definition at line 28 of file PolygonMapObjectBinding.java.

◆ setTitle()

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

◆ setTitleWithStyle()

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

◆ setVisible()

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


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