public interface Line extends SimpleGeometry
Modifier and Type | Method and 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.
|
java.util.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.
|
getBBLower, getBBUpper
void addPoint(double x, double y)
java.util.List<Point> getPoints()
Array getData()
getData
in interface SimpleGeometry
Line getNext()
Line getPrev()
void setData(Array data)
setData
in interface SimpleGeometry
data
- - array of data to set tovoid setNext(Line next)
void setPrev(Line prev)
Line setupLine(NetcdfDataset dataset, Variable variable, int index)
dataset
- Where the line variable residesvariable
- Which holds polygon informationindex
- for Indexing within the polygon variable