646 public abstract void applyLayerFilter(String layer, ArrayList<MapFilterCondition> conditions);
988 CppProxy.setDebugFlag(flag,
1009 return CppProxy.getDebugFlag(flag);
1014 private final long nativeRef;
1015 private final AtomicBoolean destroyed =
new AtomicBoolean(
false);
1017 private CppProxy(
long nativeRef)
1019 if (nativeRef == 0)
throw new RuntimeException(
"nativeRef is zero");
1020 this.nativeRef = nativeRef;
1023 private native
void nativeDestroy(
long nativeRef);
1024 public void _djinni_private_destroy()
1026 boolean destroyed = this.destroyed.getAndSet(
true);
1027 if (!destroyed) nativeDestroy(this.nativeRef);
1029 protected void finalize() throws java.lang.Throwable
1031 _djinni_private_destroy();
1038 public void setSublocationId(
int id)
1040 assert !this.destroyed.get() :
"trying to use a destroyed object";
1041 native_setSublocationId(this.nativeRef,
id);
1043 private native
void native_setSublocationId(
long _nativeRef,
int id);
1046 public Integer getSublocationId()
1048 assert !this.destroyed.get() :
"trying to use a destroyed object";
1049 return native_getSublocationId(this.nativeRef);
1051 private native Integer native_getSublocationId(
long _nativeRef);
1054 public Camera getEnclosingCamera(BoundingBox boundingBox)
1056 assert !this.destroyed.get() :
"trying to use a destroyed object";
1057 return native_getEnclosingCamera(this.nativeRef, boundingBox);
1059 private native Camera native_getEnclosingCamera(
long _nativeRef, BoundingBox boundingBox);
1062 public Point screenPositionToMeters(android.graphics.PointF point)
1064 assert !this.destroyed.get() :
"trying to use a destroyed object";
1065 return native_screenPositionToMeters(this.nativeRef, point);
1067 private native Point native_screenPositionToMeters(
long _nativeRef, android.graphics.PointF point);
1070 public android.graphics.PointF metersToScreenPosition(Point point,
boolean clipToViewport)
1072 assert !this.destroyed.get() :
"trying to use a destroyed object";
1073 return native_metersToScreenPosition(this.nativeRef, point, clipToViewport);
1075 private native android.graphics.PointF native_metersToScreenPosition(
long _nativeRef, Point point,
boolean clipToViewport);
1078 public CircleMapObject addCircleMapObject()
1080 assert !this.destroyed.get() :
"trying to use a destroyed object";
1081 return native_addCircleMapObject(this.nativeRef);
1083 private native CircleMapObject native_addCircleMapObject(
long _nativeRef);
1086 public boolean removeCircleMapObject(CircleMapObject circleMapObject)
1088 assert !this.destroyed.get() :
"trying to use a destroyed object";
1089 return native_removeCircleMapObject(this.nativeRef, circleMapObject);
1091 private native
boolean native_removeCircleMapObject(
long _nativeRef, CircleMapObject circleMapObject);
1094 public IconMapObject addIconMapObject()
1096 assert !this.destroyed.get() :
"trying to use a destroyed object";
1097 return native_addIconMapObject(this.nativeRef);
1099 private native IconMapObject native_addIconMapObject(
long _nativeRef);
1102 public boolean removeIconMapObject(IconMapObject iconMapObject)
1104 assert !this.destroyed.get() :
"trying to use a destroyed object";
1105 return native_removeIconMapObject(this.nativeRef, iconMapObject);
1107 private native
boolean native_removeIconMapObject(
long _nativeRef, IconMapObject iconMapObject);
1110 public ClusterMapObjectController addClusterMapObjectController()
1112 assert !this.destroyed.get() :
"trying to use a destroyed object";
1113 return native_addClusterMapObjectController(this.nativeRef);
1115 private native ClusterMapObjectController native_addClusterMapObjectController(
long _nativeRef);
1118 public boolean removeClusterMapObjectController(ClusterMapObjectController controller)
1120 assert !this.destroyed.get() :
"trying to use a destroyed object";
1121 return native_removeClusterMapObjectController(this.nativeRef, controller);
1123 private native
boolean native_removeClusterMapObjectController(
long _nativeRef, ClusterMapObjectController controller);
1126 public PolygonMapObject addPolygonMapObject()
1128 assert !this.destroyed.get() :
"trying to use a destroyed object";
1129 return native_addPolygonMapObject(this.nativeRef);
1131 private native PolygonMapObject native_addPolygonMapObject(
long _nativeRef);
1134 public boolean removePolygonMapObject(PolygonMapObject polygonMapObject)
1136 assert !this.destroyed.get() :
"trying to use a destroyed object";
1137 return native_removePolygonMapObject(this.nativeRef, polygonMapObject);
1139 private native
boolean native_removePolygonMapObject(
long _nativeRef, PolygonMapObject polygonMapObject);
1142 public PolylineMapObject addPolylineMapObject()
1144 assert !this.destroyed.get() :
"trying to use a destroyed object";
1145 return native_addPolylineMapObject(this.nativeRef);
1147 private native PolylineMapObject native_addPolylineMapObject(
long _nativeRef);
1150 public boolean removePolylineMapObject(PolylineMapObject polylineMapObject)
1152 assert !this.destroyed.get() :
"trying to use a destroyed object";
1153 return native_removePolylineMapObject(this.nativeRef, polylineMapObject);
1155 private native
boolean native_removePolylineMapObject(
long _nativeRef, PolylineMapObject polylineMapObject);
1158 public DottedPolylineMapObject addDottedPolylineMapObject()
1160 assert !this.destroyed.get() :
"trying to use a destroyed object";
1161 return native_addDottedPolylineMapObject(this.nativeRef);
1163 private native DottedPolylineMapObject native_addDottedPolylineMapObject(
long _nativeRef);
1166 public boolean removeDottedPolylineMapObject(DottedPolylineMapObject dottedPolylineMapObject)
1168 assert !this.destroyed.get() :
"trying to use a destroyed object";
1169 return native_removeDottedPolylineMapObject(this.nativeRef, dottedPolylineMapObject);
1171 private native
boolean native_removeDottedPolylineMapObject(
long _nativeRef, DottedPolylineMapObject dottedPolylineMapObject);
1174 public ModelMapObject addModelMapObject()
1176 assert !this.destroyed.get() :
"trying to use a destroyed object";
1177 return native_addModelMapObject(this.nativeRef);
1179 private native ModelMapObject native_addModelMapObject(
long _nativeRef);
1182 public boolean removeModelMapObject(ModelMapObject modelMapObject)
1184 assert !this.destroyed.get() :
"trying to use a destroyed object";
1185 return native_removeModelMapObject(this.nativeRef, modelMapObject);
1187 private native
boolean native_removeModelMapObject(
long _nativeRef, ModelMapObject modelMapObject);
1190 public void removeAllMapObjects()
1192 assert !this.destroyed.get() :
"trying to use a destroyed object";
1193 native_removeAllMapObjects(this.nativeRef);
1195 private native
void native_removeAllMapObjects(
long _nativeRef);
1198 public void pickMapObjectAt(android.graphics.PointF point)
1200 assert !this.destroyed.get() :
"trying to use a destroyed object";
1201 native_pickMapObjectAt(this.nativeRef, point);
1203 private native
void native_pickMapObjectAt(
long _nativeRef, android.graphics.PointF point);
1206 public void pickMapFeatureAt(android.graphics.PointF point)
1208 assert !this.destroyed.get() :
"trying to use a destroyed object";
1209 native_pickMapFeatureAt(this.nativeRef, point);
1211 private native
void native_pickMapFeatureAt(
long _nativeRef, android.graphics.PointF point);
1214 public void addPickListener(PickListener listener)
1216 assert !this.destroyed.get() :
"trying to use a destroyed object";
1217 native_addPickListener(this.nativeRef, listener);
1219 private native
void native_addPickListener(
long _nativeRef, PickListener listener);
1222 public void removePickListener(PickListener listener)
1224 assert !this.destroyed.get() :
"trying to use a destroyed object";
1225 native_removePickListener(this.nativeRef, listener);
1227 private native
void native_removePickListener(
long _nativeRef, PickListener listener);
1230 public void addInputListener(InputListener listener)
1232 assert !this.destroyed.get() :
"trying to use a destroyed object";
1233 native_addInputListener(this.nativeRef, listener);
1235 private native
void native_addInputListener(
long _nativeRef, InputListener listener);
1238 public void removeInputListener(InputListener listener)
1240 assert !this.destroyed.get() :
"trying to use a destroyed object";
1241 native_removeInputListener(this.nativeRef, listener);
1243 private native
void native_removeInputListener(
long _nativeRef, InputListener listener);
1246 public void addCameraListener(CameraListener listener)
1248 assert !this.destroyed.get() :
"trying to use a destroyed object";
1249 native_addCameraListener(this.nativeRef, listener);
1251 private native
void native_addCameraListener(
long _nativeRef, CameraListener listener);
1254 public void removeCameraListener(CameraListener listener)
1256 assert !this.destroyed.get() :
"trying to use a destroyed object";
1257 native_removeCameraListener(this.nativeRef, listener);
1259 private native
void native_removeCameraListener(
long _nativeRef, CameraListener listener);
1262 public void addSublocationChangeListener(SublocationChangeListener listener)
1264 assert !this.destroyed.get() :
"trying to use a destroyed object";
1265 native_addSublocationChangeListener(this.nativeRef, listener);
1267 private native
void native_addSublocationChangeListener(
long _nativeRef, SublocationChangeListener listener);
1270 public void removeSublocationChangeListener(SublocationChangeListener listener)
1272 assert !this.destroyed.get() :
"trying to use a destroyed object";
1273 native_removeSublocationChangeListener(this.nativeRef, listener);
1275 private native
void native_removeSublocationChangeListener(
long _nativeRef, SublocationChangeListener listener);
1278 public void addBuildingListener(BuildingListener listener)
1280 assert !this.destroyed.get() :
"trying to use a destroyed object";
1281 native_addBuildingListener(this.nativeRef, listener);
1283 private native
void native_addBuildingListener(
long _nativeRef, BuildingListener listener);
1286 public void removeBuildingListener(BuildingListener listener)
1288 assert !this.destroyed.get() :
"trying to use a destroyed object";
1289 native_removeBuildingListener(this.nativeRef, listener);
1291 private native
void native_removeBuildingListener(
long _nativeRef, BuildingListener listener);
1294 public void flyTo(Camera camera,
int duration, CameraCallback callback)
1296 assert !this.destroyed.get() :
"trying to use a destroyed object";
1297 native_flyTo(this.nativeRef, camera, duration, callback);
1299 private native
void native_flyTo(
long _nativeRef, Camera camera,
int duration, CameraCallback callback);
1302 public void moveTo(Camera camera,
int duration, AnimationType animationType, CameraCallback callback)
1304 assert !this.destroyed.get() :
"trying to use a destroyed object";
1305 native_moveTo(this.nativeRef, camera, duration, animationType, callback);
1307 private native
void native_moveTo(
long _nativeRef, Camera camera,
int duration, AnimationType animationType, CameraCallback callback);
1310 public boolean selectMapFeature(String featureId)
1312 assert !this.destroyed.get() :
"trying to use a destroyed object";
1313 return native_selectMapFeature(this.nativeRef, featureId);
1315 private native
boolean native_selectMapFeature(
long _nativeRef, String featureId);
1318 public boolean deselectMapFeature(String featureId)
1320 assert !this.destroyed.get() :
"trying to use a destroyed object";
1321 return native_deselectMapFeature(this.nativeRef, featureId);
1323 private native
boolean native_deselectMapFeature(
long _nativeRef, String featureId);
1326 public void deselectAllMapFeatures()
1328 assert !this.destroyed.get() :
"trying to use a destroyed object";
1329 native_deselectAllMapFeatures(this.nativeRef);
1331 private native
void native_deselectAllMapFeatures(
long _nativeRef);
1334 public void applyLayerFilter(String layer, ArrayList<MapFilterCondition> conditions)
1336 assert !this.destroyed.get() :
"trying to use a destroyed object";
1337 native_applyLayerFilter(this.nativeRef, layer, conditions);
1339 private native
void native_applyLayerFilter(
long _nativeRef, String layer, ArrayList<MapFilterCondition> conditions);
1342 public float getZoomFactor()
1344 assert !this.destroyed.get() :
"trying to use a destroyed object";
1345 return native_getZoomFactor(this.nativeRef);
1347 private native
float native_getZoomFactor(
long _nativeRef);
1350 public void setZoomFactor(
float newZoomFactor)
1352 assert !this.destroyed.get() :
"trying to use a destroyed object";
1353 native_setZoomFactor(this.nativeRef, newZoomFactor);
1355 private native
void native_setZoomFactor(
long _nativeRef,
float newZoomFactor);
1358 public float getMinZoomFactor()
1360 assert !this.destroyed.get() :
"trying to use a destroyed object";
1361 return native_getMinZoomFactor(this.nativeRef);
1363 private native
float native_getMinZoomFactor(
long _nativeRef);
1366 public void setMinZoomFactor(
float newMinZoomFactor)
1368 assert !this.destroyed.get() :
"trying to use a destroyed object";
1369 native_setMinZoomFactor(this.nativeRef, newMinZoomFactor);
1371 private native
void native_setMinZoomFactor(
long _nativeRef,
float newMinZoomFactor);
1374 public float getMaxZoomFactor()
1376 assert !this.destroyed.get() :
"trying to use a destroyed object";
1377 return native_getMaxZoomFactor(this.nativeRef);
1379 private native
float native_getMaxZoomFactor(
long _nativeRef);
1382 public void setMaxZoomFactor(
float newMaxZoomFactor)
1384 assert !this.destroyed.get() :
"trying to use a destroyed object";
1385 native_setMaxZoomFactor(this.nativeRef, newMaxZoomFactor);
1387 private native
void native_setMaxZoomFactor(
long _nativeRef,
float newMaxZoomFactor);
1390 public boolean getStickToBorder()
1392 assert !this.destroyed.get() :
"trying to use a destroyed object";
1393 return native_getStickToBorder(this.nativeRef);
1395 private native
boolean native_getStickToBorder(
long _nativeRef);
1398 public void setStickToBorder(
boolean newStickToBorder)
1400 assert !this.destroyed.get() :
"trying to use a destroyed object";
1401 native_setStickToBorder(this.nativeRef, newStickToBorder);
1403 private native
void native_setStickToBorder(
long _nativeRef,
boolean newStickToBorder);
1406 public Camera getCamera()
1408 assert !this.destroyed.get() :
"trying to use a destroyed object";
1409 return native_getCamera(this.nativeRef);
1411 private native Camera native_getCamera(
long _nativeRef);
1414 public void setCamera(Camera newCamera)
1416 assert !this.destroyed.get() :
"trying to use a destroyed object";
1417 native_setCamera(this.nativeRef, newCamera);
1419 private native
void native_setCamera(
long _nativeRef, Camera newCamera);
1422 public boolean getRotateGestureEnabled()
1424 assert !this.destroyed.get() :
"trying to use a destroyed object";
1425 return native_getRotateGestureEnabled(this.nativeRef);
1427 private native
boolean native_getRotateGestureEnabled(
long _nativeRef);
1430 public void setRotateGestureEnabled(
boolean newRotateGestureEnabled)
1432 assert !this.destroyed.get() :
"trying to use a destroyed object";
1433 native_setRotateGestureEnabled(this.nativeRef, newRotateGestureEnabled);
1435 private native
void native_setRotateGestureEnabled(
long _nativeRef,
boolean newRotateGestureEnabled);
1438 public boolean getTiltGesturesEnabled()
1440 assert !this.destroyed.get() :
"trying to use a destroyed object";
1441 return native_getTiltGesturesEnabled(this.nativeRef);
1443 private native
boolean native_getTiltGesturesEnabled(
long _nativeRef);
1446 public void setTiltGesturesEnabled(
boolean newTiltGesturesEnabled)
1448 assert !this.destroyed.get() :
"trying to use a destroyed object";
1449 native_setTiltGesturesEnabled(this.nativeRef, newTiltGesturesEnabled);
1451 private native
void native_setTiltGesturesEnabled(
long _nativeRef,
boolean newTiltGesturesEnabled);
1454 public boolean getScrollGesturesEnabled()
1456 assert !this.destroyed.get() :
"trying to use a destroyed object";
1457 return native_getScrollGesturesEnabled(this.nativeRef);
1459 private native
boolean native_getScrollGesturesEnabled(
long _nativeRef);
1462 public void setScrollGesturesEnabled(
boolean newScrollGesturesEnabled)
1464 assert !this.destroyed.get() :
"trying to use a destroyed object";
1465 native_setScrollGesturesEnabled(this.nativeRef, newScrollGesturesEnabled);
1467 private native
void native_setScrollGesturesEnabled(
long _nativeRef,
boolean newScrollGesturesEnabled);
1470 public boolean getZoomGesturesEnabled()
1472 assert !this.destroyed.get() :
"trying to use a destroyed object";
1473 return native_getZoomGesturesEnabled(this.nativeRef);
1475 private native
boolean native_getZoomGesturesEnabled(
long _nativeRef);
1478 public void setZoomGesturesEnabled(
boolean newZoomGesturesEnabled)
1480 assert !this.destroyed.get() :
"trying to use a destroyed object";
1481 native_setZoomGesturesEnabled(this.nativeRef, newZoomGesturesEnabled);
1483 private native
void native_setZoomGesturesEnabled(
long _nativeRef,
boolean newZoomGesturesEnabled);
1486 public float getPickRadius()
1488 assert !this.destroyed.get() :
"trying to use a destroyed object";
1489 return native_getPickRadius(this.nativeRef);
1491 private native
float native_getPickRadius(
long _nativeRef);
1494 public void setPickRadius(
float newPickRadius)
1496 assert !this.destroyed.get() :
"trying to use a destroyed object";
1497 native_setPickRadius(this.nativeRef, newPickRadius);
1499 private native
void native_setPickRadius(
long _nativeRef,
float newPickRadius);
1502 public ArrayList<String> getSelectedMapFeatures()
1504 assert !this.destroyed.get() :
"trying to use a destroyed object";
1505 return native_getSelectedMapFeatures(this.nativeRef);
1507 private native ArrayList<String> native_getSelectedMapFeatures(
long _nativeRef);
1509 public static native
void setDebugFlag(DebugFlag flag,
boolean on);
1511 public static native
boolean getDebugFlag(DebugFlag flag);