36 public abstract boolean setColor(
float red,
float green,
float blue,
float alpha);
46 public abstract boolean setSize(
float width,
float height);
113 private final long nativeRef;
114 private final AtomicBoolean destroyed =
new AtomicBoolean(
false);
116 private CppProxy(
long nativeRef)
118 if (nativeRef == 0)
throw new RuntimeException(
"nativeRef is zero");
119 this.nativeRef = nativeRef;
122 private native
void nativeDestroy(
long nativeRef);
123 public void _djinni_private_destroy()
125 boolean destroyed = this.destroyed.getAndSet(
true);
126 if (!destroyed) nativeDestroy(this.nativeRef);
128 protected void finalize() throws
java.lang.Throwable
130 _djinni_private_destroy();
139 assert !this.destroyed.get() :
"trying to use a destroyed object";
140 return native_setPolyLine(this.nativeRef, polyline);
142 private native
boolean native_setPolyLine(
long _nativeRef,
LocationPolyline polyline);
145 public boolean setColor(
float red,
float green,
float blue,
float alpha)
147 assert !this.destroyed.get() :
"trying to use a destroyed object";
148 return native_setColor(this.nativeRef, red, green, blue, alpha);
150 private native
boolean native_setColor(
long _nativeRef,
float red,
float green,
float blue,
float alpha);
153 public boolean setSize(
float width,
float height)
155 assert !this.destroyed.get() :
"trying to use a destroyed object";
156 return native_setSize(this.nativeRef, width, height);
158 private native
boolean native_setSize(
long _nativeRef,
float width,
float height);
161 public boolean setCollisionEnabled(
boolean enabled)
163 assert !this.destroyed.get() :
"trying to use a destroyed object";
164 return native_setCollisionEnabled(this.nativeRef, enabled);
166 private native
boolean native_setCollisionEnabled(
long _nativeRef,
boolean enabled);
169 public boolean setPlacement(Placement placement)
171 assert !this.destroyed.get() :
"trying to use a destroyed object";
172 return native_setPlacement(this.nativeRef, placement);
174 private native
boolean native_setPlacement(
long _nativeRef, Placement placement);
177 public boolean setPlacementMinRatio(
float ratio)
179 assert !this.destroyed.get() :
"trying to use a destroyed object";
180 return native_setPlacementMinRatio(this.nativeRef, ratio);
182 private native
boolean native_setPlacementMinRatio(
long _nativeRef,
float ratio);
185 public boolean setPlacementSpacing(
float spacing)
187 assert !this.destroyed.get() :
"trying to use a destroyed object";
188 return native_setPlacementSpacing(this.nativeRef, spacing);
190 private native
boolean native_setPlacementSpacing(
long _nativeRef,
float spacing);
193 public boolean setRepeatDistance(
float distance)
195 assert !this.destroyed.get() :
"trying to use a destroyed object";
196 return native_setRepeatDistance(this.nativeRef, distance);
198 private native
boolean native_setRepeatDistance(
long _nativeRef,
float distance);
201 public boolean setRepeatGroup(
int group)
203 assert !this.destroyed.get() :
"trying to use a destroyed object";
204 return native_setRepeatGroup(this.nativeRef, group);
206 private native
boolean native_setRepeatGroup(
long _nativeRef,
int group);
209 public boolean setPriority(
float priority)
211 assert !this.destroyed.get() :
"trying to use a destroyed object";
212 return native_setPriority(this.nativeRef, priority);
214 private native
boolean native_setPriority(
long _nativeRef,
float priority);
221 assert !this.destroyed.get() :
"trying to use a destroyed object";
222 return native_getId(this.nativeRef);
224 private native
int native_getId(
long _nativeRef);
227 public MapObjectType getType()
229 assert !this.destroyed.get() :
"trying to use a destroyed object";
230 return native_getType(this.nativeRef);
232 private native MapObjectType native_getType(
long _nativeRef);
235 public byte[] getData()
237 assert !this.destroyed.get() :
"trying to use a destroyed object";
238 return native_getData(this.nativeRef);
240 private native
byte[] native_getData(
long _nativeRef);
243 public boolean setVisible(
boolean visible)
245 assert !this.destroyed.get() :
"trying to use a destroyed object";
246 return native_setVisible(this.nativeRef, visible);
248 private native
boolean native_setVisible(
long _nativeRef,
boolean visible);
251 public boolean setInteractive(
boolean interactive)
253 assert !this.destroyed.get() :
"trying to use a destroyed object";
254 return native_setInteractive(this.nativeRef, interactive);
256 private native
boolean native_setInteractive(
long _nativeRef,
boolean interactive);
259 public void setData(
byte[] data)
261 assert !this.destroyed.get() :
"trying to use a destroyed object";
262 native_setData(this.nativeRef, data);
264 private native
void native_setData(
long _nativeRef,
byte[] data);
267 public boolean setTitle(String title)
269 assert !this.destroyed.get() :
"trying to use a destroyed object";
270 return native_setTitle(this.nativeRef, title);
272 private native
boolean native_setTitle(
long _nativeRef, String title);
275 public boolean setAlpha(
float alpha)
277 assert !this.destroyed.get() :
"trying to use a destroyed object";
278 return native_setAlpha(this.nativeRef, alpha);
280 private native
boolean native_setAlpha(
long _nativeRef,
float alpha);