use of delta.games.lotro.maps.data.MapLink in project lotro-tools by dmorcellet.
the class LinkCreationInterator method doLink.
private void doLink(MapBundle bundle, int x, int y) {
MapBundle currentMap = _canvas.getCurrentMap();
Map map = currentMap.getMap();
String target = bundle.getKey();
GeoPoint hotPoint = map.getGeoReference().pixel2geo(new Dimension(x, y));
MapLink link = new MapLink(target, hotPoint);
map.addLink(link);
_manager.saveMap(map.getKey());
_canvas.repaint();
}