public class AltosUIMapPreload extends AltosUIFrame implements ActionListener, ItemListener, AltosUIMapTileListener {
AltosUIFrame owner;
AltosUIMap map;
+ AltosUIMapCache cache = new AltosUIMapCache();
AltosUIMapPos lat;
AltosUIMapPos lon;
/* AltosUIMapTileListener methods */
- public void notify_tile(AltosUIMapTile tile, int status) {
+ public synchronized void notify_tile(AltosUIMapTile tile, int status) {
if (status == AltosUIMapStore.loading)
return;
}
}
+ public AltosUIMapCache cache() { return cache; }
+
public void set_sites() {
int i = 1;
for (AltosUISite site : sites.sites) {
}
public AltosUIMapPreload(AltosUIFrame in_owner) {
- System.out.printf("start creating preload ui\n");
-
owner = in_owner;
Container pane = getContentPane();
pack();
setLocationRelativeTo(owner);
setVisible(true);
-
- System.out.printf("done creating preload ui\n");
}
}