diff options
author | Keith Packard <keithp@keithp.com> | 2014-05-27 15:39:13 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2014-05-27 15:39:13 -0700 |
commit | 8e44580cbe978f1570d4d2ac13d3dd7cd470ecf7 (patch) | |
tree | 8540ca01103c1d1a73e91b2ab83f221274b4619e /altosuilib/AltosSiteMapCache.java | |
parent | c674a20432c2cb97e5bc2a3de891f78b9e172fe9 (diff) |
altosuilib: Add distance measuring line to site map.
Use any modifier or button other than the left one to draw a line on
the map. The length of the line is shown at the start of the line.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosuilib/AltosSiteMapCache.java')
-rw-r--r-- | altosuilib/AltosSiteMapCache.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/altosuilib/AltosSiteMapCache.java b/altosuilib/AltosSiteMapCache.java index acc84ab0..42914deb 100644 --- a/altosuilib/AltosSiteMapCache.java +++ b/altosuilib/AltosSiteMapCache.java @@ -91,7 +91,7 @@ public class AltosSiteMapCache { static final int bad_request = 3; static final int forbidden = 4; - public static synchronized boolean has_map(File file, String url) { + public static boolean has_map(File file, String url) { return file.exists(); } @@ -182,7 +182,7 @@ public class AltosSiteMapCache { static long used; - public static synchronized Image get_image(Component component, File file, int width, int height) { + public static Image get_image(Component component, File file, int width, int height) { int oldest = -1; long age = used; AltosCacheImage image; |