类 MapPlot

  • 所有已实现的接口:
    org.meteoinfo.data.mapdata.webmap.IWebMapPanel

    public class MapPlot
    extends AbstractPlot2D
    implements org.meteoinfo.data.mapdata.webmap.IWebMapPanel
    作者:
    wyq
    • 构造器详细资料

      • MapPlot

        public MapPlot()
        Constructor
      • MapPlot

        public MapPlot​(org.meteoinfo.geo.mapview.MapView mapView)
        Constructor
        参数:
        mapView - MapView
      • MapPlot

        public MapPlot​(org.meteoinfo.geo.legend.MapFrame mapFrame)
        Constructor
        参数:
        mapFrame - MapFrame
    • 方法详细资料

      • setParent

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

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

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

        public org.meteoinfo.geo.mapview.MapView getMapView()
        Get map view
        返回:
        Map view
      • setMapView

        public void setMapView​(org.meteoinfo.geo.mapview.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 org.meteoinfo.geo.legend.MapFrame getMapFrame()
        Get map frame
        返回:
        Map frame
      • setMapFrame

        public void setMapFrame​(org.meteoinfo.geo.legend.MapFrame value)
        Set map frame
        参数:
        value - Map frame
      • getProjInfo

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

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

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

        public org.meteoinfo.geo.layer.MapLayer getSelectedLayer()
        Get selected layer
        返回:
        Selected layer
      • setSelectedLayer

        public void setSelectedLayer​(org.meteoinfo.geo.layer.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 org.meteoinfo.geometry.graphic.Graphic getBoundary()
        Get map boundary
        返回:
        Map boundary
      • setBoundary

        public void setBoundary​(org.meteoinfo.geometry.graphic.Graphic value)
        Set map boundary
        参数:
        value - Map boundary
      • setBoundary

        public void setBoundary​(org.meteoinfo.geometry.shape.PolygonShape value)
        Set map boundary
        参数:
        value - Map boundary
      • setBoundaryProp

        public void setBoundaryProp​(org.meteoinfo.geometry.legend.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
      • isDegreeSpace

        public boolean isDegreeSpace()
        Get if using space between degree and E/W/S/N
        返回:
        Boolean
      • setDegreeSpace

        public void setDegreeSpace​(boolean value)
        Set if using space between degree and E/W/S/N
        参数:
        value - Boolean
      • hasWebMapLayer

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

        public int getWebMapZoom()
        Get web map zoom
        指定者:
        getWebMapZoom 在接口中 org.meteoinfo.data.mapdata.webmap.IWebMapPanel
        返回:
        Web map zoom
      • reDraw

        public void reDraw()
        指定者:
        reDraw 在接口中 org.meteoinfo.data.mapdata.webmap.IWebMapPanel
      • draw

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

        public org.meteoinfo.common.Extent getAutoExtent()
        Get auto extent
        返回:
        Auto extent
      • addGraphic

        public void addGraphic​(org.meteoinfo.geometry.graphic.Graphic graphic)
        Add a graphic
        参数:
        graphic - The graphic
      • addGraphics

        public void addGraphics​(org.meteoinfo.geometry.graphic.GraphicCollection graphics)
        Add graphics
        参数:
        graphics - The graphics
      • addGraphic

        public org.meteoinfo.geometry.graphic.Graphic addGraphic​(org.meteoinfo.geometry.graphic.Graphic graphic,
                                                                 org.meteoinfo.projection.ProjectionInfo proj)
        Add a graphic
        参数:
        graphic - The graphic
        proj - The graphic projection
        返回:
        Added graphic
      • addGraphics

        public org.meteoinfo.geometry.graphic.GraphicCollection addGraphics​(org.meteoinfo.geometry.graphic.GraphicCollection graphics,
                                                                            org.meteoinfo.projection.ProjectionInfo proj)
        Add graphics
        参数:
        graphics - The graphics
        proj - The graphic projection
        返回:
        Added graphics
      • addLayer

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

        public void addLayer​(int idx,
                             org.meteoinfo.geo.layer.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 org.meteoinfo.common.Extent getFullExtent()
        Get full extent
        返回:
        Full extent
      • setLonLatExtent

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

        public void setAxisExtent​(org.meteoinfo.common.Extent extent)
        Set axis extent
        参数:
        extent - Extent
      • addText

        public void addText​(ChartText text,
                            boolean isLonLat)
      • addPoint

        public void addPoint​(double lat,
                             double lon,
                             org.meteoinfo.geometry.legend.PointBreak pb)
        Add point graphic
        参数:
        lat - Latitude
        lon - Longitude
        pb - Point break
      • addPoint

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

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

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

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

        public org.meteoinfo.geometry.graphic.Graphic addCircle​(float x,
                                                                float y,
                                                                float radius,
                                                                org.meteoinfo.geometry.legend.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
      • getLayers

        public org.meteoinfo.geo.layer.LayerCollection getLayers()
        Get layers
        返回:
        Layers
      • getLayer

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

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

        public org.meteoinfo.geometry.legend.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