Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 @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;
 }