Loading...
Searching...
No Matches
PolygonMapObjectBinding.java
Go to the documentation of this file.
1package com.navigine.idl.java.internal;
2
3import com.navigine.common.NativeObject;
4import com.navigine.idl.java.LocationPolygon;
5import com.navigine.idl.java.MapObjectType;
6import com.navigine.idl.java.PolygonMapObject;
7import com.navigine.idl.java.TitleStyle;
8
13public final class PolygonMapObjectBinding extends PolygonMapObject
14{
15 private final NativeObject nativeObject;
16
17 PolygonMapObjectBinding(NativeObject nativeObject)
18 {
19 this.nativeObject = nativeObject;
20 }
21
22 @Override
23 public native boolean isValid();
24
25 // PolygonMapObject methods
26
27 @Override
28 public boolean setPolygon(LocationPolygon polygon)
29 {
30 return native_setPolygon(polygon);
31 }
32 private native boolean native_setPolygon(LocationPolygon polygon);
33
34 @Override
35 public boolean setColor(int color)
36 {
37 return native_setColor(color);
38 }
39 private native boolean native_setColor(int color);
40
41 @Override
42 public boolean setOrder(int order)
43 {
44 return native_setOrder(order);
45 }
46 private native boolean native_setOrder(int order);
47
48 @Override
49 public boolean setOutlineColor(int color)
50 {
51 return native_setOutlineColor(color);
52 }
53 private native boolean native_setOutlineColor(int color);
54
55 @Override
56 public boolean setOutlineWidth(float width)
57 {
58 return native_setOutlineWidth(width);
59 }
60 private native boolean native_setOutlineWidth(float width);
61
62 @Override
63 public boolean setOutlineAlpha(float alpha)
64 {
65 return native_setOutlineAlpha(alpha);
66 }
67 private native boolean native_setOutlineAlpha(float alpha);
68
69 @Override
70 public boolean setOutlineOrder(int order)
71 {
72 return native_setOutlineOrder(order);
73 }
74 private native boolean native_setOutlineOrder(int order);
75
76 // MapObject methods
77
78 @Override
79 public int getId()
80 {
81 return native_getId();
82 }
83 private native int native_getId();
84
85 @Override
87 {
88 return native_getType();
89 }
90 private native MapObjectType native_getType();
91
92 @Override
93 public byte[] getData()
94 {
95 return native_getData();
96 }
97 private native byte[] native_getData();
98
99 @Override
100 public boolean setVisible(boolean visible)
101 {
102 return native_setVisible(visible);
103 }
104 private native boolean native_setVisible(boolean visible);
105
106 @Override
107 public boolean setInteractive(boolean interactive)
108 {
109 return native_setInteractive(interactive);
110 }
111 private native boolean native_setInteractive(boolean interactive);
112
113 @Override
114 public void setData(byte[] data)
115 {
116 native_setData(data);
117 }
118 private native void native_setData(byte[] data);
119
120 @Override
121 public boolean setTitle(String title)
122 {
123 return native_setTitle(title);
124 }
125 private native boolean native_setTitle(String title);
126
127 @Override
128 public boolean setTitleWithStyle(String title, TitleStyle style)
129 {
130 return native_setTitleWithStyle(title, style);
131 }
132 private native boolean native_setTitleWithStyle(String title, TitleStyle style);
133
134 @Override
135 public boolean setAlpha(float alpha)
136 {
137 return native_setAlpha(alpha);
138 }
139 private native boolean native_setAlpha(float alpha);
140}