@Override public JComponent createControl() { final JPanel mainPane = new JPanel(new BorderLayout(4, 4)); mainPane.setPreferredSize(new Dimension(320, 160)); worldMapDataModel = new WorldMapPaneDataModel(); final WorldMapPane worldMapPane = new WorldMapPane(worldMapDataModel); worldMapPane.setNavControlVisible(true); mainPane.add(worldMapPane, BorderLayout.CENTER); visatApp.addProductTreeListener(new WorldMapPTL()); // Add an internal frame listener to VISAT so that we can update our // world map window with the information of the currently activated // product scene view. // visatApp.addInternalFrameListener(new WorldMapIFL()); setProducts(visatApp.getProductManager().getProducts()); setSelectedProduct(visatApp.getSelectedProduct()); return mainPane; }
getLayerCanvas().getLayer().getChildren().add(worldMapLayer); zoomAll(); setNavControlVisible(true);