Package hec.map.crs.ui
Class DialogDisplayer
java.lang.Object
hec.map.crs.ui.DialogDisplayer
Factory class that provides the API necessary to display a dialog editor for
a Coordinate Reference System. Implementations will be found and loaded
using the Java Service API.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Key to mark the dialog as enabled or disabled. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
displayDialog
(Component parent, String title, boolean modal, CoordinateReferenceSystem editingSystem, DialogListener listener) Convenience method for backwards compatibilitystatic void
displayDialog
(Component parent, String title, boolean modal, CoordinateReferenceSystem editingSystem, DialogListener listener, Map<String, String> parameters) Displays the editing dialog for a coordinate reference systemabstract void
showEditor
(Component parent, String title, boolean modal, CoordinateReferenceSystem editingSystem, DialogListener listener, Map<String, String> parameters) Shows the Coordinate Display Editor
-
Field Details
-
DIALOG_ENABLED
Key to mark the dialog as enabled or disabled. Allows the caller to use the dialog as a "viewer"- See Also:
-
-
Constructor Details
-
DialogDisplayer
public DialogDisplayer()
-
-
Method Details
-
displayDialog
public static void displayDialog(Component parent, String title, boolean modal, CoordinateReferenceSystem editingSystem, DialogListener listener) Convenience method for backwards compatibility- Parameters:
parent
- the parent component to center the dialog around, can be null;title
- the title to use. Use "" or null to let the implementation set the titlemodal
-editingSystem
- the system to edit. Can be null if there is no system to edit, for example when creating a reference system.listener
- a listener that is called when the user closes the dialog via the "OK" or "Apply" buttons.
-
displayDialog
public static void displayDialog(Component parent, String title, boolean modal, CoordinateReferenceSystem editingSystem, DialogListener listener, Map<String, String> parameters) Displays the editing dialog for a coordinate reference system- Parameters:
parent
- the parent component to center the dialog around, can be null;title
- the title to use. Use "" or null to let the implementation set the titlemodal
-editingSystem
- the system to edit. Can be null if there is no system to edit, for example when creating a reference system.listener
- a listener that is called when the user closes the dialog via the "OK" or "Apply" buttons.parameters
-
-
showEditor
public abstract void showEditor(Component parent, String title, boolean modal, CoordinateReferenceSystem editingSystem, DialogListener listener, Map<String, String> parameters) Shows the Coordinate Display Editor- Parameters:
parent
- the component of the editor to be centered over.title
- the title to use in the editor. Null to use the default titlemodal
-editingSystem
- the system to edit, NULL if you don't have one.listener
- The listener that will be called with the new coordinate reference system when the user clicks the OK Button.parameters
- map of parameters for customization of the dialog.
-