Preparation for touch icons
This commit is contained in:
parent
b0b6429523
commit
1e2f12c070
1 changed files with 15 additions and 5 deletions
|
@ -1,5 +1,7 @@
|
||||||
package net.osmand;
|
package net.osmand;
|
||||||
|
|
||||||
|
import gnu.trove.list.array.TIntArrayList;
|
||||||
|
|
||||||
import java.io.ByteArrayOutputStream;
|
import java.io.ByteArrayOutputStream;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FileInputStream;
|
import java.io.FileInputStream;
|
||||||
|
@ -349,8 +351,8 @@ public class NativeLibrary {
|
||||||
public static class RenderedObject extends MapObject {
|
public static class RenderedObject extends MapObject {
|
||||||
private Map<String, String> tags = new LinkedHashMap<>();
|
private Map<String, String> tags = new LinkedHashMap<>();
|
||||||
private QuadRect bbox = new QuadRect();
|
private QuadRect bbox = new QuadRect();
|
||||||
private int x;
|
private TIntArrayList x;
|
||||||
private int y;
|
private TIntArrayList y;
|
||||||
|
|
||||||
public Map<String, String> getTags() {
|
public Map<String, String> getTags() {
|
||||||
return tags;
|
return tags;
|
||||||
|
@ -360,9 +362,17 @@ public class NativeLibrary {
|
||||||
return !getName().isEmpty();
|
return !getName().isEmpty();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setLocation(int x, int y) {
|
public void addLocation(int x, int y) {
|
||||||
this.x = x;
|
this.x.add(x);
|
||||||
this.y = y;
|
this.y.add(y);
|
||||||
|
}
|
||||||
|
|
||||||
|
public TIntArrayList getX() {
|
||||||
|
return x;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TIntArrayList getY() {
|
||||||
|
return y;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setBbox(int left, int top, int right, int bottom) {
|
public void setBbox(int left, int top, int right, int bottom) {
|
||||||
|
|
Loading…
Reference in a new issue