public class CFLine extends java.lang.Object implements Line
| Constructor and Description |
|---|
CFLine()
Constructs an "empty" line with no members using an ArrayList to implement the point list.
|
CFLine(java.util.List<Point> newPt)
From a given list of points, construct a line
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPoint(double x,
double y)
Add a point to the end of the line.
|
double[] |
getBBLower()
Gets the lower bounding box coordinate on the line.
|
double[] |
getBBUpper()
Gets the upper bounding box coordinate on the line.
|
Array |
getData()
Get the data associated with this line
|
GeometryType |
getGeometryType()
Get the geometry the data is associated with.
|
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
|
protected void |
setNext(CFLine next)
Sets the next line which makes up the multiline which this line is a part of.
|
void |
setNext(Line next)
Sets the previous line which makes up the multiline which this line is a part of.
|
protected void |
setPrev(CFLine prev)
Sets the previous line which makes 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 var,
int index)
Given a dataset, variable, and index, automatically populates this Line and
returns it.
|
public CFLine()
public CFLine(java.util.List<Point> newPt)
newPt - The list of points which will constitute the new linepublic GeometryType getGeometryType()
public void addPoint(double x,
double y)
public java.util.List<Point> getPoints()
public Array getData()
getData in interface LinegetData in interface SimpleGeometrypublic Line getNext()
public Line getPrev()
public void setData(Array data)
setData in interface LinesetData in interface SimpleGeometrydata - - array of data to set topublic void setNext(Line next)
protected void setNext(CFLine next)
public void setPrev(Line prev)
protected void setPrev(CFLine prev)
public Line setupLine(NetcdfDataset dataset, Variable var, int index)
public double[] getBBUpper()
getBBUpper in interface SimpleGeometrypublic double[] getBBLower()
getBBLower in interface SimpleGeometry