Class MapView

    • Field Detail

      • _drawIdentiferShape

        public boolean _drawIdentiferShape
    • Constructor Detail

      • MapView

        public MapView​()
        Constructor
      • MapView

        public MapView​(ProjectionInfo proj)
        Constructor
        Parameters:
        proj - Projection
    • Method Detail

      • setTileLoadListener

        public void setTileLoadListener​(TileLoadListener value)
        Set TileLoadListner for web map plot
        Parameters:
        value - TileLoadListener
      • getLayers

        public LayerCollection getLayers​()
        Get layers
        Returns:
        The layer collection
      • setLayers

        public void setLayers​(LayerCollection layers)
        Set layers
        Parameters:
        layers - The layer collection
      • getLayerNum

        public int getLayerNum​()
        Get layer number
        Returns:
        Layer number
      • getSelectedLayerHandle

        public int getSelectedLayerHandle​()
        Get selected layer handle
        Returns:
        Selected layer handle
      • setSelectedLayerHandle

        public void setSelectedLayerHandle​(int handle)
        Set selected layer handle
        Parameters:
        handle -
      • getLastAddedLayer

        public MapLayer getLastAddedLayer​()
        Get last added layer
        Returns:
        Last added layer
      • isLayoutMap

        public boolean isLayoutMap​()
        Get if is layout map
        Returns:
        Boolean
      • setIsLayoutMap

        public void setIsLayoutMap​(boolean istrue)
        Set if is layout map
        Parameters:
        istrue - Boolean
      • isGeoMap

        public boolean isGeoMap​()
        Get if is geo map
        Returns:
        Boolean
      • setGeoMap

        public void setGeoMap​(boolean value)
        Set if is geo map
        Parameters:
        value - Boolean
      • getExtent

        public Extent getExtent​()
        Get extent of all layers
        Returns:
        The extent
      • setExtent

        public void setExtent​(Extent extent)
        Set extent of all layers
        Parameters:
        extent - The extent
      • getViewExtent

        public Extent getViewExtent​()
        Get view extent
        Returns:
        The view extent
      • setViewExtent

        public void setViewExtent​(Extent extent)
        Set view extent
        Parameters:
        extent - View extent
      • getSelectColor

        public java.awt.Color getSelectColor​()
        Get selected color
        Returns:
        Selected color
      • setSelectColor

        public void setSelectColor​(java.awt.Color color)
        Set selected color
        Parameters:
        color - Selected Color
      • isMultiGlobalDraw

        public boolean isMultiGlobalDraw​()
        Get if draw multi global map
        Returns:
        Boolean
      • setMultiGlobalDraw

        public void setMultiGlobalDraw​(boolean istrue)
        Set if draw multi global map
        Parameters:
        istrue - Boolean
      • getXScale

        public double getXScale​()
        Get x scale
        Returns:
        X scale
      • getYScale

        public double getYScale​()
        Get y scale
        Returns:
        Y scale
      • getXYScaleFactor

        public double getXYScaleFactor​()
        Get x/y scale factor
        Returns:
        X/Y scale factor
      • setXYScaleFactor

        public void setXYScaleFactor​(double value)
        Set x/y scale factor
        Parameters:
        value - X/Y scale factor
      • getMouseTool

        public MouseTools getMouseTool​()
        Get mouse tool
        Returns:
        The mouse tool
      • setMouseTool

        public void setMouseTool​(MouseTools mt)
        Set mouse tool
        Parameters:
        mt - The mouse tool
      • getProjection

        public ProjectionSet getProjection​()
        Get projection set
        Returns:
        The projection set
      • isLockViewUpdate

        public boolean isLockViewUpdate​()
        Get if lock view update
        Returns:
        If lock view update
      • setLockViewUpdate

        public void setLockViewUpdate​(boolean istrue)
        Set if lock view update
        Parameters:
        istrue - If lock view update
      • isAntiAlias

        public boolean isAntiAlias​()
        Get if antialias
        Returns:
        Boolean
      • setAntiAlias

        public void setAntiAlias​(boolean istrue)
        Set if antialias
        Parameters:
        istrue - Boolean
      • isPointAntiAlias

        public boolean isPointAntiAlias​()
        Get if is point antialias
        Returns:
        Boolean
      • setPointAntiAlias

        public void setPointAntiAlias​(boolean value)
        Set if point antialias
        Parameters:
        value - Boolean
      • isHighSpeedWheelZoom

        public boolean isHighSpeedWheelZoom​()
        Get if is high speed mouse wheel zoom
        Returns:
        Boolean
      • setHighSpeedWheelZoom

        public void setHighSpeedWheelZoom​(boolean value)
        Set if is high speed mouse wheel zoom
        Parameters:
        value - Boolean
      • getSelectedGraphics

        public GraphicCollection getSelectedGraphics​()
        Get selected graphics
        Returns:
        Selected graphics
      • getDefPointBreak

        public PointBreak getDefPointBreak​()
        Get default point break
        Returns:
        Default point break
      • setDefPointBreak

        public void setDefPointBreak​(PointBreak pb)
        Set default point break
        Parameters:
        pb - Default point break
      • getDefLabelBreak

        public LabelBreak getDefLabelBreak​()
        Get default label break
        Returns:
        Default label break
      • setDefLabelBreak

        public void setDefLabelBreak​(LabelBreak lb)
        Set default label break
        Parameters:
        lb - Default label break
      • getDefPolylineBreak

        public PolylineBreak getDefPolylineBreak​()
        Get default polyline break
        Returns:
        Default polyline break
      • setDefPolylineBreak

        public void setDefPolylineBreak​(PolylineBreak pb)
        Set default polyline break
        Parameters:
        pb - Default polyline break
      • getDefPolygonBreak

        public PolygonBreak getDefPolygonBreak​()
        Get default polygon break
        Returns:
        Default polygon break
      • setDefPolygonBreak

        public void setDefPolygonBreak​(PolygonBreak pb)
        Set default polygon break
        Parameters:
        pb - Default polygon break
      • isDrawIdentiferShape

        public boolean isDrawIdentiferShape​()
        Get if draw identifer shape
        Returns:
        Booleab
      • setDrawIdentiferShape

        public void setDrawIdentiferShape​(boolean istrue)
        Set if draw identifer shape
        Parameters:
        istrue - boolean
      • isDrawGridTickLine

        public boolean isDrawGridTickLine​()
        Get if draw grid tick line
        Returns:
        Boolean
      • setDrawGridTickLine

        public void setDrawGridTickLine​(boolean istrue)
        Set if draw grid tick line
        Parameters:
        istrue - Boolean
      • getGridLabels

        public java.util.List<GridLabel> getGridLabels​()
        Get grid labels
        Returns:
        Grid labels
      • getGridLineColor

        public java.awt.Color getGridLineColor​()
        Get grid line color
        Returns:
        Grid line color
      • setGridLineColor

        public void setGridLineColor​(java.awt.Color color)
        Set grid line color
        Parameters:
        color - The color
      • getGridLineSize

        public float getGridLineSize​()
        Get grid line size
        Returns:
        Grid line size
      • setGridLineSize

        public void setGridLineSize​(float size)
        Set grid line size
        Parameters:
        size - The size
      • getGridLineStyle

        public LineStyles getGridLineStyle​()
        Get grid line style
        Returns:
        Grid line style
      • setGridLineStyle

        public void setGridLineStyle​(LineStyles style)
        Set grid line style
        Parameters:
        style -
      • isDrawGridLine

        public boolean isDrawGridLine​()
        Get if draw grid line
        Returns:
        Boolean
      • setDrawGridLine

        public void setDrawGridLine​(boolean istrue)
        Set if draw grid line
        Parameters:
        istrue -
      • getGridXDelt

        public double getGridXDelt​()
        Get grid x/longitude delt
        Returns:
        Grid x delt
      • setGridXDelt

        public void setGridXDelt​(double delt)
        Set grid x/longitude delt
        Parameters:
        delt - Grid x delt
      • getGridYDelt

        public double getGridYDelt​()
        Get grid y/latitude delt
        Returns:
        Grid y delt
      • setGridYDelt

        public void setGridYDelt​(double delt)
        Set grid y/latitude delt
        Parameters:
        delt - Grid y delta
      • getGridXOrigin

        public float getGridXOrigin​()
        Get grid x/longitude origin
        Returns:
        Grid x origin
      • setGridXOrigin

        public void setGridXOrigin​(float origin)
        Set grid x/longitude origin
        Parameters:
        origin - Grid x origin
      • getGridYOrigin

        public float getGridYOrigin​()
        Get grid y/latitude origin
        Returns:
        Grid y origin
      • setGridYOrigin

        public void setGridYOrigin​(float origin)
        Set grid y/latitude origin
        Parameters:
        origin - Grid y origin
      • getXGridStrs

        public java.util.List<java.lang.String> getXGridStrs​()
        Get X grid labels
        Returns:
        X grid labels
      • setXGridStrs

        public void setXGridStrs​(java.util.List<java.lang.String> value)
        Set X grid labels
        Parameters:
        value - X grid lables
      • getYGridStrs

        public java.util.List<java.lang.String> getYGridStrs​()
        Get Y grid labels
        Returns:
        Y grid labels
      • setYGridStrs

        public void setYGridStrs​(java.util.List<java.lang.String> value)
        Set Y grid labels
        Parameters:
        value - Y grid labels
      • getGraphicCollection

        public GraphicCollection getGraphicCollection​()
        Get graphic collection
        Returns:
        The graphic collection
      • setGraphicCollection

        public void setGraphicCollection​(GraphicCollection aGCollection)
        Set graphic collection
        Parameters:
        aGCollection - The graphic collection
      • getLonLatLayer

        public VectorLayer getLonLatLayer​()
        Get lon/lat layer
        Returns:
        The lon/lat layer
      • setLonLatLayer

        public void setLonLatLayer​(VectorLayer layer)
        Set lon/lat layer
        Parameters:
        layer - The lon/lat layer
      • getMeasurementForm

        public FrmMeasurement getMeasurementForm​()
        Get measurement form
        Returns:
        Measurement form
      • setMeasurementForm

        public void setMeasurementForm​(FrmMeasurement form)
        set measurement form
        Parameters:
        form - Measurement form
      • getMaskOut

        public MaskOut getMaskOut​()
        Get maskout
        Returns:
        Maskout
      • setMaskOut

        public void setMaskOut​(MaskOut value)
        Set maskout
        Parameters:
        value - Maskout
      • getViewImage

        public java.awt.image.BufferedImage getViewImage​()
        Get view image
        Returns:
        View image
      • fireViewExtentChangedEvent

        public void fireViewExtentChangedEvent​()
      • addUndoEditListener

        public void addUndoEditListener​(IUndoEditListener listener)
      • removeUndoEditListener

        public void removeUndoEditListener​(IUndoEditListener listener)
      • fireUndoEditEvent

        public void fireUndoEditEvent​(javax.swing.undo.UndoableEdit undoEdit)
      • fireLayersUpdatedEvent

        public void fireLayersUpdatedEvent​()
      • fireGraphicSelectedEvent

        public void fireGraphicSelectedEvent​()
      • fireShapeSelectedEvent

        public void fireShapeSelectedEvent​()
      • fireProjectionChangedEvent

        public void fireProjectionChangedEvent​()
      • addLayer

        public int addLayer​(MapLayer aLayer)
        Add a layer
        Parameters:
        aLayer - The layer
        Returns:
        Layer handle
      • addLayer

        public int addLayer​(int index,
                            MapLayer aLayer)
        Add a layer
        Parameters:
        index - The index
        aLayer - The layer
        Returns:
        Layer handle
      • addWindLayer

        public int addWindLayer​(VectorLayer aLayer,
                                boolean EarthWind)
        Add wind layer
        Parameters:
        aLayer - Wind layer
        EarthWind - If wind relative to earth
        Returns:
        Layer handle
      • getNewLayerHandle

        public int getNewLayerHandle​()
        Get new layer handle
        Returns:
        New layer handle
      • getSelectedLayer

        public MapLayer getSelectedLayer​()
        Get selected layer
        Returns:
        Selected layer
      • getLayersWholeExtent

        public Extent getLayersWholeExtent​()
        Get layers whole extent
        Returns:
        The extent
      • getMeteoLayersExtent

        public Extent getMeteoLayersExtent​()
        Get layers whole extent
        Returns:
        The extent
      • getLayerHandleFromName

        public int getLayerHandleFromName​(java.lang.String name)
        Get layer handle from layer name
        Parameters:
        name - The layer name
        Returns:
        Layer handle
      • getLayerHandleFromIdx

        public int getLayerHandleFromIdx​(int lIdx)
        Get layer handle from layer index
        Parameters:
        lIdx - Layer index
        Returns:
        Layer handle
      • getLayerByHandle

        public MapLayer getLayerByHandle​(int handle)
        Get layer by handle
        Parameters:
        handle - The layer handle
        Returns:
        The layer object
      • getLayer

        public MapLayer getLayer​(java.lang.String name)
        Get layer by layer name
        Parameters:
        name - The layer name
        Returns:
        The layer
      • getLayerIdxFromHandle

        public int getLayerIdxFromHandle​(int handle)
        Get layer index from layer handle
        Parameters:
        handle - The layer handle
        Returns:
        Layer index
      • moveLayer

        public void moveLayer​(int lPreIdx,
                              int lNewIdx)
        Move layer position
        Parameters:
        lPreIdx - Previous index
        lNewIdx - New index
      • removeLayer

        public void removeLayer​(int aIdx)
        Remove a layer by index
        Parameters:
        aIdx - Layer index
      • removeLayerHandle

        public void removeLayerHandle​(int handle)
        Remove layer by handle
        Parameters:
        handle - Layer handle
      • removeLayer

        public void removeLayer​(MapLayer aLayer)
        Remove a layer
        Parameters:
        aLayer - The layer
      • removeAllLayers

        public void removeAllLayers​()
        Remove all layers
      • getLineLayerIdx

        public int getLineLayerIdx​()
        Get last polyline layer index
        Returns:
        Layer index
      • getPolygonLayerIdx

        public int getPolygonLayerIdx​()
        Get last polygon layer index
        Returns:
        Layer index
      • getImageLayerIdx

        public int getImageLayerIdx​()
        Get last image layer index
        Returns:
        Layer index
      • hasWebMapLayer

        public boolean hasWebMapLayer​()
        Check if web map layer is included
        Returns:
        Boolean
      • paintComponent

        public void paintComponent​(java.awt.Graphics g)
        Paint component
        Overrides:
        paintComponent in class javax.swing.JComponent
        Parameters:
        g - Graphics
      • getWebMapZoom

        public int getWebMapZoom​()
        Description copied from interface: IWebMapPanel
        Get web map layer zoom
        Specified by:
        getWebMapZoom in interface IWebMapPanel
        Returns:
        Web map layer zoom
      • paintLayers

        public void paintLayers​()
      • paintGraphics

        public void paintGraphics​(java.awt.Graphics2D g)
        Paint graphics
        Parameters:
        g - Graphics2D
      • paintGraphics

        public void paintGraphics​(java.awt.Graphics2D g,
                                  java.awt.geom.Rectangle2D area,
                                  TileLoadListener tll)
        Paint graphics
        Parameters:
        g - Graphics2D
        area - Target rectangle area
        tll - TileLoadListener
      • paintGraphics

        public void paintGraphics​(java.awt.Graphics2D g,
                                  java.awt.Rectangle rect,
                                  TileLoadListener tll)
        Paint graphics
        Parameters:
        g - Graphics2D
        rect - Target rectangle
        tll - TileLoadListener
      • drawLayerWithLegendScheme

        public void drawLayerWithLegendScheme​(VectorLayer aLayer,
                                              java.awt.Graphics2D g,
                                              double LonShift)
        Draw layer with legend scheme
        Parameters:
        aLayer - Vector layer
        g - Graphics
        LonShift - Longitude shift
      • drawVectLayerWithLegendScheme

        public void drawVectLayerWithLegendScheme​(VectorLayer aLayer,
                                                  java.awt.Graphics2D g,
                                                  double LonShift)
        Draw vector layer with legend scheme
        Parameters:
        aLayer - The vector layer
        g - Graphics2D
        LonShift - Longitude shift
      • drawBarbLayerWithLegendScheme

        public void drawBarbLayerWithLegendScheme​(VectorLayer aLayer,
                                                  java.awt.Graphics2D g,
                                                  double LonShift)
        Draw wind barb layer with legendscheme
        Parameters:
        aLayer - The layer
        g - Graphics2D
        LonShift - Longitude shift
      • getWebMapLayer

        public WebMapLayer getWebMapLayer​()
        Get web map layer
        Returns:
        The web map layer
      • drawGraphicList

        public void drawGraphicList​(java.awt.Graphics2D g,
                                    double lonShift)
        Draw graphic list
        Parameters:
        g - Graphics2D
        lonShift - Longitude shift
      • drawGraphic

        public void drawGraphic​(java.awt.Graphics2D g,
                                Graphic aGraphic,
                                double lonShift)
        Draw a graphic
        Parameters:
        g - Graphics2D
        aGraphic - The Graphic
        lonShift - Longitude shift
      • drawIdShape

        public void drawIdShape​(java.awt.Graphics2D g,
                                Shape aShape)
        Draw identifer shape
        Parameters:
        g - Graphics2D
        aShape - A shape
      • drawIdShape

        public void drawIdShape​(java.awt.Graphics2D g,
                                Shape aShape,
                                java.awt.Rectangle rect)
        Draw identifer shape
        Parameters:
        g - Graphics2D
        aShape - The identifer shape
        rect - Rectangle extent
      • exportToPicture

        public void exportToPicture​(java.lang.String aFile)
                             throws java.io.FileNotFoundException,
                                    javax.print.PrintException,
                                    java.io.IOException
        Export to a picture file
        Parameters:
        aFile - File path
        Throws:
        java.io.FileNotFoundException
        javax.print.PrintException
        java.io.IOException
      • generateLonLatLayer

        public VectorLayer generateLonLatLayer​()
        Generate longitude/latitude grid line layer
        Returns:
        Lon/lat layer
      • projToScreen

        public double[] projToScreen​(double projX,
                                     double projY)
        Convert coordinate from map to screen
        Parameters:
        projX - Map X
        projY - Map Y
        Returns:
        Screen X/Y array
      • projToScreen

        public double[] projToScreen​(double projX,
                                     double projY,
                                     double LonShift)
        Convert coordinate from map to screen
        Parameters:
        projX - Map X
        projY - Map Y
        LonShift - Longitude shift
        Returns:
        Screen X/Y array
      • projToScreen

        public java.awt.geom.Rectangle2D.Double projToScreen​(Extent extent,
                                                             double lonShift)
        Convert coordinate from map to screen
        Parameters:
        extent - The extent
        lonShift - Longitude shift
        Returns:
        Screen rectangle
      • lonLatToScreen

        public double[] lonLatToScreen​(double lon,
                                       double lat)
        Longitude/Latitude convert to screen X/Y
        Parameters:
        lon - Longitude
        lat - Latitude
        Returns:
        Screen X/Y array
      • screenToProj

        public double[] screenToProj​(double screenX,
                                     double screenY)
        Convert coordinate from screen to map
        Parameters:
        screenX - Screen X
        screenY - Screen Y
        Returns:
        Projected X/Y
      • screenToProj

        public double[] screenToProj​(double screenX,
                                     double screenY,
                                     double zoom)
        Convert coordiante from screen to map
        Parameters:
        screenX - Screen X
        screenY - Screen Y
        zoom - Zoom factor
        Returns:
        Project X/Y
      • screenToProj

        public float[] screenToProj​(float screenX,
                                    float screenY)
        Convert coordinate from screen to map
        Parameters:
        screenX - Screen X
        screenY - Screen Y
        Returns:
        Projected X/Y
      • screenToProj

        public float[] screenToProj​(float screenX,
                                    float screenY,
                                    double LonShift)
        Convert coordinate from screen to map
        Parameters:
        screenX - Screen X
        screenY - Screen Y
        LonShift - Longitude shift
        Returns:
        Projected X/Y
      • moveShapeOnScreen

        public void moveShapeOnScreen​(Shape aShape,
                                      double x,
                                      double y)
        Move shape by screen coordinates
        Parameters:
        aShape - The shape
        x - X shift
        y - Y shift
      • moveGraphic

        public void moveGraphic​(Graphic graphic,
                                double x,
                                double y,
                                boolean screen)
        Move a graphic
        Parameters:
        graphic - The graphic
        x - X shift
        y - Y shift
        screen - Is screen coordinate or not.
      • moveShapeOnScreen

        public void moveShapeOnScreen​(Shape aShape,
                                      java.awt.Point point1,
                                      java.awt.Point point2)
        Move shape by screen coordinates
        Parameters:
        aShape - The shape
        point1 - From point
        point2 - To point
      • resizeShapeOnScreen

        public void resizeShapeOnScreen​(Shape aShape,
                                        ColorBreak legend,
                                        java.awt.Rectangle newRect)
        Resize shape on screen
        Parameters:
        aShape - The shape
        legend - The legend
        newRect - New rectangle
      • resizeShapeOnScreen

        public void resizeShapeOnScreen​(Graphic graphic,
                                        java.awt.Rectangle newRect)
        Resize shape on screen
        Parameters:
        graphic - The graphic
        newRect - New rectangle
      • getLonShift

        public double getLonShift​(Extent aExtent)
        Get longitude shift
        Parameters:
        aExtent - Extent
        Returns:
        Longitude shift
      • getLonShift

        public double getLonShift​(double lon)
        Get longitude shift
        Parameters:
        lon - Longitude
        Returns:
        Longitude shift
      • zoomToExtent

        public void zoomToExtent​(Extent aExtent)
        Zoom to extent
        Parameters:
        aExtent - The extent
      • zoomToExtent

        public void zoomToExtent​(double minX,
                                 double maxX,
                                 double minY,
                                 double maxY)
        Zoom to extent
        Parameters:
        minX - Minimum x
        maxX - Maximum x
        minY - Minimum y
        maxY - Maximum y
      • zoomToExtentScreen

        public void zoomToExtentScreen​(double minX,
                                       double maxX,
                                       double minY,
                                       double maxY,
                                       double zoom)
        Zoom to extent by screen coordinate
        Parameters:
        minX - Minimum x
        maxX - Maximum x
        minY - Minimum y
        maxY - Maximum y
        zoom - Zoom
      • zoomToExtentLonLatEx

        public void zoomToExtentLonLatEx​(Extent aExtent)
        Zoom to exactly lon/lat extent
        Parameters:
        aExtent - The extent
      • zoomToExtentLonLatEx_back

        public void zoomToExtentLonLatEx_back​(Extent aExtent)
        Zoom to exactly lon/lat extent
        Parameters:
        aExtent - The extent
      • refreshXYScale

        public void refreshXYScale​()
        Refresh X/Y scale
      • refreshXYScale

        public void refreshXYScale​(int width,
                                   int height)
        Refresh X/Y scale
        Parameters:
        width - The width
        height - The height
      • getGeoScale

        public double getGeoScale​()
        Get geographic scale
        Returns:
        Geographic scale
      • getGeoCenter

        public PointD getGeoCenter​()
        Get geographic center with longitude/latitude
        Returns:
        Geogrphic center
      • getViewCenter

        public PointD getViewCenter​()
        Get view center point
        Returns:
        The view center point
      • setViewCenter

        public void setViewCenter​(PointD center)
        Set view center point
        Parameters:
        center - The view center point
      • selectGraphics

        public boolean selectGraphics​(PointF aPoint,
                                      GraphicCollection selectedGraphics,
                                      double lonShift)
        Select graphics by point
        Parameters:
        aPoint - The point
        selectedGraphics - Selected graphics
        lonShift - Longitue shift
        Returns:
        Boolean
      • selectGraphics_back

        public boolean selectGraphics_back​(PointF aPoint,
                                           GraphicCollection baseGraphics,
                                           GraphicCollection selectedGraphics,
                                           double lonShift,
                                           int limit)
        Select graphics by point
        Parameters:
        aPoint - The point
        baseGraphics - Base graphics
        selectedGraphics - Selected graphics
        lonShift - Longitude shift
        limit - Tolerance limit
        Returns:
        Boolean
      • selectGraphics

        public boolean selectGraphics​(PointF aPoint,
                                      GraphicCollection baseGraphics,
                                      GraphicCollection selectedGraphics,
                                      double lonShift,
                                      int limit)
        Select graphics by point
        Parameters:
        aPoint - The point
        baseGraphics - Base graphics
        selectedGraphics - Selected graphics
        lonShift - Longitude shift
        limit - Tolerance limit
        Returns:
        Boolean
      • selectGraphics

        public boolean selectGraphics​(java.awt.Rectangle aRect,
                                      GraphicCollection selectedGraphics,
                                      double lonShift)
        Select graphics by rectangle
        Parameters:
        aRect - The rectangle
        selectedGraphics - Selected graphics
        lonShift - Longitude shift
        Returns:
        Boolean
      • selectGraphics_back

        public boolean selectGraphics_back​(java.awt.Rectangle aRect,
                                           GraphicCollection baseGraphics,
                                           GraphicCollection selectedGraphics,
                                           double lonShift)
        Select graphics by rectangle
        Parameters:
        aRect - Select rectangle
        baseGraphics - Base graphics
        selectedGraphics - Selected graphics
        lonShift - Logitude shift
        Returns:
        Boolean
      • selectGraphics

        public boolean selectGraphics​(java.awt.Rectangle aRect,
                                      GraphicCollection baseGraphics,
                                      GraphicCollection selectedGraphics,
                                      double lonShift)
        Select graphics by rectangle
        Parameters:
        aRect - Select rectangle
        baseGraphics - Base graphics
        selectedGraphics - Selected graphics
        lonShift - Logitude shift
        Returns:
        Boolean
      • selectShape

        public PolygonShape selectShape​(VectorLayer layer,
                                        PointF p)
        Select polygon shape
        Parameters:
        layer - Polygon layer
        p - The point
        Returns:
        Selected polygon shape
      • selectPolygonHole

        public java.lang.Object[] selectPolygonHole​(VectorLayer layer,
                                                    PointF p)
        Get polygon hole index by point
        Parameters:
        layer - The layer
        p - The point
        Returns:
        PolygonShape and polygon hole index
      • selectShapes

        public java.util.List<java.lang.Integer> selectShapes​(VectorLayer aLayer,
                                                              PointF aPoint,
                                                              boolean onlyVisible,
                                                              boolean isSel)
        Select shaped
        Parameters:
        aLayer - Vector layer
        aPoint - The point
        onlyVisible - If only select the shapes from visible shapes
        isSel - If the selected shapes will be set as selected
        Returns:
        Selected shapes
      • selectShapes

        public java.util.List<java.lang.Integer> selectShapes​(VectorLayer aLayer,
                                                              PointF aPoint)
        Select shapes
        Parameters:
        aLayer - Vector layer
        aPoint - The point
        Returns:
        Selected shapes
      • selectShapes

        public java.util.List<java.lang.Integer> selectShapes​(VectorLayer aLayer,
                                                              java.util.List<Shape> baseShapes,
                                                              java.awt.geom.Rectangle2D.Float rect,
                                                              boolean isSingleSel,
                                                              boolean isSel)
        Select shapes
        Parameters:
        aLayer - The vector layer
        baseShapes - The base shapes which is used for selection
        rect - Select rectangle
        isSingleSel - If just select the first object shape
        isSel - if the selected shapes will be set as selected
        Returns:
        Selected shapes
      • selectShapes

        public java.util.List<java.lang.Integer> selectShapes​(VectorLayer aLayer,
                                                              java.awt.geom.Rectangle2D.Float rect,
                                                              boolean isSingleSel)
        Select shapes by rectangle
        Parameters:
        aLayer - The vector layer
        rect - Select rectangle
        isSingleSel - If just select the first object shape
        Returns:
        Selected shapes
      • selectShapes

        public java.util.List<java.lang.Integer> selectShapes​(VectorLayer aLayer,
                                                              java.awt.geom.Rectangle2D.Float rect)
        Select shapes by rectangle
        Parameters:
        aLayer - The vector layer
        rect - Select rectangle
        Returns:
        Selected shapes
      • selectGridCell

        public int[] selectGridCell​(RasterLayer aLayer,
                                    PointF aPoint)
        Select grid cell
        Parameters:
        aLayer - Raster layer
        aPoint - Point
        Returns:
        Selected i/j index
      • getGraphicRectangle

        public java.awt.Rectangle getGraphicRectangle​(java.awt.Graphics2D g,
                                                      Graphic aGraphic,
                                                      double lonShift)
        Get graphic rectangle
        Parameters:
        g - The graphics
        aGraphic - The graphic
        lonShift - Longitude shift
        Returns:
        Rectangle
      • getGraphicRectangle

        public java.awt.Rectangle getGraphicRectangle​(Graphic aGraphic,
                                                      double lonShift)
        Get graphic rectangle
        Parameters:
        aGraphic - The graphic
        lonShift - Longitude shift
        Returns:
        Rectangle
      • getGraphicRectangle

        public java.awt.Rectangle getGraphicRectangle​(Graphic aGraphic)
        Get graphic rectangle
        Parameters:
        aGraphic - The graphic
        Returns:
        Rectangle
      • addGraphic

        public void addGraphic​(Graphic graphic)
        Add a graphic
        Parameters:
        graphic - Graphic
      • removeGraphic

        public void removeGraphic​(Graphic aGraphic)
        Remove a graphic
        Parameters:
        aGraphic - The graphic
      • removeSelectedGraphics

        public void removeSelectedGraphics​()
        Remove selected graphics
      • exportExtentsElement

        public void exportExtentsElement​(org.w3c.dom.Document m_Doc,
                                         org.w3c.dom.Element parent)
        Add extent element
        Parameters:
        m_Doc - XML document
        parent - Parent XML element
      • exportMapPropElement

        public void exportMapPropElement​(org.w3c.dom.Document m_Doc,
                                         org.w3c.dom.Element parent)
        Export map property element
        Parameters:
        m_Doc - XML document
        parent - Parent XML element
      • exportGridLineElement

        public void exportGridLineElement​(org.w3c.dom.Document m_Doc,
                                          org.w3c.dom.Element parent)
        Export grid line element
        Parameters:
        m_Doc - XML document
        parent - Parent XML element
      • exportMaskOutElement

        public void exportMaskOutElement​(org.w3c.dom.Document m_Doc,
                                         org.w3c.dom.Element parent)
        Export maskout element
        Parameters:
        m_Doc - XML document
        parent - Parent XML element
      • exportProjectionElement

        public void exportProjectionElement​(org.w3c.dom.Document m_Doc,
                                            org.w3c.dom.Element parent)
        Export projection element
        Parameters:
        m_Doc - XML document
        parent - Parent XML element
      • exportVectorLayerElement

        public void exportVectorLayerElement​(org.w3c.dom.Document m_Doc,
                                             org.w3c.dom.Element parent,
                                             VectorLayer aVLayer,
                                             java.lang.String projectFilePath)
        Export vector layer element
        Parameters:
        m_Doc - XML document
        parent - Parent XML element
        aVLayer - The vector layer
        projectFilePath - Project file path
      • exportGraphics

        public void exportGraphics​(org.w3c.dom.Document m_Doc,
                                   org.w3c.dom.Element parent,
                                   java.util.List<Graphic> graphicList)
        Export graphics
        Parameters:
        m_Doc - XML document
        parent - Parent XML element
        graphicList - Graphic list
      • exportImageLayer

        public void exportImageLayer​(org.w3c.dom.Document m_Doc,
                                     org.w3c.dom.Element parent,
                                     ImageLayer aILayer,
                                     java.lang.String projectFilePath)
        Export image layer element
        Parameters:
        m_Doc - XML document
        parent - Parent element
        aILayer - The image layer
        projectFilePath - Project file path
      • exportRasterLayer

        public void exportRasterLayer​(org.w3c.dom.Document m_Doc,
                                      org.w3c.dom.Element parent,
                                      RasterLayer aILayer,
                                      java.lang.String projectFilePath)
        Export raster layer element
        Parameters:
        m_Doc - XML document
        parent - Parent element
        aILayer - The raster layer
        projectFilePath - Project file path
      • exportWebMapLayer

        public void exportWebMapLayer​(org.w3c.dom.Document m_Doc,
                                      org.w3c.dom.Element parent,
                                      WebMapLayer wmLayer,
                                      java.lang.String projectFilePath)
        Export web map layer element
        Parameters:
        m_Doc - XML document
        parent - Parent element
        wmLayer - The web map layer
        projectFilePath - Project file path
      • loadMapPropElement

        public void loadMapPropElement​(org.w3c.dom.Element parent)
        Load map property element
        Parameters:
        parent - Parent XML element
      • loadGridLineElement

        public void loadGridLineElement​(org.w3c.dom.Element parent)
        Load grid line element
        Parameters:
        parent - Parent XML element
      • loadMaskOutElement

        public void loadMaskOutElement​(org.w3c.dom.Element parent)
        Load mask out element
        Parameters:
        parent - Parent XML element
      • loadProjectionElement

        public void loadProjectionElement​(org.w3c.dom.Element parent)
        Load projection element
        Parameters:
        parent - Parent XML element
      • loadExtentsElement

        public void loadExtentsElement​(org.w3c.dom.Element parent)
        Load extent element
        Parameters:
        parent - Parent XML element
      • loadVectorLayer

        public VectorLayer loadVectorLayer​(org.w3c.dom.Node aVLayer)
        Load vector layer
        Parameters:
        aVLayer - Vector layer XML node
        Returns:
        Vector layer
      • loadImageLayer

        public ImageLayer loadImageLayer​(org.w3c.dom.Node aILayer)
        Load image layer
        Parameters:
        aILayer - Image layer XML node
        Returns:
        Image layer
      • loadRasterLayer

        public RasterLayer loadRasterLayer​(org.w3c.dom.Node aILayer)
                                    throws java.lang.Exception
        Load raster layer
        Parameters:
        aILayer - Raster layer XML node
        Returns:
        Raster layer
        Throws:
        java.lang.Exception
      • loadWebMapLayer

        public WebMapLayer loadWebMapLayer​(org.w3c.dom.Node wmLayer)
                                    throws java.lang.Exception
        Load web map layer
        Parameters:
        wmLayer - Web map layer XML node
        Returns:
        Web map layer
        Throws:
        java.lang.Exception
      • loadGraphics

        public void loadGraphics​(org.w3c.dom.Element parent)
        Load graphics
        Parameters:
        parent - Parent XML element
      • projectLayers

        public void projectLayers​(ProjectionInfo toProj)
        Projection layers
        Parameters:
        toProj - To projection info
      • showMeasurementForm

        public void showMeasurementForm​()
        Show measurment form