Examples of JParameterListWizard


Examples of org.geotools.swing.data.JParameterListWizard

                "GeoTiff or World+Image to display as basemap",
                new KVP( Parameter.EXT, "tif", Parameter.EXT, "jpg")));
        list.add(new Parameter<File>("shape", File.class, "Shapefile",
                "Shapefile contents to display", new KVP(Parameter.EXT, "shp")));

        JParameterListWizard wizard = new JParameterListWizard("Image Lab",
                "Fill in the following layers", list);
        int finish = wizard.showModalDialog();

        if (finish != JWizard.FINISH) {
            System.exit(0);
        }
        File imageFile = (File) wizard.getConnectionParameters().get("image");
        File shapeFile = (File) wizard.getConnectionParameters().get("shape");
        displayLayers(imageFile, shapeFile);
    }
View Full Code Here

Examples of org.geotools.swing.data.JParameterListWizard

  private File importStyleWizard(String prompt, String ext, String format) {
    List<Parameter<?>> list = new ArrayList<Parameter<?>>();
    list.add(new Parameter<File>("import", File.class, ext, format,
        new KVP(Parameter.EXT, "sld")));

    JParameterListWizard wizard = new JParameterListWizard("Import Style",
        prompt, list);
    int finish = wizard.showModalDialog();

    if (finish != JWizard.FINISH) {
      return null; // no file selected
    }
    File file = (File) wizard.getConnectionParameters().get("import");
    return file;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.