Class JeographyGIS



  • public class JeographyGIS
    extends Object
    • Constructor Detail

      • JeographyGIS

        public JeographyGIS(String configFile,
                            Configuration configuration,
                            int tilesIndex,
                            Path pathDatabase,
                            boolean isOnline,
                            boolean showGrid,
                            boolean showTileNumbers,
                            boolean showCrosshair,
                            boolean showOverlay)
        Create a Jeography GIS instance.
        Parameters:
        configFile - the path to the configuration file in use.
        configuration - the configuration to use.
        pathDatabase - a path to a SQLite database for place lookup.
        isOnline - whether the applications shall use internet connection.
        showGrid - whether to show tile borders as grid.
        showTileNumbers - whether to show tile numbers.
        showCrosshair - whether to show a crosshair in the middle of the viewport.
        showOverlay - whether to show the overlay
      • JeographyGIS

        public JeographyGIS(String configFile,
                            Configuration configuration,
                            int tilesIndex,
                            Path pathDatabase,
                            boolean isOnline,
                            boolean showGrid,
                            boolean showTileNumbers,
                            boolean showCrosshair,
                            boolean showOverlay,
                            int zoom,
                            double lon,
                            double lat)
        Create a Jeography GIS instance.
        Parameters:
        configFile - the path to the configuration file in use.
        configuration - the configuration to use.
        pathDatabase - a path to a SQLite database for place lookup.
        isOnline - whether the applications shall use internet connection.
        showGrid - whether to show tile borders as grid.
        showTileNumbers - whether to show tile numbers.
        showCrosshair - whether to show a crosshair in the middle of the viewport.
        showOverlay - whether to show the overlay
        zoom - startup zoom
        lon - startup longitude
        lat - startup latitude
    • Method Detail

      • create

        public void create(int width,
                           int height,
                           boolean showGeometryManager,
                           boolean showSelectionRectDialog,
                           boolean showSelectionPolyDialog,
                           boolean showMapWindowDialog)
      • getMainPanel

        public JPanel getMainPanel()
      • getViewer

        public Viewer getViewer()
        Returns:
        the viewer.
      • getToolbar

        public JToolBar getToolbar()
        Returns:
        the toolbar of the main ui.
      • getConfigFile

        public String getConfigFile()
        Returns:
        the config file the configuration comes from or null
      • getConfiguration

        public Configuration getConfiguration()
        Returns:
        the configuration of this instance.
      • setMouseMode

        public void setMouseMode(MouseMode mode)
        Sets the mouse mode to the specified value.
        Parameters:
        mode - the mouse mode to use now.
      • getMouseMode

        public MouseMode getMouseMode()
        Returns:
        the current mouse mode.
      • getSelectionAdapter

        public SelectionAdapter getSelectionAdapter()
        Returns:
        the selection adapter in use.
      • getPolygonalSelectionAdapter

        public PolySelectionAdapter getPolygonalSelectionAdapter()
        Returns:
        the polygonal selection adapter in use.
      • getGeometryManagerDialog

        public EventJDialog getGeometryManagerDialog()
        Returns:
        the Geometry Manager dialog.
      • getSelectionRectPanelDialog

        public bibliothek.gui.dock.common.SingleCDockable getSelectionRectPanelDialog()
        Returns:
        the Rect Selection Panel dialog.
      • getSelectionPolyPanelDialog

        public bibliothek.gui.dock.common.SingleCDockable getSelectionPolyPanelDialog()
        Returns:
        the Poly Selection Panel dialog.
      • getMapWindowPanelDialog

        public bibliothek.gui.dock.common.SingleCDockable getMapWindowPanelDialog()
        Returns:
        the Selection Panel dialog.
      • isShowGeometryInfo

        public boolean isShowGeometryInfo()
        Returns:
        whether a click on the viewport should check for intersected geometries of the GeometryManager and report information about those.
      • setShowGeometryInfo

        public void setShowGeometryInfo(boolean state)
        Parameters:
        state - whether a click on the viewport should check for intersected geometries of the GeometryManager and report information about those.
      • getGeometryManager

        public GeometryManager getGeometryManager()
        Returns:
        the GeometryManager in use.
      • getOverlayManager

        public OverlayManager getOverlayManager()
        Returns:
        the OverlayManager in use.
      • showReallyExitDialog

        public static void showReallyExitDialog(JFrame frame)
        Show a rally exit dialog for the application.
        Parameters:
        frame - the frame to center the dialog on
      • setConfiguration

        public void setConfiguration(Configuration configuration)
        Set the configuration. This does not affect current settings.
        Parameters:
        configuration - the new configuration.
      • isShowStatusBar

        public boolean isShowStatusBar()
        Returns:
        whether the status bar is visible
      • setShowStatusBar

        public void setShowStatusBar(boolean visible)
        Parameters:
        visible - whether the status bar should be visible
      • isShowToolBar

        public boolean isShowToolBar()
        Returns:
        whether the toolbar is visible
      • setShowToolBar

        public void setShowToolBar(boolean visible)
        Parameters:
        visible - whether the toolbar should be visible
      • createGeometryList

        public void createGeometryList()
      • createOperationList

        public void createOperationList(Operation operation)
      • setDockingFramesTheme

        public void setDockingFramesTheme(String dockingFramesTheme)