54 public abstract boolean setColor(
float red,
float green,
float blue,
float alpha);
72 public abstract boolean setSize(
float width,
float height);
195 private final long nativeRef;
196 private final AtomicBoolean destroyed =
new AtomicBoolean(
false);
198 private CppProxy(
long nativeRef)
200 if (nativeRef == 0)
throw new RuntimeException(
"nativeRef is zero");
201 this.nativeRef = nativeRef;
204 private native
void nativeDestroy(
long nativeRef);
205 public void _djinni_private_destroy()
207 boolean destroyed = this.destroyed.getAndSet(
true);
208 if (!destroyed) nativeDestroy(this.nativeRef);
210 protected void finalize() throws
java.lang.Throwable
212 _djinni_private_destroy();
221 assert !this.destroyed.get() :
"trying to use a destroyed object";
222 return native_setPolyLine(this.nativeRef, polyline);
224 private native
boolean native_setPolyLine(
long _nativeRef,
LocationPolyline polyline);
227 public boolean setColor(
float red,
float green,
float blue,
float alpha)
229 assert !this.destroyed.get() :
"trying to use a destroyed object";
230 return native_setColor(this.nativeRef, red, green, blue, alpha);
232 private native
boolean native_setColor(
long _nativeRef,
float red,
float green,
float blue,
float alpha);
235 public boolean setSize(
float width,
float height)
237 assert !this.destroyed.get() :
"trying to use a destroyed object";
238 return native_setSize(this.nativeRef, width, height);
240 private native
boolean native_setSize(
long _nativeRef,
float width,
float height);
243 public boolean setCollisionEnabled(
boolean enabled)
245 assert !this.destroyed.get() :
"trying to use a destroyed object";
246 return native_setCollisionEnabled(this.nativeRef, enabled);
248 private native
boolean native_setCollisionEnabled(
long _nativeRef,
boolean enabled);
251 public boolean setPlacement(Placement placement)
253 assert !this.destroyed.get() :
"trying to use a destroyed object";
254 return native_setPlacement(this.nativeRef, placement);
256 private native
boolean native_setPlacement(
long _nativeRef, Placement placement);
259 public boolean setPlacementMinRatio(
float ratio)
261 assert !this.destroyed.get() :
"trying to use a destroyed object";
262 return native_setPlacementMinRatio(this.nativeRef, ratio);
264 private native
boolean native_setPlacementMinRatio(
long _nativeRef,
float ratio);
267 public boolean setPlacementSpacing(
float spacing)
269 assert !this.destroyed.get() :
"trying to use a destroyed object";
270 return native_setPlacementSpacing(this.nativeRef, spacing);
272 private native
boolean native_setPlacementSpacing(
long _nativeRef,
float spacing);
275 public boolean setRepeatDistance(
float distance)
277 assert !this.destroyed.get() :
"trying to use a destroyed object";
278 return native_setRepeatDistance(this.nativeRef, distance);
280 private native
boolean native_setRepeatDistance(
long _nativeRef,
float distance);
283 public boolean setRepeatGroup(
int group)
285 assert !this.destroyed.get() :
"trying to use a destroyed object";
286 return native_setRepeatGroup(this.nativeRef, group);
288 private native
boolean native_setRepeatGroup(
long _nativeRef,
int group);
291 public boolean setPriority(
float priority)
293 assert !this.destroyed.get() :
"trying to use a destroyed object";
294 return native_setPriority(this.nativeRef, priority);
296 private native
boolean native_setPriority(
long _nativeRef,
float priority);
303 assert !this.destroyed.get() :
"trying to use a destroyed object";
304 return native_getId(this.nativeRef);
306 private native
int native_getId(
long _nativeRef);
309 public MapObjectType getType()
311 assert !this.destroyed.get() :
"trying to use a destroyed object";
312 return native_getType(this.nativeRef);
314 private native MapObjectType native_getType(
long _nativeRef);
317 public byte[] getData()
319 assert !this.destroyed.get() :
"trying to use a destroyed object";
320 return native_getData(this.nativeRef);
322 private native
byte[] native_getData(
long _nativeRef);
325 public boolean setVisible(
boolean visible)
327 assert !this.destroyed.get() :
"trying to use a destroyed object";
328 return native_setVisible(this.nativeRef, visible);
330 private native
boolean native_setVisible(
long _nativeRef,
boolean visible);
333 public boolean setInteractive(
boolean interactive)
335 assert !this.destroyed.get() :
"trying to use a destroyed object";
336 return native_setInteractive(this.nativeRef, interactive);
338 private native
boolean native_setInteractive(
long _nativeRef,
boolean interactive);
341 public void setData(
byte[] data)
343 assert !this.destroyed.get() :
"trying to use a destroyed object";
344 native_setData(this.nativeRef, data);
346 private native
void native_setData(
long _nativeRef,
byte[] data);
349 public boolean setTitle(String title)
351 assert !this.destroyed.get() :
"trying to use a destroyed object";
352 return native_setTitle(this.nativeRef, title);
354 private native
boolean native_setTitle(
long _nativeRef, String title);
357 public boolean setAlpha(
float alpha)
359 assert !this.destroyed.get() :
"trying to use a destroyed object";
360 return native_setAlpha(this.nativeRef, alpha);
362 private native
boolean native_setAlpha(
long _nativeRef,
float alpha);