|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectJCRSChooser
public class JCRSChooser
This class has a single static method that shows a dialog to prompt the user to choose a coordinate reference system.
Example of use:
CoordinateReferenceSystem crs = JCRSChooser.showDialog();
if (crs != null) {
// use the CRS...
}
Field Summary | |
---|---|
static String |
DEFAULT_AUTHORITY
Default authority name (EPSG). |
static String |
DEFAULT_TITLE
Default dialog title |
Method Summary | |
---|---|
static CoordinateReferenceSystem |
showDialog()
Displays a dialog with a list of coordinate reference systems in the EPSG database. |
static CoordinateReferenceSystem |
showDialog(String title)
Displays a dialog with a list of coordinate reference systems in the EPSG database. |
static CoordinateReferenceSystem |
showDialog(String title,
String initialCode)
Displays a dialog with a list of coordinate reference systems in the EPSG database and with the specified initial code highlighted. |
static CoordinateReferenceSystem |
showDialog(String title,
String initialCode,
String authority)
Displays a dialog with a list of coordinate reference systems provided by the given authority (e.g. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_AUTHORITY
public static final String DEFAULT_TITLE
Method Detail |
---|
public static CoordinateReferenceSystem showDialog()
This method can be called safely from any thread.
CoordinateReferenceSystem
object or null
if the user
cancelled the dialogpublic static CoordinateReferenceSystem showDialog(String title)
This method can be called safely from any thread.
title
- optional non-default title
CoordinateReferenceSystem
object or null
if the user
cancelled the dialogpublic static CoordinateReferenceSystem showDialog(String title, String initialCode)
This method can be called safely from any thread.
title
- optional non-default titleinitialCode
- optional initial EPSG code
CoordinateReferenceSystem
object or null
if the user
cancelled the dialogpublic static CoordinateReferenceSystem showDialog(String title, String initialCode, String authority)
This method can be called safely from any thread.
title
- optional non-default titleinitialCode
- an optional initial code in appropriate form for the authorityauthority
- optional non-default authority (defaults to "EPSG")
CoordinateReferenceSystem
object or null
if the user
cancelled the dialog
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |