72 public abstract boolean setModel(com.navigine.model.ModelProvider model);
88 public abstract boolean setSize(
float width,
float height);
152 public abstract boolean setBuffer(
float width,
float height);
172 private final long nativeRef;
173 private final AtomicBoolean destroyed =
new AtomicBoolean(
false);
175 private CppProxy(
long nativeRef)
177 if (nativeRef == 0)
throw new RuntimeException(
"nativeRef is zero");
178 this.nativeRef = nativeRef;
181 private native
void nativeDestroy(
long nativeRef);
182 public void _djinni_private_destroy()
184 boolean destroyed = this.destroyed.getAndSet(
true);
185 if (!destroyed) nativeDestroy(this.nativeRef);
187 protected void finalize() throws
java.lang.Throwable
189 _djinni_private_destroy();
198 assert !this.destroyed.get() :
"trying to use a destroyed object";
199 return native_setPosition(this.nativeRef, point);
201 private native
boolean native_setPosition(
long _nativeRef,
LocationPoint point);
206 assert !this.destroyed.get() :
"trying to use a destroyed object";
207 return native_setPositionAnimated(this.nativeRef, point, duration, type);
212 public boolean setModel(com.navigine.model.ModelProvider model)
214 assert !this.destroyed.get() :
"trying to use a destroyed object";
215 return native_setModel(this.nativeRef, model);
217 private native
boolean native_setModel(
long _nativeRef, com.navigine.model.ModelProvider model);
220 public boolean setSize(
float width,
float height)
222 assert !this.destroyed.get() :
"trying to use a destroyed object";
223 return native_setSize(this.nativeRef, width, height);
225 private native
boolean native_setSize(
long _nativeRef,
float width,
float height);
228 public boolean setCollisionEnabled(
boolean enabled)
230 assert !this.destroyed.get() :
"trying to use a destroyed object";
231 return native_setCollisionEnabled(this.nativeRef, enabled);
233 private native
boolean native_setCollisionEnabled(
long _nativeRef,
boolean enabled);
236 public boolean setAngle(
float angle)
238 assert !this.destroyed.get() :
"trying to use a destroyed object";
239 return native_setAngle(this.nativeRef, angle);
241 private native
boolean native_setAngle(
long _nativeRef,
float angle);
244 public boolean setAngleAnimated(
float angle,
float duration, AnimationType type)
246 assert !this.destroyed.get() :
"trying to use a destroyed object";
247 return native_setAngleAnimated(this.nativeRef, angle, duration, type);
249 private native
boolean native_setAngleAnimated(
long _nativeRef,
float angle,
float duration, AnimationType type);
252 public boolean setBuffer(
float width,
float height)
254 assert !this.destroyed.get() :
"trying to use a destroyed object";
255 return native_setBuffer(this.nativeRef, width, height);
257 private native
boolean native_setBuffer(
long _nativeRef,
float width,
float height);
260 public boolean setPriority(
float priority)
262 assert !this.destroyed.get() :
"trying to use a destroyed object";
263 return native_setPriority(this.nativeRef, priority);
265 private native
boolean native_setPriority(
long _nativeRef,
float priority);
272 assert !this.destroyed.get() :
"trying to use a destroyed object";
273 return native_getId(this.nativeRef);
275 private native
int native_getId(
long _nativeRef);
278 public MapObjectType getType()
280 assert !this.destroyed.get() :
"trying to use a destroyed object";
281 return native_getType(this.nativeRef);
283 private native MapObjectType native_getType(
long _nativeRef);
286 public byte[] getData()
288 assert !this.destroyed.get() :
"trying to use a destroyed object";
289 return native_getData(this.nativeRef);
291 private native
byte[] native_getData(
long _nativeRef);
294 public boolean setVisible(
boolean visible)
296 assert !this.destroyed.get() :
"trying to use a destroyed object";
297 return native_setVisible(this.nativeRef, visible);
299 private native
boolean native_setVisible(
long _nativeRef,
boolean visible);
302 public boolean setInteractive(
boolean interactive)
304 assert !this.destroyed.get() :
"trying to use a destroyed object";
305 return native_setInteractive(this.nativeRef, interactive);
307 private native
boolean native_setInteractive(
long _nativeRef,
boolean interactive);
310 public void setData(
byte[] data)
312 assert !this.destroyed.get() :
"trying to use a destroyed object";
313 native_setData(this.nativeRef, data);
315 private native
void native_setData(
long _nativeRef,
byte[] data);
318 public boolean setTitle(String title)
320 assert !this.destroyed.get() :
"trying to use a destroyed object";
321 return native_setTitle(this.nativeRef, title);
323 private native
boolean native_setTitle(
long _nativeRef, String title);
326 public boolean setAlpha(
float alpha)
328 assert !this.destroyed.get() :
"trying to use a destroyed object";
329 return native_setAlpha(this.nativeRef, alpha);
331 private native
boolean native_setAlpha(
long _nativeRef,
float alpha);