From 8e44580cbe978f1570d4d2ac13d3dd7cd470ecf7 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Tue, 27 May 2014 15:39:13 -0700 Subject: 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 --- altosuilib/AltosSiteMapCache.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'altosuilib/AltosSiteMapCache.java') 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; -- cgit v1.2.3