- All Implemented Interfaces:
EventTarget
A list of Coordinate Reference Systems (CRS) from which the user can select.
The CRS choices is built in a background thread from a specified
CRSAuthorityFactory
.- Since:
- 1.1
-
Property Summary
Properties inherited from class Dialog
contentText, dialogPane, graphic, headerText, height, onCloseRequest, onHidden, onHiding, onShowing, onShown, resizable, resultConverter, result, showing, title, width, x, y
-
Constructor Summary
ConstructorDescriptionCreates a chooser proposing all coordinate reference systems from the default factory.CRSChooser
(CRSAuthorityFactory factory, Envelope areaOfInterest, Locale locale) Creates a chooser proposing all coordinate reference systems from the given factory. -
Method Summary
Modifier and TypeMethodDescriptionshowDialog
(Window parent) Shows a dialog to select aCoordinateReferenceSystem
.Methods inherited from class Dialog
buildEventDispatchChain, close, contentTextProperty, dialogPaneProperty, getContentText, getDialogPane, getGraphic, getHeaderText, getHeight, getModality, getOnCloseRequest, getOnHidden, getOnHiding, getOnShowing, getOnShown, getOwner, getResult, getResultConverter, getTitle, getWidth, getX, getY, graphicProperty, headerTextProperty, heightProperty, hide, initModality, initOwner, initStyle, isResizable, isShowing, onCloseRequestProperty, onHiddenProperty, onHidingProperty, onShowingProperty, onShownProperty, resizableProperty, resultConverterProperty, resultProperty, setContentText, setDialogPane, setGraphic, setHeaderText, setHeight, setOnCloseRequest, setOnHidden, setOnHiding, setOnShowing, setOnShown, setResizable, setResult, setResultConverter, setTitle, setWidth, setX, setY, show, showAndWait, showingProperty, titleProperty, widthProperty, xProperty, yProperty
-
Constructor Details
-
CRSChooser
public CRSChooser()Creates a chooser proposing all coordinate reference systems from the default factory. -
CRSChooser
Creates a chooser proposing all coordinate reference systems from the given factory. If the given factory isnull
, then a default factory capable to handle at least some EPSG codes will be used.- Parameters:
factory
- the factory to use for creating coordinate reference systems, ornull
for default.areaOfInterest
- geographic area for which to choose a CRS, ornull
if no restriction.locale
- the preferred locale for displaying object name, ornull
for the default locale.
-
-
Method Details
-
showDialog
Shows a dialog to select aCoordinateReferenceSystem
.- Parameters:
parent
- parent frame of dialog, ornull
for an unowned dialog.- Returns:
- the selected
CoordinateReferenceSystem
, or empty if none.
-