org.geotools.swing
Class JCRSChooser
Object
JCRSChooser
public class JCRSChooser
- extends Object
This class has a single static method that shows a dialog to prompt
the user to choose a coordinate reference system. The options listed
are those supported by the EPSG database.
Example of use:
CoordinateReferenceSystem crs = JCRSChooser.showDialog(
null, // parent component
"Choose a projection", // title
"Select the CRS to re-project your data", // message
"EPSG:4326"); // initial selection
if (crs != null) {
// use the CRS...
}
- Since:
- 2.6
- Author:
- Michael Bedward
- Module:
modules/unsupported/swing (gt-swing.jar)
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JCRSChooser
public JCRSChooser()
showDialog
public static CoordinateReferenceSystem showDialog(Component parent,
String title,
String message,
String initialSelection)
- Displays a dialog with a list of coordinate reference systems in the EPSG
database.
- Parameters:
parent
- the parent Component
; may be null
title
- dialog title; if null
title will be "Choose Projection"message
- dialog message; null
for no messageinitialSelection
- the initial selection for the dialog to display
(e.g. "EPSG:4326")
- Returns:
- a
CoordinateReferenceSystem
object or null
if the user
cancelled the dialog or a problem occurred
Copyright © 1996-2009 Geotools. All Rights Reserved.