public void demoGisViewWithToolbarAndScale() throws Exception { IGisView gisView = createPlatformlessGisView(); JPanel panel = new JPanel(new BorderLayout()); panel.add(createToolbar(gisView), BorderLayout.NORTH); panel.add(gisView.getContent(), BorderLayout.CENTER); panel.add(createScaleView(gisView), BorderLayout.SOUTH); show(panel); }
public void demoGisViewWithToolbar() throws Exception { IGisView gisView = createPlatformlessGisView(); DisplayToolbar toolbar = createToolbar(gisView); JPanel panel = new JPanel(new BorderLayout()); panel.add(toolbar, BorderLayout.NORTH); panel.add(gisView.getContent(), BorderLayout.CENTER); show(panel); }
@Override public IGisView initGisView(IMapModel mapModel) { gisView = new GisView(mapModel, new NullMapViewConfiguration(), null); content.add(createDisplayToolbar(), BorderLayout.NORTH); content.add(gisView.getContent(), BorderLayout.CENTER); return gisView; }