72 public abstract boolean setBitmap(android.graphics.Bitmap bitmap);
90 public abstract boolean setSize(
float width,
float height);
161 public abstract boolean setBuffer(
float width,
float height);
179 public abstract boolean setOffset(
float width,
float height);
213 public abstract boolean setFlat(
boolean flat);
217 private final long nativeRef;
218 private final AtomicBoolean destroyed =
new AtomicBoolean(
false);
220 private CppProxy(
long nativeRef)
222 if (nativeRef == 0)
throw new RuntimeException(
"nativeRef is zero");
223 this.nativeRef = nativeRef;
226 private native
void nativeDestroy(
long nativeRef);
227 public void _djinni_private_destroy()
229 boolean destroyed = this.destroyed.getAndSet(
true);
230 if (!destroyed) nativeDestroy(this.nativeRef);
232 protected void finalize() throws
java.lang.Throwable
234 _djinni_private_destroy();
243 assert !this.destroyed.get() :
"trying to use a destroyed object";
244 return native_setPosition(this.nativeRef, point);
246 private native
boolean native_setPosition(
long _nativeRef,
LocationPoint point);
251 assert !this.destroyed.get() :
"trying to use a destroyed object";
252 return native_setPositionAnimated(this.nativeRef, point, duration, type);
257 public boolean setBitmap(android.graphics.Bitmap bitmap)
259 assert !this.destroyed.get() :
"trying to use a destroyed object";
260 return native_setBitmap(this.nativeRef, bitmap);
262 private native
boolean native_setBitmap(
long _nativeRef, android.graphics.Bitmap bitmap);
265 public boolean setSize(
float width,
float height)
267 assert !this.destroyed.get() :
"trying to use a destroyed object";
268 return native_setSize(this.nativeRef, width, height);
270 private native
boolean native_setSize(
long _nativeRef,
float width,
float height);
273 public boolean setCollisionEnabled(
boolean enabled)
275 assert !this.destroyed.get() :
"trying to use a destroyed object";
276 return native_setCollisionEnabled(this.nativeRef, enabled);
278 private native
boolean native_setCollisionEnabled(
long _nativeRef,
boolean enabled);
281 public boolean setAngle(
float angle)
283 assert !this.destroyed.get() :
"trying to use a destroyed object";
284 return native_setAngle(this.nativeRef, angle);
286 private native
boolean native_setAngle(
long _nativeRef,
float angle);
289 public boolean setAngleAnimated(
float angle,
float duration, AnimationType type)
291 assert !this.destroyed.get() :
"trying to use a destroyed object";
292 return native_setAngleAnimated(this.nativeRef, angle, duration, type);
294 private native
boolean native_setAngleAnimated(
long _nativeRef,
float angle,
float duration, AnimationType type);
297 public boolean setBuffer(
float width,
float height)
299 assert !this.destroyed.get() :
"trying to use a destroyed object";
300 return native_setBuffer(this.nativeRef, width, height);
302 private native
boolean native_setBuffer(
long _nativeRef,
float width,
float height);
305 public boolean setOffset(
float width,
float height)
307 assert !this.destroyed.get() :
"trying to use a destroyed object";
308 return native_setOffset(this.nativeRef, width, height);
310 private native
boolean native_setOffset(
long _nativeRef,
float width,
float height);
313 public boolean setPriority(
float priority)
315 assert !this.destroyed.get() :
"trying to use a destroyed object";
316 return native_setPriority(this.nativeRef, priority);
318 private native
boolean native_setPriority(
long _nativeRef,
float priority);
321 public boolean setFlat(
boolean flat)
323 assert !this.destroyed.get() :
"trying to use a destroyed object";
324 return native_setFlat(this.nativeRef, flat);
326 private native
boolean native_setFlat(
long _nativeRef,
boolean flat);
333 assert !this.destroyed.get() :
"trying to use a destroyed object";
334 return native_getId(this.nativeRef);
336 private native
int native_getId(
long _nativeRef);
339 public MapObjectType getType()
341 assert !this.destroyed.get() :
"trying to use a destroyed object";
342 return native_getType(this.nativeRef);
344 private native MapObjectType native_getType(
long _nativeRef);
347 public byte[] getData()
349 assert !this.destroyed.get() :
"trying to use a destroyed object";
350 return native_getData(this.nativeRef);
352 private native
byte[] native_getData(
long _nativeRef);
355 public boolean setVisible(
boolean visible)
357 assert !this.destroyed.get() :
"trying to use a destroyed object";
358 return native_setVisible(this.nativeRef, visible);
360 private native
boolean native_setVisible(
long _nativeRef,
boolean visible);
363 public boolean setInteractive(
boolean interactive)
365 assert !this.destroyed.get() :
"trying to use a destroyed object";
366 return native_setInteractive(this.nativeRef, interactive);
368 private native
boolean native_setInteractive(
long _nativeRef,
boolean interactive);
371 public void setData(
byte[] data)
373 assert !this.destroyed.get() :
"trying to use a destroyed object";
374 native_setData(this.nativeRef, data);
376 private native
void native_setData(
long _nativeRef,
byte[] data);
379 public boolean setTitle(String title)
381 assert !this.destroyed.get() :
"trying to use a destroyed object";
382 return native_setTitle(this.nativeRef, title);
384 private native
boolean native_setTitle(
long _nativeRef, String title);
387 public boolean setAlpha(
float alpha)
389 assert !this.destroyed.get() :
"trying to use a destroyed object";
390 return native_setAlpha(this.nativeRef, alpha);
392 private native
boolean native_setAlpha(
long _nativeRef,
float alpha);