类 MapView

  • 所有已实现的接口:
    java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, IWebMapPanel

    public class MapView
    extends javax.swing.JPanel
    implements IWebMapPanel
    MapView class
    作者:
    Yaqiang Wang
    另请参阅:
    序列化表格
    • 字段详细资料

      • _drawIdentiferShape

        public boolean _drawIdentiferShape
    • 构造器详细资料

      • MapView

        public MapView()
        Constructor
      • MapView

        public MapView​(ProjectionInfo proj)
        Constructor
        参数:
        proj - Projection
    • 方法详细资料

      • setTileLoadListener

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

        public LayerCollection getLayers()
        Get layers
        返回:
        The layer collection
      • setLayers

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

        public int getLayerNum()
        Get layer number
        返回:
        Layer number
      • getSelectedLayerHandle

        public int getSelectedLayerHandle()
        Get selected layer handle
        返回:
        Selected layer handle
      • setSelectedLayerHandle

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

        public MapLayer getLastAddedLayer()
        Get last added layer
        返回:
        Last added layer
      • isLayoutMap

        public boolean isLayoutMap()
        Get if is layout map
        返回:
        Boolean
      • setIsLayoutMap

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

        public boolean isGeoMap()
        Get if is geo map
        返回:
        Boolean
      • setGeoMap

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

        public Extent getExtent()
        Get extent of all layers
        返回:
        The extent
      • setExtent

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

        public Extent getViewExtent()
        Get view extent
        返回:
        The view extent
      • setViewExtent

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

        public java.awt.Color getSelectColor()
        Get selected color
        返回:
        Selected color
      • setSelectColor

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

        public boolean isMultiGlobalDraw()
        Get if draw multi global map
        返回:
        Boolean
      • setMultiGlobalDraw

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

        public double getXScale()
        Get x scale
        返回:
        X scale
      • getYScale

        public double getYScale()
        Get y scale
        返回:
        Y scale
      • getXYScaleFactor

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

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

        public MouseTools getMouseTool()
        Get mouse tool
        返回:
        The mouse tool
      • setMouseTool

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

        public ProjectionSet getProjection()
        Get projection set
        返回:
        The projection set
      • isLockViewUpdate

        public boolean isLockViewUpdate()
        Get if lock view update
        返回:
        If lock view update
      • setLockViewUpdate

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

        public boolean isAntiAlias()
        Get if antialias
        返回:
        Boolean
      • setAntiAlias

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

        public boolean isPointAntiAlias()
        Get if is point antialias
        返回:
        Boolean
      • setPointAntiAlias

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

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

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

        public GraphicCollection getSelectedGraphics()
        Get selected graphics
        返回:
        Selected graphics
      • getDefPointBreak

        public PointBreak getDefPointBreak()
        Get default point break
        返回:
        Default point break
      • setDefPointBreak

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

        public LabelBreak getDefLabelBreak()
        Get default label break
        返回:
        Default label break
      • setDefLabelBreak

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

        public PolylineBreak getDefPolylineBreak()
        Get default polyline break
        返回:
        Default polyline break
      • setDefPolylineBreak

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

        public PolygonBreak getDefPolygonBreak()
        Get default polygon break
        返回:
        Default polygon break
      • setDefPolygonBreak

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

        public boolean isDrawIdentiferShape()
        Get if draw identifer shape
        返回:
        Booleab
      • setDrawIdentiferShape

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

        public boolean isDrawGridTickLine()
        Get if draw grid tick line
        返回:
        Boolean
      • setDrawGridTickLine

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

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

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

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

        public float getGridLineSize()
        Get grid line size
        返回:
        Grid line size
      • setGridLineSize

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

        public LineStyles getGridLineStyle()
        Get grid line style
        返回:
        Grid line style
      • setGridLineStyle

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

        public boolean isDrawGridLine()
        Get if draw grid line
        返回:
        Boolean
      • setDrawGridLine

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

        public double getGridXDelt()
        Get grid x/longitude delt
        返回:
        Grid x delt
      • setGridXDelt

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

        public double getGridYDelt()
        Get grid y/latitude delt
        返回:
        Grid y delt
      • setGridYDelt

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

        public float getGridXOrigin()
        Get grid x/longitude origin
        返回:
        Grid x origin
      • setGridXOrigin

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

        public float getGridYOrigin()
        Get grid y/latitude origin
        返回:
        Grid y origin
      • setGridYOrigin

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

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

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

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

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

        public GraphicCollection getGraphicCollection()
        Get graphic collection
        返回:
        The graphic collection
      • setGraphicCollection

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

        public VectorLayer getLonLatLayer()
        Get lon/lat layer
        返回:
        The lon/lat layer
      • setLonLatLayer

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

        public FrmMeasurement getMeasurementForm()
        Get measurement form
        返回:
        Measurement form
      • setMeasurementForm

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

        public MaskOut getMaskOut()
        Get maskout
        返回:
        Maskout
      • setMaskOut

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

        public java.awt.image.BufferedImage getViewImage()
        Get view image
        返回:
        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
        参数:
        aLayer - The layer
        返回:
        Layer handle
      • addLayer

        public int addLayer​(int index,
                            MapLayer aLayer)
        Add a layer
        参数:
        index - The index
        aLayer - The layer
        返回:
        Layer handle
      • addWindLayer

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

        public int getNewLayerHandle()
        Get new layer handle
        返回:
        New layer handle
      • getSelectedLayer

        public MapLayer getSelectedLayer()
        Get selected layer
        返回:
        Selected layer
      • getLayersWholeExtent

        public Extent getLayersWholeExtent()
        Get layers whole extent
        返回:
        The extent
      • getMeteoLayersExtent

        public Extent getMeteoLayersExtent()
        Get layers whole extent
        返回:
        The extent
      • getLayerHandleFromName

        public int getLayerHandleFromName​(java.lang.String name)
        Get layer handle from layer name
        参数:
        name - The layer name
        返回:
        Layer handle
      • getLayerHandleFromIdx

        public int getLayerHandleFromIdx​(int lIdx)
        Get layer handle from layer index
        参数:
        lIdx - Layer index
        返回:
        Layer handle
      • getLayerByHandle

        public MapLayer getLayerByHandle​(int handle)
        Get layer by handle
        参数:
        handle - The layer handle
        返回:
        The layer object
      • getLayer

        public MapLayer getLayer​(java.lang.String name)
        Get layer by layer name
        参数:
        name - The layer name
        返回:
        The layer
      • getLayerIdxFromHandle

        public int getLayerIdxFromHandle​(int handle)
        Get layer index from layer handle
        参数:
        handle - The layer handle
        返回:
        Layer index
      • moveLayer

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

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

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

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

        public void removeAllLayers()
        Remove all layers
      • getLineLayerIdx

        public int getLineLayerIdx()
        Get last polyline layer index
        返回:
        Layer index
      • getPolygonLayerIdx

        public int getPolygonLayerIdx()
        Get last polygon layer index
        返回:
        Layer index
      • getImageLayerIdx

        public int getImageLayerIdx()
        Get last image layer index
        返回:
        Layer index
      • hasWebMapLayer

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

        public void paintComponent​(java.awt.Graphics g)
        Paint component
        覆盖:
        paintComponent 在类中 javax.swing.JComponent
        参数:
        g - Graphics
      • getWebMapZoom

        public int getWebMapZoom()
        从接口复制的说明: IWebMapPanel
        Get web map layer zoom
        指定者:
        getWebMapZoom 在接口中 IWebMapPanel
        返回:
        Web map layer zoom
      • paintLayers

        public void paintLayers()
      • paintGraphics

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

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

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

        public void drawLayerWithLegendScheme​(VectorLayer aLayer,
                                              java.awt.Graphics2D g,
                                              double LonShift)
        Draw layer with legend scheme
        参数:
        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
        参数:
        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
        参数:
        aLayer - The layer
        g - Graphics2D
        LonShift - Longitude shift
      • getWebMapLayer

        public WebMapLayer getWebMapLayer()
        Get web map layer
        返回:
        The web map layer
      • drawGraphicList

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

        public void drawGraphic​(java.awt.Graphics2D g,
                                Graphic graphic,
                                java.awt.Rectangle rect)
        Draw a graphic
        参数:
        g - The Graphics2D
        graphic - The graphic
        rect - Drawing rectangle
      • drawGraphic

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

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

        public void drawIdShape​(java.awt.Graphics2D g,
                                Shape aShape,
                                java.awt.Rectangle rect)
        Draw identifer shape
        参数:
        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
        参数:
        aFile - File path
        抛出:
        java.io.FileNotFoundException
        javax.print.PrintException
        java.io.IOException
      • exportToPicture

        public void exportToPicture​(java.lang.String fileName,
                                    java.lang.Integer dpi)
                             throws java.io.FileNotFoundException,
                                    javax.print.PrintException,
                                    java.io.IOException
        Export to a picture file
        参数:
        fileName - File path
        dpi - DPI
        抛出:
        java.io.FileNotFoundException
        javax.print.PrintException
        java.io.IOException
      • generateLonLatLayer

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

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

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

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

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

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

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

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

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

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

        public void moveGraphic​(Graphic graphic,
                                double x,
                                double y,
                                boolean screen)
        Move a graphic
        参数:
        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
        参数:
        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
        参数:
        aShape - The shape
        legend - The legend
        newRect - New rectangle
      • resizeShapeOnScreen

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

        public double getLonShift​(Extent aExtent)
        Get longitude shift
        参数:
        aExtent - Extent
        返回:
        Longitude shift
      • getLonShift

        public double getLonShift​(double lon)
        Get longitude shift
        参数:
        lon - Longitude
        返回:
        Longitude shift
      • zoomToExtent

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

        public void zoomToExtent​(double minX,
                                 double maxX,
                                 double minY,
                                 double maxY)
        Zoom to extent
        参数:
        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
        参数:
        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
        参数:
        aExtent - The extent
      • zoomToExtentLonLatEx_back

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

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

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

        public double getGeoScale()
        Get geographic scale
        返回:
        Geographic scale
      • getGeoCenter

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

        public PointD getViewCenter()
        Get view center point
        返回:
        The view center point
      • setViewCenter

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

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

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

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

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

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

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

        public PolygonShape selectShape​(VectorLayer layer,
                                        PointF p)
        Select polygon shape
        参数:
        layer - Polygon layer
        p - The point
        返回:
        Selected polygon shape
      • selectPolygonHole

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

        public java.util.List<java.lang.Integer> selectShapes​(VectorLayer aLayer,
                                                              PointF aPoint,
                                                              boolean onlyVisible,
                                                              boolean isSel)
        Select shaped
        参数:
        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
        返回:
        Selected shapes
      • selectShapes

        public java.util.List<java.lang.Integer> selectShapes​(VectorLayer aLayer,
                                                              PointF aPoint)
        Select shapes
        参数:
        aLayer - Vector layer
        aPoint - The point
        返回:
        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
        参数:
        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
        返回:
        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
        参数:
        aLayer - The vector layer
        rect - Select rectangle
        isSingleSel - If just select the first object shape
        返回:
        Selected shapes
      • selectShapes

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

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

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

        public java.awt.Rectangle getGraphicRectangle​(Graphic aGraphic,
                                                      double lonShift)
        Get graphic rectangle
        参数:
        aGraphic - The graphic
        lonShift - Longitude shift
        返回:
        Rectangle
      • getGraphicRectangle

        public java.awt.Rectangle getGraphicRectangle​(Graphic aGraphic)
        Get graphic rectangle
        参数:
        aGraphic - The graphic
        返回:
        Rectangle
      • addGraphic

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

        public void removeGraphic​(Graphic aGraphic)
        Remove a graphic
        参数:
        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
        参数:
        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
        参数:
        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
        参数:
        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
        参数:
        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
        参数:
        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
        参数:
        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
        参数:
        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
        参数:
        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
        参数:
        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
        参数:
        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
        参数:
        parent - Parent XML element
      • loadGridLineElement

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

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

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

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

        public VectorLayer loadVectorLayer​(java.lang.String pPath,
                                           org.w3c.dom.Node aVLayer)
        Load vector layer
        参数:
        pPath - Project file parent path
        aVLayer - Vector layer XML node
        返回:
        Vector layer
      • loadImageLayer

        public ImageLayer loadImageLayer​(org.w3c.dom.Node aILayer)
        Load image layer
        参数:
        aILayer - Image layer XML node
        返回:
        Image layer
      • loadRasterLayer

        public RasterLayer loadRasterLayer​(org.w3c.dom.Node aILayer)
                                    throws java.lang.Exception
        Load raster layer
        参数:
        aILayer - Raster layer XML node
        返回:
        Raster layer
        抛出:
        java.lang.Exception
      • loadWebMapLayer

        public WebMapLayer loadWebMapLayer​(org.w3c.dom.Node wmLayer)
                                    throws java.lang.Exception
        Load web map layer
        参数:
        wmLayer - Web map layer XML node
        返回:
        Web map layer
        抛出:
        java.lang.Exception
      • loadGraphics

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

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

        public void showMeasurementForm()
        Show measurment form