Interface Line

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addPoint​(double x, double y)
      Add a point to the end of the line.
      Array getData()
      Get the data associated with this line
      Line getNext()
      If part of a multiline, returns the next line within that line if it is present.
      List<Point> getPoints()
      Returns the list of points which make up this line
      Line getPrev()
      If part of a multiline, returns the previous line within that line if it is present
      void setData​(Array data)
      Set the data associated with this Line
      void setNext​(Line next)
      Sets the next line which make up the multiline which this line is a part of.
      void setPrev​(Line prev)
      Sets the previous line which makes up the multiline which this line is a part of.
      Line setupLine​(NetcdfDataset dataset, Variable variable, int index)
      Given a dataset, construct a line from the variable which holds lines and the index as given.
    • Method Detail

      • addPoint

        void addPoint​(double x,
                      double y)
        Add a point to the end of the line.
      • getPoints

        List<Point> getPoints()
        Returns the list of points which make up this line
        Returns:
        points - the collection of points that make up this line
      • getData

        Array getData()
        Get the data associated with this line
        Specified by:
        getData in interface SimpleGeometry
        Returns:
        data
      • getNext

        Line getNext()
        If part of a multiline, returns the next line within that line if it is present.
        Returns:
        next line if present, null if not
      • getPrev

        Line getPrev()
        If part of a multiline, returns the previous line within that line if it is present
        Returns:
        previous line if present, null if not
      • setData

        void setData​(Array data)
        Set the data associated with this Line
        Specified by:
        setData in interface SimpleGeometry
        Parameters:
        data - - array of data to set to
      • setNext

        void setNext​(Line next)
        Sets the next line which make up the multiline which this line is a part of.
      • setPrev

        void setPrev​(Line prev)
        Sets the previous line which makes up the multiline which this line is a part of.
      • setupLine

        Line setupLine​(NetcdfDataset dataset,
                       Variable variable,
                       int index)
        Given a dataset, construct a line from the variable which holds lines and the index as given.
        Parameters:
        dataset - Where the line variable resides
        variable - Which holds polygon information
        index - for Indexing within the polygon variable
        Returns:
        the constructed Line with associated data