|
SGT Home | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gov.noaa.pmel.sgt.dm.SimpleGrid
SimpleGrid
provides an implementation of the
SGTGrid
and Cartesian
interfaces.
SGTGrid
,
Cartesian
Constructor Summary | |
SimpleGrid()
Default constructor. |
|
SimpleGrid(double[] grid,
double[] xloc,
double[] yloc,
java.lang.String title)
Constructor for X and Y coordinates as double. |
|
SimpleGrid(double[] grid,
double[] xloc,
GeoDate[] tloc,
java.lang.String title)
Constructor for X double and Y time. |
|
SimpleGrid(double[] grid,
GeoDate[] tloc,
double[] yloc,
java.lang.String title)
Constructor for X time and Y double. |
Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Add a PropertyChangeListener to the listener list. |
SGTData |
copy()
Create a copy of the grid. |
SGTGrid |
getAssociatedData()
Get the associated data. |
java.lang.String |
getId()
Get the unique identifier. |
SGLabel |
getKeyTitle()
Get a title formatted for a Key. |
GeoDate[] |
getTimeArray()
Get the array of temporal values. |
GeoDate[] |
getTimeEdges()
Get the Time edges. |
java.lang.String |
getTitle()
Get the title. |
int |
getTSize()
Get the length of the Time axis |
double[] |
getXArray()
Get the array of X values. |
double[] |
getXEdges()
Get the X coordinate edges. |
SoTRange |
getXEdgesRange()
Return the range of the x edges |
SGTMetaData |
getXMetaData()
Returns the X SGTMetaData. |
SoTRange |
getXRange()
Returns the range of the X coordinates. |
int |
getXSize()
Get the length of the x axis |
double[] |
getYArray()
Get the array of Y values. |
double[] |
getYEdges()
Get the Y coordinate edges. |
SoTRange |
getYEdgesRange()
Return the range of the y edges |
SGTMetaData |
getYMetaData()
Returns the Y SGTMetaData. |
SoTRange |
getYRange()
Returns the range of the Y coordinates. |
int |
getYSize()
Get the length of the y axis |
double[] |
getZArray()
Get the array of Z values. |
SGTMetaData |
getZMetaData()
Get the Z SGTMetaData. |
Range2D |
getZRange()
Get the range of Z values. |
boolean |
hasAssociatedData()
Is there associated data available? |
boolean |
hasXEdges()
Are X edges available? |
boolean |
hasYEdges()
Are Y edges available? |
boolean |
isXTime()
Returns true if the X coordinate is Time. |
boolean |
isYTime()
Returns true if the Y coordinate is Time. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Remove a PropertyChangeListener from the listener list. |
void |
setAssociatedData(SGTGrid assoc)
Set the associated data grid. |
void |
setId(java.lang.String ident)
Set the unique identifier. |
void |
setKeyTitle(SGLabel title)
Set the title formatted for the VectorKey . |
void |
setTimeArray(GeoDate[] tloc)
set the temporal grid centers Property Change: dataModified . |
void |
setTimeEdges(GeoDate[] edge)
Set the values for the temporal grid edges. |
void |
setTitle(java.lang.String title)
Set the grid title |
void |
setXArray(double[] xloc)
Set the x coordinate grid centers Property Change: dataModified . |
void |
setXEdges(double[] edge)
Set the values for the x grid edges. |
void |
setXMetaData(SGTMetaData md)
Set the SGTMetaData associated with the x
coordinate. |
void |
setYArray(double[] yloc)
Set the y coordinate grid centers Property Change: dataModified . |
void |
setYEdges(double[] edge)
Set the values for the y grid edges. |
void |
setYMetaData(SGTMetaData md)
Set the SGTMetaData associated with the y
coordinate. |
void |
setZArray(double[] grid)
Set the z grid values. |
void |
setZMetaData(SGTMetaData md)
Set the SGTMetaData associated with the z
coordinate. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleGrid()
public SimpleGrid(double[] grid, double[] xloc, double[] yloc, java.lang.String title)
grid
- Z valuesxloc
- X coordinatesyloc
- Y coordinatestitle
- the titlepublic SimpleGrid(double[] grid, GeoDate[] tloc, double[] yloc, java.lang.String title)
grid
- Z valuestloc
- Time coordinatesyloc
- Y coordinatestitle
- the titlepublic SimpleGrid(double[] grid, double[] xloc, GeoDate[] tloc, java.lang.String title)
grid
- Z valuesxloc
- X coordinatestloc
- Time coordinatestitle
- the titleMethod Detail |
public SGTData copy()
copy
in interface SGTData
SGTData
public double[] getXArray()
SGTGrid
getXArray
in interface SGTGrid
public int getXSize()
getXSize
in interface SGTGrid
public double[] getYArray()
SGTGrid
getYArray
in interface SGTGrid
public int getYSize()
getYSize
in interface SGTGrid
public double[] getZArray()
SGTGrid
getZArray
in interface SGTGrid
public GeoDate[] getTimeArray()
SGTGrid
getTimeArray
in interface SGTGrid
public int getTSize()
getTSize
in interface SGTGrid
public boolean isXTime()
SGTData
isXTime
in interface SGTData
public boolean isYTime()
SGTData
isYTime
in interface SGTData
public SGTMetaData getXMetaData()
SGTData
getXMetaData
in interface SGTData
public SGTMetaData getYMetaData()
SGTData
getYMetaData
in interface SGTData
public SGTMetaData getZMetaData()
SGTGrid
getZMetaData
in interface SGTGrid
public java.lang.String getTitle()
SGTData
getTitle
in interface SGTData
public void setAssociatedData(SGTGrid assoc)
associatedDataModified
.public SGTGrid getAssociatedData()
SGTGrid
getAssociatedData
in interface SGTGrid
public boolean hasAssociatedData()
SGTGrid
hasAssociatedData
in interface SGTGrid
public boolean hasXEdges()
SGTGrid
hasXEdges
in interface SGTGrid
public double[] getXEdges()
SGTGrid
getXEdges
in interface SGTGrid
public void setXEdges(double[] edge)
public boolean hasYEdges()
SGTGrid
hasYEdges
in interface SGTGrid
public double[] getYEdges()
SGTGrid
getYEdges
in interface SGTGrid
public void setYEdges(double[] edge)
public GeoDate[] getTimeEdges()
SGTGrid
getTimeEdges
in interface SGTGrid
public void setTimeEdges(GeoDate[] edge)
public void setXMetaData(SGTMetaData md)
SGTMetaData
associated with the x
coordinate.public void setYMetaData(SGTMetaData md)
SGTMetaData
associated with the y
coordinate.public void setZMetaData(SGTMetaData md)
SGTMetaData
associated with the z
coordinate.public void setTitle(java.lang.String title)
public SGLabel getKeyTitle()
SGTData
JPlotLayout
will use this
if an explicit Key title is not given in the addData
method.getKeyTitle
in interface SGTData
gov.noaa.pmel.sgt.dm.SGTData
SGLabel
,
ColorKey
,
LineKey
,
PointCollectionKey
,
VectorKey
public void setKeyTitle(SGLabel title)
VectorKey
.public java.lang.String getId()
getId
in interface SGTData
Pane
,
Layer
public void setId(java.lang.String ident)
public void setXArray(double[] xloc)
dataModified
.public void setYArray(double[] yloc)
dataModified
.public void setZArray(double[] grid)
dataModified
.public void setTimeArray(GeoDate[] tloc)
dataModified
.public SoTRange getXRange()
SGTData
Double.NaN
as the start and end values for data of type double
and return GeoDate(Long.MIN_VALUE)
for data of type
GeoDate
.getXRange
in interface SGTData
gov.noaa.pmel.sgt.dm.SGTData
GeoDate.isMissing()
public SoTRange getYRange()
SGTData
getYRange
in interface SGTData
gov.noaa.pmel.sgt.dm.SGTData
SGTData.getXRange()
public Range2D getZRange()
SGTGrid
getZRange
in interface SGTGrid
public SoTRange getXEdgesRange()
getXEdgesRange
in interface SGTGrid
public SoTRange getYEdgesRange()
getYEdgesRange
in interface SGTGrid
public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
SGTData
addPropertyChangeListener
in interface SGTData
public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
SGTData
removePropertyChangeListener
in interface SGTData
|
SGT Home | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |