254 public abstract void applyFilter(String filter, String layer);
424 CppProxy.setDebugFlag(flag,
430 return CppProxy.getDebugFlag(flag);
435 private final long nativeRef;
436 private final AtomicBoolean destroyed =
new AtomicBoolean(
false);
438 private CppProxy(
long nativeRef)
440 if (nativeRef == 0)
throw new RuntimeException(
"nativeRef is zero");
441 this.nativeRef = nativeRef;
444 private native
void nativeDestroy(
long nativeRef);
445 public void _djinni_private_destroy()
447 boolean destroyed = this.destroyed.getAndSet(
true);
448 if (!destroyed) nativeDestroy(this.nativeRef);
450 protected void finalize() throws java.lang.Throwable
452 _djinni_private_destroy();
459 public void setSublocationId(
int id)
461 assert !this.destroyed.get() :
"trying to use a destroyed object";
462 native_setSublocationId(this.nativeRef,
id);
464 private native
void native_setSublocationId(
long _nativeRef,
int id);
467 public Point screenPositionToMeters(android.graphics.PointF point)
469 assert !this.destroyed.get() :
"trying to use a destroyed object";
470 return native_screenPositionToMeters(this.nativeRef, point);
472 private native Point native_screenPositionToMeters(
long _nativeRef, android.graphics.PointF point);
475 public android.graphics.PointF metersToScreenPosition(Point point,
boolean clipToViewport)
477 assert !this.destroyed.get() :
"trying to use a destroyed object";
478 return native_metersToScreenPosition(this.nativeRef, point, clipToViewport);
480 private native android.graphics.PointF native_metersToScreenPosition(
long _nativeRef, Point point,
boolean clipToViewport);
483 public CircleMapObject addCircleMapObject()
485 assert !this.destroyed.get() :
"trying to use a destroyed object";
486 return native_addCircleMapObject(this.nativeRef);
488 private native CircleMapObject native_addCircleMapObject(
long _nativeRef);
491 public boolean removeCircleMapObject(CircleMapObject circleMapObject)
493 assert !this.destroyed.get() :
"trying to use a destroyed object";
494 return native_removeCircleMapObject(this.nativeRef, circleMapObject);
496 private native
boolean native_removeCircleMapObject(
long _nativeRef, CircleMapObject circleMapObject);
499 public IconMapObject addIconMapObject()
501 assert !this.destroyed.get() :
"trying to use a destroyed object";
502 return native_addIconMapObject(this.nativeRef);
504 private native IconMapObject native_addIconMapObject(
long _nativeRef);
507 public boolean removeIconMapObject(IconMapObject iconMapObject)
509 assert !this.destroyed.get() :
"trying to use a destroyed object";
510 return native_removeIconMapObject(this.nativeRef, iconMapObject);
512 private native
boolean native_removeIconMapObject(
long _nativeRef, IconMapObject iconMapObject);
515 public FlatIconMapObject addFlatIconMapObject()
517 assert !this.destroyed.get() :
"trying to use a destroyed object";
518 return native_addFlatIconMapObject(this.nativeRef);
520 private native FlatIconMapObject native_addFlatIconMapObject(
long _nativeRef);
523 public boolean removeFlatIconMapObject(FlatIconMapObject flatIconMapObject)
525 assert !this.destroyed.get() :
"trying to use a destroyed object";
526 return native_removeFlatIconMapObject(this.nativeRef, flatIconMapObject);
528 private native
boolean native_removeFlatIconMapObject(
long _nativeRef, FlatIconMapObject flatIconMapObject);
531 public PolygonMapObject addPolygonMapObject()
533 assert !this.destroyed.get() :
"trying to use a destroyed object";
534 return native_addPolygonMapObject(this.nativeRef);
536 private native PolygonMapObject native_addPolygonMapObject(
long _nativeRef);
539 public boolean removePolygonMapObject(PolygonMapObject polygonMapObject)
541 assert !this.destroyed.get() :
"trying to use a destroyed object";
542 return native_removePolygonMapObject(this.nativeRef, polygonMapObject);
544 private native
boolean native_removePolygonMapObject(
long _nativeRef, PolygonMapObject polygonMapObject);
547 public PolylineMapObject addPolylineMapObject()
549 assert !this.destroyed.get() :
"trying to use a destroyed object";
550 return native_addPolylineMapObject(this.nativeRef);
552 private native PolylineMapObject native_addPolylineMapObject(
long _nativeRef);
555 public boolean removePolylineMapObject(PolylineMapObject polylineMapObject)
557 assert !this.destroyed.get() :
"trying to use a destroyed object";
558 return native_removePolylineMapObject(this.nativeRef, polylineMapObject);
560 private native
boolean native_removePolylineMapObject(
long _nativeRef, PolylineMapObject polylineMapObject);
563 public void removeAllMapObjects()
565 assert !this.destroyed.get() :
"trying to use a destroyed object";
566 native_removeAllMapObjects(this.nativeRef);
568 private native
void native_removeAllMapObjects(
long _nativeRef);
571 public void pickMapObjectAt(android.graphics.PointF point)
573 assert !this.destroyed.get() :
"trying to use a destroyed object";
574 native_pickMapObjectAt(this.nativeRef, point);
576 private native
void native_pickMapObjectAt(
long _nativeRef, android.graphics.PointF point);
579 public void pickMapFeatureAt(android.graphics.PointF point)
581 assert !this.destroyed.get() :
"trying to use a destroyed object";
582 native_pickMapFeatureAt(this.nativeRef, point);
584 private native
void native_pickMapFeatureAt(
long _nativeRef, android.graphics.PointF point);
587 public void addPickListener(PickListener listener)
589 assert !this.destroyed.get() :
"trying to use a destroyed object";
590 native_addPickListener(this.nativeRef, listener);
592 private native
void native_addPickListener(
long _nativeRef, PickListener listener);
595 public void removePickListener(PickListener listener)
597 assert !this.destroyed.get() :
"trying to use a destroyed object";
598 native_removePickListener(this.nativeRef, listener);
600 private native
void native_removePickListener(
long _nativeRef, PickListener listener);
603 public void addInputListener(InputListener listener)
605 assert !this.destroyed.get() :
"trying to use a destroyed object";
606 native_addInputListener(this.nativeRef, listener);
608 private native
void native_addInputListener(
long _nativeRef, InputListener listener);
611 public void removeInputListener(InputListener listener)
613 assert !this.destroyed.get() :
"trying to use a destroyed object";
614 native_removeInputListener(this.nativeRef, listener);
616 private native
void native_removeInputListener(
long _nativeRef, InputListener listener);
619 public void addCameraListener(CameraListener listener)
621 assert !this.destroyed.get() :
"trying to use a destroyed object";
622 native_addCameraListener(this.nativeRef, listener);
624 private native
void native_addCameraListener(
long _nativeRef, CameraListener listener);
627 public void removeCameraListener(CameraListener listener)
629 assert !this.destroyed.get() :
"trying to use a destroyed object";
630 native_removeCameraListener(this.nativeRef, listener);
632 private native
void native_removeCameraListener(
long _nativeRef, CameraListener listener);
635 public void flyTo(Camera camera,
int duration, CameraCallback callback)
637 assert !this.destroyed.get() :
"trying to use a destroyed object";
638 native_flyTo(this.nativeRef, camera, duration, callback);
640 private native
void native_flyTo(
long _nativeRef, Camera camera,
int duration, CameraCallback callback);
643 public boolean selectMapFeature(String featureId)
645 assert !this.destroyed.get() :
"trying to use a destroyed object";
646 return native_selectMapFeature(this.nativeRef, featureId);
648 private native
boolean native_selectMapFeature(
long _nativeRef, String featureId);
651 public boolean deselectMapFeature(String featureId)
653 assert !this.destroyed.get() :
"trying to use a destroyed object";
654 return native_deselectMapFeature(this.nativeRef, featureId);
656 private native
boolean native_deselectMapFeature(
long _nativeRef, String featureId);
659 public void deselectAllMapFeatures()
661 assert !this.destroyed.get() :
"trying to use a destroyed object";
662 native_deselectAllMapFeatures(this.nativeRef);
664 private native
void native_deselectAllMapFeatures(
long _nativeRef);
667 public void applyFilter(String filter, String layer)
669 assert !this.destroyed.get() :
"trying to use a destroyed object";
670 native_applyFilter(this.nativeRef, filter, layer);
672 private native
void native_applyFilter(
long _nativeRef, String filter, String layer);
675 public void moveTo(Camera camera,
int duration, AnimationType animationType, CameraCallback callback)
677 assert !this.destroyed.get() :
"trying to use a destroyed object";
678 native_moveTo(this.nativeRef, camera, duration, animationType, callback);
680 private native
void native_moveTo(
long _nativeRef, Camera camera,
int duration, AnimationType animationType, CameraCallback callback);
683 public float getZoomFactor()
685 assert !this.destroyed.get() :
"trying to use a destroyed object";
686 return native_getZoomFactor(this.nativeRef);
688 private native
float native_getZoomFactor(
long _nativeRef);
691 public void setZoomFactor(
float newZoomFactor)
693 assert !this.destroyed.get() :
"trying to use a destroyed object";
694 native_setZoomFactor(this.nativeRef, newZoomFactor);
696 private native
void native_setZoomFactor(
long _nativeRef,
float newZoomFactor);
699 public float getMinZoomFactor()
701 assert !this.destroyed.get() :
"trying to use a destroyed object";
702 return native_getMinZoomFactor(this.nativeRef);
704 private native
float native_getMinZoomFactor(
long _nativeRef);
707 public void setMinZoomFactor(
float newMinZoomFactor)
709 assert !this.destroyed.get() :
"trying to use a destroyed object";
710 native_setMinZoomFactor(this.nativeRef, newMinZoomFactor);
712 private native
void native_setMinZoomFactor(
long _nativeRef,
float newMinZoomFactor);
715 public float getMaxZoomFactor()
717 assert !this.destroyed.get() :
"trying to use a destroyed object";
718 return native_getMaxZoomFactor(this.nativeRef);
720 private native
float native_getMaxZoomFactor(
long _nativeRef);
723 public void setMaxZoomFactor(
float newMaxZoomFactor)
725 assert !this.destroyed.get() :
"trying to use a destroyed object";
726 native_setMaxZoomFactor(this.nativeRef, newMaxZoomFactor);
728 private native
void native_setMaxZoomFactor(
long _nativeRef,
float newMaxZoomFactor);
731 public boolean getStickToBorder()
733 assert !this.destroyed.get() :
"trying to use a destroyed object";
734 return native_getStickToBorder(this.nativeRef);
736 private native
boolean native_getStickToBorder(
long _nativeRef);
739 public void setStickToBorder(
boolean newStickToBorder)
741 assert !this.destroyed.get() :
"trying to use a destroyed object";
742 native_setStickToBorder(this.nativeRef, newStickToBorder);
744 private native
void native_setStickToBorder(
long _nativeRef,
boolean newStickToBorder);
747 public Camera getCamera()
749 assert !this.destroyed.get() :
"trying to use a destroyed object";
750 return native_getCamera(this.nativeRef);
752 private native Camera native_getCamera(
long _nativeRef);
755 public void setCamera(Camera newCamera)
757 assert !this.destroyed.get() :
"trying to use a destroyed object";
758 native_setCamera(this.nativeRef, newCamera);
760 private native
void native_setCamera(
long _nativeRef, Camera newCamera);
763 public boolean getRotateGestureEnabled()
765 assert !this.destroyed.get() :
"trying to use a destroyed object";
766 return native_getRotateGestureEnabled(this.nativeRef);
768 private native
boolean native_getRotateGestureEnabled(
long _nativeRef);
771 public void setRotateGestureEnabled(
boolean newRotateGestureEnabled)
773 assert !this.destroyed.get() :
"trying to use a destroyed object";
774 native_setRotateGestureEnabled(this.nativeRef, newRotateGestureEnabled);
776 private native
void native_setRotateGestureEnabled(
long _nativeRef,
boolean newRotateGestureEnabled);
779 public boolean getTiltGesturesEnabled()
781 assert !this.destroyed.get() :
"trying to use a destroyed object";
782 return native_getTiltGesturesEnabled(this.nativeRef);
784 private native
boolean native_getTiltGesturesEnabled(
long _nativeRef);
787 public void setTiltGesturesEnabled(
boolean newTiltGesturesEnabled)
789 assert !this.destroyed.get() :
"trying to use a destroyed object";
790 native_setTiltGesturesEnabled(this.nativeRef, newTiltGesturesEnabled);
792 private native
void native_setTiltGesturesEnabled(
long _nativeRef,
boolean newTiltGesturesEnabled);
795 public boolean getScrollGesturesEnabled()
797 assert !this.destroyed.get() :
"trying to use a destroyed object";
798 return native_getScrollGesturesEnabled(this.nativeRef);
800 private native
boolean native_getScrollGesturesEnabled(
long _nativeRef);
803 public void setScrollGesturesEnabled(
boolean newScrollGesturesEnabled)
805 assert !this.destroyed.get() :
"trying to use a destroyed object";
806 native_setScrollGesturesEnabled(this.nativeRef, newScrollGesturesEnabled);
808 private native
void native_setScrollGesturesEnabled(
long _nativeRef,
boolean newScrollGesturesEnabled);
811 public boolean getZoomGesturesEnabled()
813 assert !this.destroyed.get() :
"trying to use a destroyed object";
814 return native_getZoomGesturesEnabled(this.nativeRef);
816 private native
boolean native_getZoomGesturesEnabled(
long _nativeRef);
819 public void setZoomGesturesEnabled(
boolean newZoomGesturesEnabled)
821 assert !this.destroyed.get() :
"trying to use a destroyed object";
822 native_setZoomGesturesEnabled(this.nativeRef, newZoomGesturesEnabled);
824 private native
void native_setZoomGesturesEnabled(
long _nativeRef,
boolean newZoomGesturesEnabled);
827 public float getPickRadius()
829 assert !this.destroyed.get() :
"trying to use a destroyed object";
830 return native_getPickRadius(this.nativeRef);
832 private native
float native_getPickRadius(
long _nativeRef);
835 public void setPickRadius(
float newPickRadius)
837 assert !this.destroyed.get() :
"trying to use a destroyed object";
838 native_setPickRadius(this.nativeRef, newPickRadius);
840 private native
void native_setPickRadius(
long _nativeRef,
float newPickRadius);
843 public ArrayList<String> getSelectedMapFeatures()
845 assert !this.destroyed.get() :
"trying to use a destroyed object";
846 return native_getSelectedMapFeatures(this.nativeRef);
848 private native ArrayList<String> native_getSelectedMapFeatures(
long _nativeRef);
850 public static native
void setDebugFlag(DebugFlag flag,
boolean on);
852 public static native
boolean getDebugFlag(DebugFlag flag);