类 MapPlot

    • 构造器详细资料

      • MapPlot

        public MapPlot()
        Constructor
      • MapPlot

        public MapPlot​(MapView mapView)
        Constructor
        参数:
        mapView - MapView
      • MapPlot

        public MapPlot​(MapFrame mapFrame)
        Constructor
        参数:
        mapFrame - MapFrame
    • 方法详细资料

      • setParent

        public void setParent​(ChartPanel value)
        ChartPanel parent
        参数:
        value - ChartPanel
      • getDataset

        public Dataset getDataset()
        从类复制的说明: Plot
        Get dataset
        指定者:
        getDataset 在类中 Plot
        返回:
        Dataset
      • setDataset

        public void setDataset​(Dataset dataset)
        从类复制的说明: Plot
        Set dataset
        指定者:
        setDataset 在类中 Plot
        参数:
        dataset - Dataset
      • getMapView

        public MapView getMapView()
        Get map view
        返回:
        Map view
      • setMapView

        public void setMapView​(MapView value,
                               boolean isGeoMap)
        Set map view
        参数:
        value - Map view
        isGeoMap - If is geo map
      • isAntialias

        public boolean isAntialias()
        Get if is antialias
        返回:
        Boolean
      • setAntialias

        public void setAntialias​(boolean value)
        Set if is antialias
        参数:
        value - Boolean
      • getBackground

        public java.awt.Color getBackground()
        Get background color
        覆盖:
        getBackground 在类中 AbstractPlot2D
        返回:
        Background color
      • setBackground

        public void setBackground​(java.awt.Color value)
        Set background color
        覆盖:
        setBackground 在类中 AbstractPlot2D
        参数:
        value - Background color
      • getMapFrame

        public MapFrame getMapFrame()
        Get map frame
        返回:
        Map frame
      • setMapFrame

        public void setMapFrame​(MapFrame value)
        Set map frame
        参数:
        value - Map frame
      • getProjInfo

        public ProjectionInfo getProjInfo()
        Get projection info
        返回:
        Projection info
      • setProjInfo

        public void setProjInfo​(ProjectionInfo proj)
        Set projection info
        参数:
        proj - Projection info
      • isLonLatMap

        public boolean isLonLatMap()
        Is lon/lat map or not
        返回:
        Boolean
      • getSelectedLayer

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

        public void setSelectedLayer​(MapLayer value)
        Set selected layer
        参数:
        value - Selected layer
      • getLonLim

        public float[] getLonLim()
        Get longitude limitations
        返回:
        Longitude limitations
      • setLonLim

        public void setLonLim​(float[] value)
        Set longitude limitations
        参数:
        value - Longitude limitations
      • setLonLim

        public void setLonLim​(float lon1,
                              float lon2)
        Set longitude limitations
        参数:
        lon1 - Minimum longitude
        lon2 - Maximum longitude
      • getLatLim

        public float[] getLatLim()
        Get latitude limitations
        返回:
        latitude limitations
      • setLatLim

        public void setLatLim​(float[] value)
        Set latitude limitations
        参数:
        value - latitude limitations
      • setLatLim

        public void setLatLim​(float lat1,
                              float lat2)
        Set latitude limitations
        参数:
        lat1 - Minimum latitude
        lat2 - Maximum latitude
      • getBoundary

        public Graphic getBoundary()
        Get map boundary
        返回:
        Map boundary
      • setBoundary

        public void setBoundary​(Graphic value)
        Set map boundary
        参数:
        value - Map boundary
      • setBoundary

        public void setBoundary​(PolygonShape value)
        Set map boundary
        参数:
        value - Map boundary
      • setBoundaryProp

        public void setBoundaryProp​(PolygonBreak pb)
        Set boundary property
        参数:
        pb - Boundary property
      • getScaleBar

        public ChartScaleBar getScaleBar()
        Get scale bar
        返回:
        Scale bar
      • setScaleBar

        public void setScaleBar​(ChartScaleBar value)
        Set scale bar
        参数:
        value - Scale bar
      • getNorthArrow

        public ChartNorthArrow getNorthArrow()
        Get north arrow
        返回:
        North arrow
      • setNorthArrow

        public void setNorthArrow​(ChartNorthArrow value)
        Set north arrow
        参数:
        value - North arrow
      • hasWebMapLayer

        public boolean hasWebMapLayer()
        Check if has web map layer
        返回:
        Boolean
      • getWebMapZoom

        public int getWebMapZoom()
        Get web map zoom
        指定者:
        getWebMapZoom 在接口中 IWebMapPanel
        返回:
        Web map zoom
      • draw

        public void draw​(java.awt.Graphics2D g,
                         java.awt.geom.Rectangle2D area)
        Draw plot
        覆盖:
        draw 在类中 AbstractPlot2D
        参数:
        g - Graphics2D
        area - Drawing area
      • getAutoExtent

        public Extent getAutoExtent()
        Get auto extent
        返回:
        Auto extent
      • addGraphic

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

        public Graphic addGrahic​(Graphic graphic,
                                 ProjectionInfo proj)
        Add a graphic
        参数:
        graphic - The graphic
        proj - The graphic projection
        返回:
        Added graphic
      • addLayer

        public void addLayer​(MapLayer layer)
        Add a layer
        参数:
        layer - The layer
      • addLayer

        public void addLayer​(int idx,
                             MapLayer layer)
        Add a layer
        参数:
        idx - Index
        layer - Layer
      • removeLastLayer

        public void removeLastLayer()
        Remove last added layer
      • setAxisOn

        public void setAxisOn​(boolean value)
        Set all axis visible or not
        覆盖:
        setAxisOn 在类中 AbstractPlot2D
        参数:
        value - Boolean
      • getFullExtent

        public Extent getFullExtent()
        Get full extent
        返回:
        Full extent
      • setLonLatExtent

        public void setLonLatExtent​(Extent extent)
        Set longitude/latitude extent
        参数:
        extent - Extent
      • setAxisExtent

        public void setAxisExtent​(Extent extent)
        Set axis extent
        参数:
        extent - Extent
      • addPoint

        public void addPoint​(double lat,
                             double lon,
                             PointBreak pb)
        Add point graphic
        参数:
        lat - Latitude
        lon - Lontitude
        pb - Point break
      • addPoint

        public Graphic addPoint​(java.util.List<java.lang.Number> lat,
                                java.util.List<java.lang.Number> lon,
                                PointBreak pb)
        Add point graphic
        参数:
        lat - Latitude
        lon - Lontitude
        pb - Point break
        返回:
        Graphic
      • addPolyline

        public Graphic addPolyline​(java.util.List<java.lang.Number> lat,
                                   java.util.List<java.lang.Number> lon,
                                   PolylineBreak plb)
        Add polyline
        参数:
        lat - Latitude
        lon - Longitude
        plb - PolylineBreak
        返回:
        Graphic
      • addPolyline

        public Graphic addPolyline​(java.util.List<java.lang.Number> lat,
                                   java.util.List<java.lang.Number> lon,
                                   PolylineBreak plb,
                                   boolean iscurve)
        Add polyline
        参数:
        lat - Latitude
        lon - Longitude
        plb - PolylineBreak
        iscurve - Is curve line or not
        返回:
        Graphic
      • addPolygon

        public Graphic addPolygon​(java.util.List<java.lang.Number> lat,
                                  java.util.List<java.lang.Number> lon,
                                  PolygonBreak pgb)
        Add polygon
        参数:
        lat - Latitude
        lon - Longitude
        pgb - PolygonBreak
        返回:
        Graphic
      • addCircle

        public Graphic addCircle​(float x,
                                 float y,
                                 float radius,
                                 PolygonBreak pgb)
        Add a circle
        参数:
        x - Center x
        y - Center y
        radius -
        pgb - PolygonBreak
        返回:
        Graphic
      • getPositionArea

        public java.awt.geom.Rectangle2D getPositionArea​(java.awt.geom.Rectangle2D area)
        Get position area
        覆盖:
        getPositionArea 在类中 Plot
        参数:
        area - Whole area
        返回:
        Graphic area
      • getLayerNum

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

        public MapLayer getLayer​(int i)
        Get layer by index
        参数:
        i - The layer index
        返回:
        The layer
      • getLayer

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

        public LegendScheme getLegendScheme()
        Get legend scheme
        返回:
        Legend scheme
      • loadMIProjectFile

        public void loadMIProjectFile​(java.lang.String fn,
                                      int mfidx)
                               throws org.xml.sax.SAXException,
                                      java.io.IOException,
                                      javax.xml.parsers.ParserConfigurationException
        Load MeteoInfo project file
        参数:
        fn - MeteoInfo project file name
        mfidx - Map frame index
        抛出:
        org.xml.sax.SAXException
        java.io.IOException
        javax.xml.parsers.ParserConfigurationException
      • loadMIProjectFile

        public void loadMIProjectFile​(java.lang.String fn)
                               throws org.xml.sax.SAXException,
                                      java.io.IOException,
                                      javax.xml.parsers.ParserConfigurationException
        Load MeteoInfo project file
        参数:
        fn - MeteoInfo project file name
        抛出:
        org.xml.sax.SAXException
        java.io.IOException
        javax.xml.parsers.ParserConfigurationException