48 public abstract boolean setBitmap(android.graphics.Bitmap bitmap);
58 public abstract boolean setSize(
float width,
float height);
97 public abstract boolean setBuffer(
float width,
float height);
107 public abstract boolean setOffset(
float width,
float height);
125 public abstract boolean setFlat(
boolean flat);
129 private final long nativeRef;
130 private final AtomicBoolean destroyed =
new AtomicBoolean(
false);
132 private CppProxy(
long nativeRef)
134 if (nativeRef == 0)
throw new RuntimeException(
"nativeRef is zero");
135 this.nativeRef = nativeRef;
138 private native
void nativeDestroy(
long nativeRef);
139 public void _djinni_private_destroy()
141 boolean destroyed = this.destroyed.getAndSet(
true);
142 if (!destroyed) nativeDestroy(this.nativeRef);
144 protected void finalize() throws
java.lang.Throwable
146 _djinni_private_destroy();
155 assert !this.destroyed.get() :
"trying to use a destroyed object";
156 return native_setPosition(this.nativeRef, point);
158 private native
boolean native_setPosition(
long _nativeRef,
LocationPoint point);
163 assert !this.destroyed.get() :
"trying to use a destroyed object";
164 return native_setPositionAnimated(this.nativeRef, point, duration, type);
169 public boolean setBitmap(android.graphics.Bitmap bitmap)
171 assert !this.destroyed.get() :
"trying to use a destroyed object";
172 return native_setBitmap(this.nativeRef, bitmap);
174 private native
boolean native_setBitmap(
long _nativeRef, android.graphics.Bitmap bitmap);
177 public boolean setSize(
float width,
float height)
179 assert !this.destroyed.get() :
"trying to use a destroyed object";
180 return native_setSize(this.nativeRef, width, height);
182 private native
boolean native_setSize(
long _nativeRef,
float width,
float height);
185 public boolean setCollisionEnabled(
boolean enabled)
187 assert !this.destroyed.get() :
"trying to use a destroyed object";
188 return native_setCollisionEnabled(this.nativeRef, enabled);
190 private native
boolean native_setCollisionEnabled(
long _nativeRef,
boolean enabled);
193 public boolean setAngle(
float angle)
195 assert !this.destroyed.get() :
"trying to use a destroyed object";
196 return native_setAngle(this.nativeRef, angle);
198 private native
boolean native_setAngle(
long _nativeRef,
float angle);
201 public boolean setAngleAnimated(
double angle,
float duration, AnimationType type)
203 assert !this.destroyed.get() :
"trying to use a destroyed object";
204 return native_setAngleAnimated(this.nativeRef, angle, duration, type);
206 private native
boolean native_setAngleAnimated(
long _nativeRef,
double angle,
float duration, AnimationType type);
209 public boolean setBuffer(
float width,
float height)
211 assert !this.destroyed.get() :
"trying to use a destroyed object";
212 return native_setBuffer(this.nativeRef, width, height);
214 private native
boolean native_setBuffer(
long _nativeRef,
float width,
float height);
217 public boolean setOffset(
float width,
float height)
219 assert !this.destroyed.get() :
"trying to use a destroyed object";
220 return native_setOffset(this.nativeRef, width, height);
222 private native
boolean native_setOffset(
long _nativeRef,
float width,
float height);
225 public boolean setPriority(
float priority)
227 assert !this.destroyed.get() :
"trying to use a destroyed object";
228 return native_setPriority(this.nativeRef, priority);
230 private native
boolean native_setPriority(
long _nativeRef,
float priority);
233 public boolean setFlat(
boolean flat)
235 assert !this.destroyed.get() :
"trying to use a destroyed object";
236 return native_setFlat(this.nativeRef, flat);
238 private native
boolean native_setFlat(
long _nativeRef,
boolean flat);
245 assert !this.destroyed.get() :
"trying to use a destroyed object";
246 return native_getId(this.nativeRef);
248 private native
int native_getId(
long _nativeRef);
251 public MapObjectType getType()
253 assert !this.destroyed.get() :
"trying to use a destroyed object";
254 return native_getType(this.nativeRef);
256 private native MapObjectType native_getType(
long _nativeRef);
259 public byte[] getData()
261 assert !this.destroyed.get() :
"trying to use a destroyed object";
262 return native_getData(this.nativeRef);
264 private native
byte[] native_getData(
long _nativeRef);
267 public boolean setVisible(
boolean visible)
269 assert !this.destroyed.get() :
"trying to use a destroyed object";
270 return native_setVisible(this.nativeRef, visible);
272 private native
boolean native_setVisible(
long _nativeRef,
boolean visible);
275 public boolean setInteractive(
boolean interactive)
277 assert !this.destroyed.get() :
"trying to use a destroyed object";
278 return native_setInteractive(this.nativeRef, interactive);
280 private native
boolean native_setInteractive(
long _nativeRef,
boolean interactive);
283 public void setData(
byte[] data)
285 assert !this.destroyed.get() :
"trying to use a destroyed object";
286 native_setData(this.nativeRef, data);
288 private native
void native_setData(
long _nativeRef,
byte[] data);
291 public boolean setTitle(String title)
293 assert !this.destroyed.get() :
"trying to use a destroyed object";
294 return native_setTitle(this.nativeRef, title);
296 private native
boolean native_setTitle(
long _nativeRef, String title);
299 public boolean setAlpha(
float alpha)
301 assert !this.destroyed.get() :
"trying to use a destroyed object";
302 return native_setAlpha(this.nativeRef, alpha);
304 private native
boolean native_setAlpha(
long _nativeRef,
float alpha);