public interface GuiBridgeHandler
Implementing apps need to create the wrapper for this bridge
.| Modifier and Type | Field and Description |
|---|---|
static String |
DEBUG_KEY |
static String |
GEOPAPARAZZI_PREFERENCES_KEY |
static String |
HEAP_KEY |
static String |
LAST_GP_PROJECTS_PATH |
static String |
PREFS_NODE_NAME |
static String |
SPATIAL_TOOLBOX_PREFERENCES_KEY |
| Modifier and Type | Method and Description |
|---|---|
HashMap<String,String> |
getGeopaparazziProjectViewerPreferencesMap()
Get the map of user preferences.
|
File |
getLibsFolder()
Get the folder inside which the libraries to browse are contained.
|
HashMap<String,String> |
getSpatialToolboxPreferencesMap()
Get the map of user preferences.
|
Point2D |
getWorldPoint(int x,
int y)
Get the world
Point2D from and screen pixel x/y (ex. |
void |
messageDialog(String message,
String[] messageArgs,
String title,
int messageType) |
void |
messageDialog(String message,
String title,
int messageType) |
String |
promptForCrs()
Open a dialog to prompt for a CRS.
|
void |
setGeopaparazziProjectViewerPreferencesMap(HashMap<String,String> prefsMap)
Save SpatialToolbox preferences map.
|
void |
setLibsFolder(File libsFolder) |
void |
setSpatialToolboxPreferencesMap(HashMap<String,String> prefsMap)
Save SpatialToolbox preferences map.
|
File[] |
showOpenDirectoryDialog(String title,
File initialPath)
Open a directory selection dialog.
|
File[] |
showOpenFileDialog(String title,
File initialPath,
FileFilter filter)
Open an open file dialog.
|
File[] |
showSaveFileDialog(String title,
File initialPath,
FileFilter filter)
Open a save file dialog.
|
JFrame |
showWindow(JComponent component,
String windowTitle)
Show a
JComponent inside a window. |
boolean |
supportsMapContext()
A check to see if this handler supports a map context.
|
static final String SPATIAL_TOOLBOX_PREFERENCES_KEY
static final String GEOPAPARAZZI_PREFERENCES_KEY
static final String HEAP_KEY
static final String DEBUG_KEY
static final String LAST_GP_PROJECTS_PATH
static final String PREFS_NODE_NAME
File[] showOpenDirectoryDialog(String title, File initialPath)
title - initialPath - File[] showOpenFileDialog(String title, File initialPath, FileFilter filter)
title - initialPath - File[] showSaveFileDialog(String title, File initialPath, FileFilter filter)
title - initialPath - void messageDialog(String message, String[] messageArgs, String title, int messageType)
boolean supportsMapContext()
This also defines if conversion between screen and world coordinates and prompting for a crs are supported.
true if a mapcontext is supported.Point2D getWorldPoint(int x, int y)
Point2D from and screen pixel x/y (ex. coming from a mouse event).x - the screen X.y - the screen Y.null.String promptForCrs()
null.HashMap<String,String> getSpatialToolboxPreferencesMap()
HashMap of preferences.void setSpatialToolboxPreferencesMap(HashMap<String,String> prefsMap)
prefsMap - HashMap<String,String> getGeopaparazziProjectViewerPreferencesMap()
HashMap of preferences.void setGeopaparazziProjectViewerPreferencesMap(HashMap<String,String> prefsMap)
prefsMap - File getLibsFolder()
void setLibsFolder(File libsFolder)
libsFolder - JFrame showWindow(JComponent component, String windowTitle)
JComponent inside a window.component - the component to show.windowTitle - Copyright © 2005-2019 HydroloGIS. All Rights Reserved.