Class ContourDraw



  • public class ContourDraw
    extends java.lang.Object
    Template
    • Constructor Summary

      Constructors 
      Constructor Description
      ContourDraw​()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean getMinMaxValueFDiscreteData​(double[][] S, double noData, double[] minmax)
      Get max/min values from a station data
      static java.util.List<wContour.Global.Border> tracingBorders​(double[][] gridData, double[] X, double[] Y, int[][] S1, double undef)
      Tracing contour borders
      static java.lang.Object[] tracingContourLines​(double[][] gridData, double[] cValues, double[] X, double[] Y, double noData, int[][] S1)
      Tracing contour lines with undefined data
      static java.util.List<wContour.Global.Polygon> tracingPolygons​(double[][] gridData, java.util.List<wContour.Global.PolyLine> contourLines, java.util.List<wContour.Global.Border> borders, double[] cValues)
      Tracing shaded polygons with undefined data
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ContourDraw

        public ContourDraw​()
    • Method Detail

      • tracingBorders

        public static java.util.List<wContour.Global.Border> tracingBorders​(double[][] gridData,
                                                                            double[] X,
                                                                            double[] Y,
                                                                            int[][] S1,
                                                                            double undef)
        Tracing contour borders
        Parameters:
        gridData - Grid data
        X - X array
        Y - Y array
        S1 - Flat array
        undef - Undefine value
        Returns:
        Borders
      • tracingContourLines

        public static java.lang.Object[] tracingContourLines​(double[][] gridData,
                                                             double[] cValues,
                                                             double[] X,
                                                             double[] Y,
                                                             double noData,
                                                             int[][] S1)
        Tracing contour lines with undefined data
        Parameters:
        gridData - Grid data
        cValues - Values
        X - X array
        Y - Y array
        noData - Undefine data
        S1 - Flag array
        Returns:
        Traced contour lines and borders
      • tracingPolygons

        public static java.util.List<wContour.Global.Polygon> tracingPolygons​(double[][] gridData,
                                                                              java.util.List<wContour.Global.PolyLine> contourLines,
                                                                              java.util.List<wContour.Global.Border> borders,
                                                                              double[] cValues)
        Tracing shaded polygons with undefined data
        Parameters:
        gridData - Grid data
        contourLines - Contour lines
        borders - Border lines
        cValues - Values
        Returns:
        Polygon list
      • getMinMaxValueFDiscreteData

        public static boolean getMinMaxValueFDiscreteData​(double[][] S,
                                                          double noData,
                                                          double[] minmax)
        Get max/min values from a station data
        Parameters:
        S - Discrete data
        noData - Missing value
        minmax - Min/Max data array
        Returns:
        If has missing value