Package ucar.nc2.ft2.simpgeometry
Interface Point
-
- All Superinterfaces:
SimpleGeometry
- All Known Implementing Classes:
CFPoint
public interface Point extends SimpleGeometry
Generic interface for a Simple Geometry Point.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Array
getData()
Get the data associated with this pointPoint
getNext()
Retrieves the next point within a multipoint if anyPoint
getPrev()
Retrieves the previous point within a multipoint if anydouble
getX()
Return the x coordinate for the point.double
getY()
Return the y coordinate for the pointvoid
setData(Array arr)
Sets the data array of the point.void
setNext(Point next)
Sets the next point in a multipointvoid
setPrev(Point prev)
Set the previous point in a multipointPoint
setupPoint(NetcdfDataset dataset, Variable variable, int index)
Given a dataset, construct a point from the variable which holds points and the index as given.void
setX(double x)
Sets the x coordinate of the point.void
setY(double y)
Set the y coordinate of the point.-
Methods inherited from interface ucar.nc2.ft2.simpgeometry.SimpleGeometry
getBBLower, getBBUpper
-
-
-
-
Method Detail
-
getData
Array getData()
Get the data associated with this point- Specified by:
getData
in interfaceSimpleGeometry
- Returns:
- data
-
getX
double getX()
Return the x coordinate for the point.- Returns:
- x of the point
-
getY
double getY()
Return the y coordinate for the point- Returns:
- y of the point
-
getNext
Point getNext()
Retrieves the next point within a multipoint if any- Returns:
- next point if it exists, null if not
-
getPrev
Point getPrev()
Retrieves the previous point within a multipoint if any- Returns:
- previous point if it exists null if not
-
setData
void setData(Array arr)
Sets the data array of the point.- Specified by:
setData
in interfaceSimpleGeometry
- Parameters:
arr
- the array which will be the points new data array
-
setX
void setX(double x)
Sets the x coordinate of the point.- Parameters:
x
- coordinate of the point
-
setY
void setY(double y)
Set the y coordinate of the point.- Parameters:
y
- coordinate of the point
-
setNext
void setNext(Point next)
Sets the next point in a multipoint
-
setPrev
void setPrev(Point prev)
Set the previous point in a multipoint
-
setupPoint
Point setupPoint(NetcdfDataset dataset, Variable variable, int index)
Given a dataset, construct a point from the variable which holds points and the index as given.- Parameters:
dataset
- Where the point variable residesvariable
- Which holds point informationindex
- for Indexing within the polygon variable- Returns:
- the constructed Point with associated data
-
-