Package ucar.nc2.ft2.simpgeometry
Interface Line
-
- All Superinterfaces:
SimpleGeometry
- All Known Implementing Classes:
CFLine
public interface Line extends SimpleGeometry
Generic interface for a Simple Geometry 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 lineLine
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 lineLine
getPrev()
If part of a multiline, returns the previous line within that line if it is presentvoid
setData(Array data)
Set the data associated with this Linevoid
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.-
Methods inherited from interface ucar.nc2.ft2.simpgeometry.SimpleGeometry
getBBLower, getBBUpper
-
-
-
-
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 interfaceSimpleGeometry
- 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 interfaceSimpleGeometry
- 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 residesvariable
- Which holds polygon informationindex
- for Indexing within the polygon variable- Returns:
- the constructed Line with associated data
-
-