import java.awt.geom.Rectangle2D;
import java.awt.image.ImageObserver;
import java.awt.image.VolatileImage;
-import java.net.MalformedURLException;
-import java.net.URISyntaxException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import org.simantics.maps.tile.TileKey;
import org.simantics.scenegraph.g2d.G2DNode;
import org.simantics.scenegraph.g2d.G2DRenderingHints;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
/**
* @author Tuukka Lehtonen
private static final long serialVersionUID = 2490944880914577411L;
+ private static final Logger LOGGER = LoggerFactory.getLogger(MapNode.class);
+
private final double MAP_SCALE = 1;
private final int MAX_TILE_LEVEL = 19;
private final int TILE_PIXEL_SIZE = 256;
this.tileCache = new TileCache(job);
this.tileCache.addTileListener(this);
- } catch (MalformedURLException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (URISyntaxException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
} catch(Exception e ) {
- e.printStackTrace();
+ LOGGER.error("Failed to initialize MapNode", e);
}
}