Class MapPlot

    • Constructor Detail

      • MapPlot

        public MapPlot​()
        Constructor
      • MapPlot

        public MapPlot​(MapView mapView)
        Constructor
        Parameters:
        mapView - MapView
      • MapPlot

        public MapPlot​(MapFrame mapFrame)
        Constructor
        Parameters:
        mapFrame - MapFrame
    • Method Detail

      • setParent

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

        public Dataset getDataset​()
        Description copied from class: Plot
        Get dataset
        Specified by:
        getDataset in class Plot
        Returns:
        Dataset
      • setDataset

        public void setDataset​(Dataset dataset)
        Description copied from class: Plot
        Set dataset
        Specified by:
        setDataset in class Plot
        Parameters:
        dataset - Dataset
      • getMapView

        public MapView getMapView​()
        Get map view
        Returns:
        Map view
      • setMapView

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

        public boolean isAntialias​()
        Get if is antialias
        Returns:
        Boolean
      • setAntialias

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

        public java.awt.Color getBackground​()
        Get background color
        Overrides:
        getBackground in class AbstractPlot2D
        Returns:
        Background color
      • setBackground

        public void setBackground​(java.awt.Color value)
        Set background color
        Overrides:
        setBackground in class AbstractPlot2D
        Parameters:
        value - Background color
      • getMapFrame

        public MapFrame getMapFrame​()
        Get map frame
        Returns:
        Map frame
      • setMapFrame

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

        public ProjectionInfo getProjInfo​()
        Get projection info
        Returns:
        Projection info
      • isLonLatMap

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

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

        public void setSelectedLayer​(MapLayer value)
        Set selected layer
        Parameters:
        value - Selected layer
      • hasWebMapLayer

        public boolean hasWebMapLayer​()
        Check if has web map layer
        Returns:
        Boolean
      • getWebMapZoom

        public int getWebMapZoom​()
        Get web map zoom
        Specified by:
        getWebMapZoom in interface IWebMapPanel
        Returns:
        Web map zoom
      • getAutoExtent

        public Extent getAutoExtent​()
        Get auto extent
        Returns:
        Auto extent
      • addGraphic

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

        public Graphic addGrahic​(Graphic graphic,
                                 ProjectionInfo proj)
        Add a graphic
        Parameters:
        graphic - The graphic
        proj - The graphic projection
        Returns:
        Added graphic
      • addLayer

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

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

        public void removeLastLayer​()
        Remove last added layer
      • setAxisOn

        public void setAxisOn​(boolean value)
        Set all axis visible or not
        Overrides:
        setAxisOn in class AbstractPlot2D
        Parameters:
        value - Boolean
      • setLonLatExtent

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

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

        public void addPoint​(double lat,
                             double lon,
                             PointBreak pb)
        Add point graphic
        Parameters:
        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
        Parameters:
        lat - Latitude
        lon - Lontitude
        pb - Point break
        Returns:
        Graphic
      • addPolyline

        public Graphic addPolyline​(java.util.List<java.lang.Number> lat,
                                   java.util.List<java.lang.Number> lon,
                                   PolylineBreak plb)
        Add polyline
        Parameters:
        lat - Latitude
        lon - Longitude
        plb - PolylineBreak
        Returns:
        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
        Parameters:
        lat - Latitude
        lon - Longitude
        plb - PolylineBreak
        iscurve - Is curve line or not
        Returns:
        Graphic
      • addPolygon

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

        public Graphic addCircle​(float x,
                                 float y,
                                 float radius,
                                 PolygonBreak pgb)
        Add a circle
        Parameters:
        x - Center x
        y - Center y
        radius -
        pgb - PolygonBreak
        Returns:
        Graphic
      • getPositionArea

        public java.awt.geom.Rectangle2D getPositionArea​(java.awt.geom.Rectangle2D area)
        Get position area
        Overrides:
        getPositionArea in class Plot
        Parameters:
        area - Whole area
        Returns:
        Graphic area
      • getLayerNum

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

        public LayerCollection getLayers​()
        Get layers
        Returns:
        Layers
      • getLayer

        public MapLayer getLayer​(int i)
        Get layer by index
        Parameters:
        i - The layer index
        Returns:
        The layer
      • getLayer

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

        public LegendScheme getLegendScheme​()
        Get legend scheme
        Returns:
        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
        Parameters:
        fn - MeteoInfo project file name
        mfidx - Map frame index
        Throws:
        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
        Parameters:
        fn - MeteoInfo project file name
        Throws:
        org.xml.sax.SAXException
        java.io.IOException
        javax.xml.parsers.ParserConfigurationException