49 public abstract boolean setColor(
float red,
float green,
float blue,
float alpha);
77 public abstract boolean setBuffer(
float width,
float height);
87 public abstract boolean setOffset(
float width,
float height);
108 public abstract boolean setOutlineColor(
float red,
float green,
float blue,
float alpha);
130 private final long nativeRef;
131 private final AtomicBoolean destroyed =
new AtomicBoolean(
false);
133 private CppProxy(
long nativeRef)
135 if (nativeRef == 0)
throw new RuntimeException(
"nativeRef is zero");
136 this.nativeRef = nativeRef;
139 private native
void nativeDestroy(
long nativeRef);
140 public void _djinni_private_destroy()
142 boolean destroyed = this.destroyed.getAndSet(
true);
143 if (!destroyed) nativeDestroy(this.nativeRef);
145 protected void finalize() throws
java.lang.Throwable
147 _djinni_private_destroy();
156 assert !this.destroyed.get() :
"trying to use a destroyed object";
157 return native_setPosition(this.nativeRef, point);
159 private native
boolean native_setPosition(
long _nativeRef,
LocationPoint point);
164 assert !this.destroyed.get() :
"trying to use a destroyed object";
165 return native_setPositionAnimated(this.nativeRef, point, duration, type);
170 public boolean setColor(
float red,
float green,
float blue,
float alpha)
172 assert !this.destroyed.get() :
"trying to use a destroyed object";
173 return native_setColor(this.nativeRef, red, green, blue, alpha);
175 private native
boolean native_setColor(
long _nativeRef,
float red,
float green,
float blue,
float alpha);
178 public boolean setRadius(
float radius)
180 assert !this.destroyed.get() :
"trying to use a destroyed object";
181 return native_setRadius(this.nativeRef, radius);
183 private native
boolean native_setRadius(
long _nativeRef,
float radius);
186 public boolean setCollisionEnabled(
boolean enabled)
188 assert !this.destroyed.get() :
"trying to use a destroyed object";
189 return native_setCollisionEnabled(this.nativeRef, enabled);
191 private native
boolean native_setCollisionEnabled(
long _nativeRef,
boolean enabled);
194 public boolean setBuffer(
float width,
float height)
196 assert !this.destroyed.get() :
"trying to use a destroyed object";
197 return native_setBuffer(this.nativeRef, width, height);
199 private native
boolean native_setBuffer(
long _nativeRef,
float width,
float height);
202 public boolean setOffset(
float width,
float height)
204 assert !this.destroyed.get() :
"trying to use a destroyed object";
205 return native_setOffset(this.nativeRef, width, height);
207 private native
boolean native_setOffset(
long _nativeRef,
float width,
float height);
210 public boolean setPriority(
float priority)
212 assert !this.destroyed.get() :
"trying to use a destroyed object";
213 return native_setPriority(this.nativeRef, priority);
215 private native
boolean native_setPriority(
long _nativeRef,
float priority);
218 public boolean setOutlineColor(
float red,
float green,
float blue,
float alpha)
220 assert !this.destroyed.get() :
"trying to use a destroyed object";
221 return native_setOutlineColor(this.nativeRef, red, green, blue, alpha);
223 private native
boolean native_setOutlineColor(
long _nativeRef,
float red,
float green,
float blue,
float alpha);
226 public boolean setOutlineRadius(
float radius)
228 assert !this.destroyed.get() :
"trying to use a destroyed object";
229 return native_setOutlineRadius(this.nativeRef, radius);
231 private native
boolean native_setOutlineRadius(
long _nativeRef,
float radius);
234 public boolean setOutlineAlpha(
float alpha)
236 assert !this.destroyed.get() :
"trying to use a destroyed object";
237 return native_setOutlineAlpha(this.nativeRef, alpha);
239 private native
boolean native_setOutlineAlpha(
long _nativeRef,
float alpha);
246 assert !this.destroyed.get() :
"trying to use a destroyed object";
247 return native_getId(this.nativeRef);
249 private native
int native_getId(
long _nativeRef);
252 public MapObjectType getType()
254 assert !this.destroyed.get() :
"trying to use a destroyed object";
255 return native_getType(this.nativeRef);
257 private native MapObjectType native_getType(
long _nativeRef);
260 public byte[] getData()
262 assert !this.destroyed.get() :
"trying to use a destroyed object";
263 return native_getData(this.nativeRef);
265 private native
byte[] native_getData(
long _nativeRef);
268 public boolean setVisible(
boolean visible)
270 assert !this.destroyed.get() :
"trying to use a destroyed object";
271 return native_setVisible(this.nativeRef, visible);
273 private native
boolean native_setVisible(
long _nativeRef,
boolean visible);
276 public boolean setInteractive(
boolean interactive)
278 assert !this.destroyed.get() :
"trying to use a destroyed object";
279 return native_setInteractive(this.nativeRef, interactive);
281 private native
boolean native_setInteractive(
long _nativeRef,
boolean interactive);
284 public void setData(
byte[] data)
286 assert !this.destroyed.get() :
"trying to use a destroyed object";
287 native_setData(this.nativeRef, data);
289 private native
void native_setData(
long _nativeRef,
byte[] data);
292 public boolean setTitle(String title)
294 assert !this.destroyed.get() :
"trying to use a destroyed object";
295 return native_setTitle(this.nativeRef, title);
297 private native
boolean native_setTitle(
long _nativeRef, String title);
300 public boolean setAlpha(
float alpha)
302 assert !this.destroyed.get() :
"trying to use a destroyed object";
303 return native_setAlpha(this.nativeRef, alpha);
305 private native
boolean native_setAlpha(
long _nativeRef,
float alpha);