71 public abstract boolean setColor(
float red,
float green,
float blue,
float alpha);
159 public abstract boolean setOutlineColor(
float red,
float green,
float blue,
float alpha);
265 private final long nativeRef;
266 private final AtomicBoolean destroyed =
new AtomicBoolean(
false);
268 private CppProxy(
long nativeRef)
270 if (nativeRef == 0)
throw new RuntimeException(
"nativeRef is zero");
271 this.nativeRef = nativeRef;
274 private native
void nativeDestroy(
long nativeRef);
275 public void _djinni_private_destroy()
277 boolean destroyed = this.destroyed.getAndSet(
true);
278 if (!destroyed) nativeDestroy(this.nativeRef);
280 protected void finalize() throws
java.lang.Throwable
282 _djinni_private_destroy();
291 assert !this.destroyed.get() :
"trying to use a destroyed object";
292 return native_setPolyLine(this.nativeRef, polyline);
294 private native
boolean native_setPolyLine(
long _nativeRef,
LocationPolyline polyline);
297 public boolean setWidth(
float width)
299 assert !this.destroyed.get() :
"trying to use a destroyed object";
300 return native_setWidth(this.nativeRef, width);
302 private native
boolean native_setWidth(
long _nativeRef,
float width);
305 public boolean setColor(
float red,
float green,
float blue,
float alpha)
307 assert !this.destroyed.get() :
"trying to use a destroyed object";
308 return native_setColor(this.nativeRef, red, green, blue, alpha);
310 private native
boolean native_setColor(
long _nativeRef,
float red,
float green,
float blue,
float alpha);
313 public boolean setOrder(
int order)
315 assert !this.destroyed.get() :
"trying to use a destroyed object";
316 return native_setOrder(this.nativeRef, order);
318 private native
boolean native_setOrder(
long _nativeRef,
int order);
321 public boolean setCapType(CapType cap)
323 assert !this.destroyed.get() :
"trying to use a destroyed object";
324 return native_setCapType(this.nativeRef, cap);
326 private native
boolean native_setCapType(
long _nativeRef, CapType cap);
329 public boolean setJoinType(JoinType join)
331 assert !this.destroyed.get() :
"trying to use a destroyed object";
332 return native_setJoinType(this.nativeRef, join);
334 private native
boolean native_setJoinType(
long _nativeRef, JoinType join);
337 public boolean setMiterLimit(
float miterLimit)
339 assert !this.destroyed.get() :
"trying to use a destroyed object";
340 return native_setMiterLimit(this.nativeRef, miterLimit);
342 private native
boolean native_setMiterLimit(
long _nativeRef,
float miterLimit);
345 public boolean setOutlineColor(
float red,
float green,
float blue,
float alpha)
347 assert !this.destroyed.get() :
"trying to use a destroyed object";
348 return native_setOutlineColor(this.nativeRef, red, green, blue, alpha);
350 private native
boolean native_setOutlineColor(
long _nativeRef,
float red,
float green,
float blue,
float alpha);
353 public boolean setOutlineWidth(
float radius)
355 assert !this.destroyed.get() :
"trying to use a destroyed object";
356 return native_setOutlineWidth(this.nativeRef, radius);
358 private native
boolean native_setOutlineWidth(
long _nativeRef,
float radius);
361 public boolean setOutlineAlpha(
float alpha)
363 assert !this.destroyed.get() :
"trying to use a destroyed object";
364 return native_setOutlineAlpha(this.nativeRef, alpha);
366 private native
boolean native_setOutlineAlpha(
long _nativeRef,
float alpha);
369 public boolean setOutlineCapType(CapType cap)
371 assert !this.destroyed.get() :
"trying to use a destroyed object";
372 return native_setOutlineCapType(this.nativeRef, cap);
374 private native
boolean native_setOutlineCapType(
long _nativeRef, CapType cap);
377 public boolean setOutlineJoinType(JoinType join)
379 assert !this.destroyed.get() :
"trying to use a destroyed object";
380 return native_setOutlineJoinType(this.nativeRef, join);
382 private native
boolean native_setOutlineJoinType(
long _nativeRef, JoinType join);
385 public boolean setOutlineMiterLimit(
float miterLimit)
387 assert !this.destroyed.get() :
"trying to use a destroyed object";
388 return native_setOutlineMiterLimit(this.nativeRef, miterLimit);
390 private native
boolean native_setOutlineMiterLimit(
long _nativeRef,
float miterLimit);
393 public boolean setOutlineOrder(
int order)
395 assert !this.destroyed.get() :
"trying to use a destroyed object";
396 return native_setOutlineOrder(this.nativeRef, order);
398 private native
boolean native_setOutlineOrder(
long _nativeRef,
int order);
405 assert !this.destroyed.get() :
"trying to use a destroyed object";
406 return native_getId(this.nativeRef);
408 private native
int native_getId(
long _nativeRef);
411 public MapObjectType getType()
413 assert !this.destroyed.get() :
"trying to use a destroyed object";
414 return native_getType(this.nativeRef);
416 private native MapObjectType native_getType(
long _nativeRef);
419 public byte[] getData()
421 assert !this.destroyed.get() :
"trying to use a destroyed object";
422 return native_getData(this.nativeRef);
424 private native
byte[] native_getData(
long _nativeRef);
427 public boolean setVisible(
boolean visible)
429 assert !this.destroyed.get() :
"trying to use a destroyed object";
430 return native_setVisible(this.nativeRef, visible);
432 private native
boolean native_setVisible(
long _nativeRef,
boolean visible);
435 public boolean setInteractive(
boolean interactive)
437 assert !this.destroyed.get() :
"trying to use a destroyed object";
438 return native_setInteractive(this.nativeRef, interactive);
440 private native
boolean native_setInteractive(
long _nativeRef,
boolean interactive);
443 public void setData(
byte[] data)
445 assert !this.destroyed.get() :
"trying to use a destroyed object";
446 native_setData(this.nativeRef, data);
448 private native
void native_setData(
long _nativeRef,
byte[] data);
451 public boolean setTitle(String title)
453 assert !this.destroyed.get() :
"trying to use a destroyed object";
454 return native_setTitle(this.nativeRef, title);
456 private native
boolean native_setTitle(
long _nativeRef, String title);
459 public boolean setAlpha(
float alpha)
461 assert !this.destroyed.get() :
"trying to use a destroyed object";
462 return native_setAlpha(this.nativeRef, alpha);
464 private native
boolean native_setAlpha(
long _nativeRef,
float alpha);