Class DefaultGuiBridgeImpl

java.lang.Object
org.hortonmachine.gui.utils.DefaultGuiBridgeImpl
All Implemented Interfaces:
GuiBridgeHandler

public class DefaultGuiBridgeImpl
extends java.lang.Object
implements GuiBridgeHandler
JGT implementation of the GuiBridgeHandler.
Author:
Andrea Antonello (www.hydrologis.com)
  • Field Summary

  • Constructor Summary

    Constructors 
    Constructor Description
    DefaultGuiBridgeImpl()  
    DefaultGuiBridgeImpl​(java.awt.Component rootComponent)  
  • Method Summary

    Modifier and Type Method Description
    int confirmDialog​(java.lang.String message, java.lang.String title, int optionType, int messageType)  
    java.util.HashMap<java.lang.String,​java.lang.String> getGeopaparazziProjectViewerPreferencesMap()
    Get the map of user preferences.
    java.io.File getLibsFolder()
    Get the folder inside which the libraries to browse are contained.
    protected java.awt.Component getRootComponent()  
    java.util.HashMap<java.lang.String,​java.lang.String> getSpatialToolboxPreferencesMap()
    Get the map of user preferences.
    java.awt.geom.Point2D getWorldPoint​(int x, int y)
    Get the world Point2D from and screen pixel x/y (ex.
    java.lang.String inputDialog​(java.lang.String message, java.lang.String title)  
    java.lang.String inputDialog​(java.lang.String message, java.lang.String title, int messageType, java.lang.String initialValue)  
    void messageDialog​(java.lang.String message, java.lang.String[] messageArgs, java.lang.String title, int messageType)  
    void messageDialog​(java.lang.String message, java.lang.String title, int messageType)  
    java.lang.String promptForCrs()
    Open a dialog to prompt for a CRS.
    void setGeopaparazziProjectViewerPreferencesMap​(java.util.HashMap<java.lang.String,​java.lang.String> prefsMap)
    Save SpatialToolbox preferences map.
    void setLibsFolder​(java.io.File libsFolder)  
    void setSpatialToolboxPreferencesMap​(java.util.HashMap<java.lang.String,​java.lang.String> prefsMap)
    Save SpatialToolbox preferences map.
    java.io.File[] showChooserDialog​(java.lang.String title, int type, int selectionMode, boolean multiselection, java.io.File initialPath, javax.swing.filechooser.FileFilter filter, boolean fileHidingEnabled)  
    java.io.File[] showOpenDirectoryDialog​(java.lang.String title, java.io.File initialPath)
    Open a directory selection dialog.
    java.io.File[] showOpenFileDialog​(java.lang.String title, java.io.File initialPath, javax.swing.filechooser.FileFilter filter)
    Open an open file dialog.
    java.io.File[] showSaveFileDialog​(java.lang.String title, java.io.File initialPath, javax.swing.filechooser.FileFilter filter)
    Open a save file dialog.
    javax.swing.JFrame showWindow​(javax.swing.JComponent component, java.lang.String windowTitle)
    Show a JComponent inside a window.
    boolean supportsMapContext()
    A check to see if this handler supports a map context.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait