28 public abstract boolean setAngle(
double angle);
43 private final long nativeRef;
44 private final AtomicBoolean destroyed =
new AtomicBoolean(
false);
46 private CppProxy(
long nativeRef)
48 if (nativeRef == 0)
throw new RuntimeException(
"nativeRef is zero");
49 this.nativeRef = nativeRef;
52 private native
void nativeDestroy(
long nativeRef);
53 public void _djinni_private_destroy()
55 boolean destroyed = this.destroyed.getAndSet(
true);
56 if (!destroyed) nativeDestroy(this.nativeRef);
58 protected void finalize() throws
java.lang.Throwable
60 _djinni_private_destroy();
67 public boolean setAngle(
double angle)
69 assert !this.destroyed.get() :
"trying to use a destroyed object";
70 return native_setAngle(this.nativeRef, angle);
72 private native
boolean native_setAngle(
long _nativeRef,
double angle);
75 public boolean setAngleAnimated(
double angle,
float duration,
AnimationType type)
77 assert !this.destroyed.get() :
"trying to use a destroyed object";
78 return native_setAngleAnimated(this.nativeRef, angle, duration, type);
80 private native
boolean native_setAngleAnimated(
long _nativeRef,
double angle,
float duration,
AnimationType type);
87 assert !this.destroyed.get() :
"trying to use a destroyed object";
88 return native_setPosition(this.nativeRef, point);
90 private native
boolean native_setPosition(
long _nativeRef, LocationPoint point);
93 public boolean setPositionAnimated(LocationPoint point,
float duration, AnimationType type)
95 assert !this.destroyed.get() :
"trying to use a destroyed object";
96 return native_setPositionAnimated(this.nativeRef, point, duration, type);
98 private native
boolean native_setPositionAnimated(
long _nativeRef, LocationPoint point,
float duration, AnimationType type);
101 public boolean setBitmap(android.graphics.Bitmap bitmap)
103 assert !this.destroyed.get() :
"trying to use a destroyed object";
104 return native_setBitmap(this.nativeRef, bitmap);
106 private native
boolean native_setBitmap(
long _nativeRef, android.graphics.Bitmap bitmap);
109 public boolean setSize(
float width,
float height)
111 assert !this.destroyed.get() :
"trying to use a destroyed object";
112 return native_setSize(this.nativeRef, width, height);
114 private native
boolean native_setSize(
long _nativeRef,
float width,
float height);
119 assert !this.destroyed.get() :
"trying to use a destroyed object";
120 return native_getId(this.nativeRef);
122 private native
int native_getId(
long _nativeRef);
125 public MapObjectType getType()
127 assert !this.destroyed.get() :
"trying to use a destroyed object";
128 return native_getType(this.nativeRef);
130 private native MapObjectType native_getType(
long _nativeRef);
133 public byte[] getData()
135 assert !this.destroyed.get() :
"trying to use a destroyed object";
136 return native_getData(this.nativeRef);
138 private native
byte[] native_getData(
long _nativeRef);
141 public boolean setVisible(
boolean visible)
143 assert !this.destroyed.get() :
"trying to use a destroyed object";
144 return native_setVisible(this.nativeRef, visible);
146 private native
boolean native_setVisible(
long _nativeRef,
boolean visible);
149 public boolean setInteractive(
boolean interactive)
151 assert !this.destroyed.get() :
"trying to use a destroyed object";
152 return native_setInteractive(this.nativeRef, interactive);
154 private native
boolean native_setInteractive(
long _nativeRef,
boolean interactive);
157 public boolean setStyle(String style)
159 assert !this.destroyed.get() :
"trying to use a destroyed object";
160 return native_setStyle(this.nativeRef, style);
162 private native
boolean native_setStyle(
long _nativeRef, String style);
165 public void setData(
byte[] data)
167 assert !this.destroyed.get() :
"trying to use a destroyed object";
168 native_setData(this.nativeRef, data);
170 private native
void native_setData(
long _nativeRef,
byte[] data);
173 public boolean setTitle(String title)
175 assert !this.destroyed.get() :
"trying to use a destroyed object";
176 return native_setTitle(this.nativeRef, title);
178 private native
boolean native_setTitle(
long _nativeRef, String title);