private void ShowAOIs(final AOI[] aoiList) { final AOITableModel tableModel = new AOITableModel(aoiList); final AOISortingDecorator sortedModel = new AOISortingDecorator(tableModel, aoiTable.getTableHeader()); aoiTable.setModel(sortedModel); aoiTable.setColumnModel(tableModel.getColumnModel()); updateStatusLabel(); final GeoPos[][] geoBoundaries = new GeoPos[aoiList.length][4]; int i = 0; for (GeoPosList aoi : aoiList) { geoBoundaries[i++] = aoi.getPoints(); } worldMapUI.setAdditionalGeoBoundaries(geoBoundaries); }
private void showRepository(final ProductEntry[] productEntryList) { //System.out.println("ProductLibraryToolView.showRepository: productEntryList " + (productEntryList == null ? "is null" : productEntryList.length) + " " + currentListView.getClass()); if(productEntryList == null) return; currentListView.setProductEntryList(productEntryList); notifySelectionChanged(); final GeoPos[][] geoBoundaries = new GeoPos[productEntryList.length][4]; int i = 0; for (ProductEntry entry : productEntryList) { geoBoundaries[i++] = entry.getGeoBoundary(); } worldMapUI.setAdditionalGeoBoundaries(geoBoundaries); worldMapUI.setSelectedGeoBoundaries(null); }
private void createPanel(final File[] productFileList) { final JPanel textPanel = createTextPanel("Instructions", getInstructions()); this.add(textPanel, BorderLayout.NORTH); final WorldMapUI worldMapUI = new WorldMapUI(); this.add(worldMapUI.getWorlMapPane(), BorderLayout.CENTER); final ProductEntry[] productEntryList =ProductEntry.createProductEntryList(productFileList); final GeoPos[][] geoBoundaries = new GeoPos[productEntryList.length][4]; int i = 0; for (ProductEntry entry : productEntryList) { geoBoundaries[i++] = entry.getGeoBoundary(); } worldMapUI.setAdditionalGeoBoundaries(geoBoundaries); } }