Esempio n. 1
0
 /** API Method: setMap */
 @Override
 public void setMap(Map map) {
   super.setMap(map);
   if (this.tileOrigin == null) {
     this.tileOrigin =
         new Coordinate(this.map.getMaxExtent().getMinX(), this.map.getMaxExtent().getMinY());
   }
   if (this.tileFullExtent == null) {
     this.tileFullExtent = this.map.getMaxExtent();
   }
 }
 public void actionPerformed(ActionEvent e) {
   if (e.getSource().equals(save)) new GridSaver(grid, fileName());
   if (e.getSource().equals(load)) {
     GridLoader gl = new GridLoader(grid, fileName());
     try {
       grid.setMap(gl.read());
     } catch (IOException ioex) {
       System.out.println("File load Failed ioex");
     }
   }
   parent.getParent().refresh();
 }