From 1e2f12c070b30cc44bed1a00a81ec32c799245c5 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Thu, 15 Sep 2016 10:51:29 +0200 Subject: [PATCH] Preparation for touch icons --- OsmAnd-java/src/net/osmand/NativeLibrary.java | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/OsmAnd-java/src/net/osmand/NativeLibrary.java b/OsmAnd-java/src/net/osmand/NativeLibrary.java index 520ef5bc91..4660cd0371 100644 --- a/OsmAnd-java/src/net/osmand/NativeLibrary.java +++ b/OsmAnd-java/src/net/osmand/NativeLibrary.java @@ -1,5 +1,7 @@ package net.osmand; +import gnu.trove.list.array.TIntArrayList; + import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileInputStream; @@ -349,8 +351,8 @@ public class NativeLibrary { public static class RenderedObject extends MapObject { private Map tags = new LinkedHashMap<>(); private QuadRect bbox = new QuadRect(); - private int x; - private int y; + private TIntArrayList x; + private TIntArrayList y; public Map getTags() { return tags; @@ -360,9 +362,17 @@ public class NativeLibrary { return !getName().isEmpty(); } - public void setLocation(int x, int y) { - this.x = x; - this.y = y; + public void addLocation(int x, int y) { + this.x.add(x); + 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) {