45 public abstract boolean setColor(
float red,
float green,
float blue,
float alpha);
93 public abstract boolean setOutlineColor(
float red,
float green,
float blue,
float alpha);
151 private final long nativeRef;
152 private final AtomicBoolean destroyed =
new AtomicBoolean(
false);
154 private CppProxy(
long nativeRef)
156 if (nativeRef == 0)
throw new RuntimeException(
"nativeRef is zero");
157 this.nativeRef = nativeRef;
160 private native
void nativeDestroy(
long nativeRef);
161 public void _djinni_private_destroy()
163 boolean destroyed = this.destroyed.getAndSet(
true);
164 if (!destroyed) nativeDestroy(this.nativeRef);
166 protected void finalize() throws
java.lang.Throwable
168 _djinni_private_destroy();
177 assert !this.destroyed.get() :
"trying to use a destroyed object";
178 return native_setPolyLine(this.nativeRef, polyline);
180 private native
boolean native_setPolyLine(
long _nativeRef,
LocationPolyline polyline);
183 public boolean setWidth(
float width)
185 assert !this.destroyed.get() :
"trying to use a destroyed object";
186 return native_setWidth(this.nativeRef, width);
188 private native
boolean native_setWidth(
long _nativeRef,
float width);
191 public boolean setColor(
float red,
float green,
float blue,
float alpha)
193 assert !this.destroyed.get() :
"trying to use a destroyed object";
194 return native_setColor(this.nativeRef, red, green, blue, alpha);
196 private native
boolean native_setColor(
long _nativeRef,
float red,
float green,
float blue,
float alpha);
199 public boolean setOrder(
int order)
201 assert !this.destroyed.get() :
"trying to use a destroyed object";
202 return native_setOrder(this.nativeRef, order);
204 private native
boolean native_setOrder(
long _nativeRef,
int order);
207 public boolean setCapType(CapType cap)
209 assert !this.destroyed.get() :
"trying to use a destroyed object";
210 return native_setCapType(this.nativeRef, cap);
212 private native
boolean native_setCapType(
long _nativeRef, CapType cap);
215 public boolean setJoinType(JoinType join)
217 assert !this.destroyed.get() :
"trying to use a destroyed object";
218 return native_setJoinType(this.nativeRef, join);
220 private native
boolean native_setJoinType(
long _nativeRef, JoinType join);
223 public boolean setMiterLimit(
float miterLimit)
225 assert !this.destroyed.get() :
"trying to use a destroyed object";
226 return native_setMiterLimit(this.nativeRef, miterLimit);
228 private native
boolean native_setMiterLimit(
long _nativeRef,
float miterLimit);
231 public boolean setOutlineColor(
float red,
float green,
float blue,
float alpha)
233 assert !this.destroyed.get() :
"trying to use a destroyed object";
234 return native_setOutlineColor(this.nativeRef, red, green, blue, alpha);
236 private native
boolean native_setOutlineColor(
long _nativeRef,
float red,
float green,
float blue,
float alpha);
239 public boolean setOutlineWidth(
float radius)
241 assert !this.destroyed.get() :
"trying to use a destroyed object";
242 return native_setOutlineWidth(this.nativeRef, radius);
244 private native
boolean native_setOutlineWidth(
long _nativeRef,
float radius);
247 public boolean setOutlineAlpha(
float alpha)
249 assert !this.destroyed.get() :
"trying to use a destroyed object";
250 return native_setOutlineAlpha(this.nativeRef, alpha);
252 private native
boolean native_setOutlineAlpha(
long _nativeRef,
float alpha);
255 public boolean setOutlineCapType(CapType cap)
257 assert !this.destroyed.get() :
"trying to use a destroyed object";
258 return native_setOutlineCapType(this.nativeRef, cap);
260 private native
boolean native_setOutlineCapType(
long _nativeRef, CapType cap);
263 public boolean setOutlineJoinType(JoinType join)
265 assert !this.destroyed.get() :
"trying to use a destroyed object";
266 return native_setOutlineJoinType(this.nativeRef, join);
268 private native
boolean native_setOutlineJoinType(
long _nativeRef, JoinType join);
271 public boolean setOutlineMiterLimit(
float miterLimit)
273 assert !this.destroyed.get() :
"trying to use a destroyed object";
274 return native_setOutlineMiterLimit(this.nativeRef, miterLimit);
276 private native
boolean native_setOutlineMiterLimit(
long _nativeRef,
float miterLimit);
279 public boolean setOutlineOrder(
int order)
281 assert !this.destroyed.get() :
"trying to use a destroyed object";
282 return native_setOutlineOrder(this.nativeRef, order);
284 private native
boolean native_setOutlineOrder(
long _nativeRef,
int order);
291 assert !this.destroyed.get() :
"trying to use a destroyed object";
292 return native_getId(this.nativeRef);
294 private native
int native_getId(
long _nativeRef);
297 public MapObjectType getType()
299 assert !this.destroyed.get() :
"trying to use a destroyed object";
300 return native_getType(this.nativeRef);
302 private native MapObjectType native_getType(
long _nativeRef);
305 public byte[] getData()
307 assert !this.destroyed.get() :
"trying to use a destroyed object";
308 return native_getData(this.nativeRef);
310 private native
byte[] native_getData(
long _nativeRef);
313 public boolean setVisible(
boolean visible)
315 assert !this.destroyed.get() :
"trying to use a destroyed object";
316 return native_setVisible(this.nativeRef, visible);
318 private native
boolean native_setVisible(
long _nativeRef,
boolean visible);
321 public boolean setInteractive(
boolean interactive)
323 assert !this.destroyed.get() :
"trying to use a destroyed object";
324 return native_setInteractive(this.nativeRef, interactive);
326 private native
boolean native_setInteractive(
long _nativeRef,
boolean interactive);
329 public void setData(
byte[] data)
331 assert !this.destroyed.get() :
"trying to use a destroyed object";
332 native_setData(this.nativeRef, data);
334 private native
void native_setData(
long _nativeRef,
byte[] data);
337 public boolean setTitle(String title)
339 assert !this.destroyed.get() :
"trying to use a destroyed object";
340 return native_setTitle(this.nativeRef, title);
342 private native
boolean native_setTitle(
long _nativeRef, String title);
345 public boolean setAlpha(
float alpha)
347 assert !this.destroyed.get() :
"trying to use a destroyed object";
348 return native_setAlpha(this.nativeRef, alpha);
350 private native
boolean native_setAlpha(
long _nativeRef,
float alpha);