* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
-package org.altusmetrum.altosuilib_2;
+package org.altusmetrum.altosuilib_3;
import java.awt.*;
import java.awt.image.*;
import java.io.*;
import java.util.*;
import java.awt.RenderingHints.*;
-import org.altusmetrum.altoslib_4.*;
+import org.altusmetrum.altoslib_5.*;
public class AltosUIMapTile {
AltosUIMapTileListener listener;
int zoom;
int maptype;
AltosUIMapStore store;
+ AltosUIMapCache cache;
int status;
private File map_file() {
++painting_serial;
if (image == null && t.has_location())
- image = AltosUIMapCache.get(this, store, px_size, px_size);
+ image = cache.get(this, store, px_size, px_size);
paint_graphics(g2d, t, painting_serial);
}
public AltosUIMapTile(AltosUIMapTileListener listener, AltosUILatLon upper_left, AltosUILatLon center, int zoom, int maptype, int px_size, Font font) {
this.listener = listener;
this.upper_left = upper_left;
+ cache = listener.cache();
while (center.lon < -180.0)
center.lon += 360.0;