Ejemplo n.º 1
0
  public void importMap(File file) {

    if (file.exists() && file.canRead()) {

      _fileHandler.initImportData(file);

      _map = new Map();

      String line = _fileHandler.importData();

      while (line != null) {

        _preferences.importData(line, 0, null, null);
        _map.importData(line, 0, _preferences.getCellTypes(), _preferences.getColorEntities());
        line = _fileHandler.importData();
      }

      _fileHandler.closeImportFile();

      notifyNewMapLoaded();
    }
  }
Ejemplo n.º 2
0
  public Vector<CellType> getPreferencesCellTypes() {

    return _preferences.getCellTypes();
  }