|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.noaa.pmel.sgt.dm.ThreeDGrid
public class ThreeDGrid
ThreeDGrid
provides an implementation of the
SGT3DGrid
and Cartesian
interfaces.
SGTGrid
,
Cartesian
,
Serialized FormField Summary | |
---|---|
protected SGTGrid |
associatedData_
|
protected double[] |
grid_
|
protected boolean |
hasXEdges_
|
protected boolean |
hasYEdges_
|
protected boolean |
hasZEdges_
|
protected java.lang.String |
id_
|
protected SGLabel |
keyTitle_
|
protected GeoDate[] |
tEdges_
|
protected java.lang.String |
title_
|
protected GeoDate[] |
tloc_
|
protected SGTMetaData |
valMetaData_
|
protected double[] |
xEdges_
|
protected double[] |
xloc_
|
protected SGTMetaData |
xMetaData_
|
protected boolean |
xTime_
|
protected double[] |
yEdges_
|
protected double[] |
yloc_
|
protected SGTMetaData |
yMetaData_
|
protected boolean |
yTime_
|
protected double[] |
zEdges_
|
protected double[] |
zloc_
|
protected SGTMetaData |
zMetaData_
|
protected boolean |
zTime_
|
Constructor Summary | |
---|---|
ThreeDGrid()
Default constructor. |
|
ThreeDGrid(double[] grid,
double[] xloc,
double[] yloc,
double[] zloc,
java.lang.String title)
Constructor for X, Y, and Z coordinates as double. |
|
ThreeDGrid(double[] grid,
double[] xloc,
double[] yloc,
GeoDate[] tloc,
java.lang.String title)
Constructor for X double and Y double, and Z time. |
|
ThreeDGrid(double[] grid,
double[] xloc,
GeoDate[] tloc,
double[] zloc,
java.lang.String title)
Constructor for X, Z double and Y time. |
|
ThreeDGrid(double[] grid,
GeoDate[] tloc,
double[] yloc,
double[] zloc,
java.lang.String title)
Constructor for X time and Y, Z 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()
|
java.lang.String |
getId()
Get the unique identifier. |
SGLabel |
getKeyTitle()
Get a title formatted for a Key. |
GeoDate[] |
getTimeArray()
|
GeoDate[] |
getTimeEdges()
|
java.lang.String |
getTitle()
Get the title. |
int |
getTSize()
Get the length of the Time axis |
double[] |
getValArray()
|
int |
getValArraySize()
|
SGTMetaData |
getValMetaData()
Get the Value SGTMetaData. |
Range2D |
getValRange()
Get the range of measured values on this 3D grid. |
double[] |
getXArray()
|
double[] |
getXEdges()
|
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()
|
double[] |
getYEdges()
|
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()
|
double[] |
getZEdges()
Get the Y coordinate edges. |
SoTRange |
getZEdgesRange()
Get the range of Y coordinate edges. |
SGTMetaData |
getZMetaData()
|
SoTRange |
getZRange()
|
int |
getZSize()
Get the length of Z value array. |
boolean |
hasAssociatedData()
|
boolean |
hasXEdges()
|
boolean |
hasYEdges()
|
boolean |
hasZEdges()
Z edges available? |
boolean |
isXTime()
Returns true if the X coordinate is Time. |
boolean |
isYTime()
Returns true if the Y coordinate is Time. |
boolean |
isZTime()
Returns true if the Z 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 |
setValArray(double[] grid)
Set the z grid values. |
void |
setValMetaData(SGTMetaData md)
Set the SGTMetaData associated with the z
coordinate. |
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 |
setXTime(boolean flag)
|
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 |
setYTime(boolean flag)
|
void |
setZArray(double[] zloc)
Set the z coordinate grid centers Property Change: dataModified . |
void |
setZEdges(double[] edge)
Set the values for the z grid edges. |
void |
setZMetaData(SGTMetaData md)
Set the SGTMetaData associated with the z
coordinate. |
void |
setZTime(boolean flag)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double[] xloc_
protected double[] yloc_
protected double[] zloc_
protected GeoDate[] tloc_
protected double[] grid_
protected double[] xEdges_
protected double[] yEdges_
protected double[] zEdges_
protected GeoDate[] tEdges_
protected boolean hasXEdges_
protected boolean hasYEdges_
protected boolean hasZEdges_
protected java.lang.String title_
protected SGLabel keyTitle_
protected java.lang.String id_
protected boolean xTime_
protected boolean yTime_
protected boolean zTime_
protected SGTMetaData xMetaData_
protected SGTMetaData yMetaData_
protected SGTMetaData zMetaData_
protected SGTMetaData valMetaData_
protected SGTGrid associatedData_
Constructor Detail |
---|
public ThreeDGrid()
public ThreeDGrid(double[] grid, double[] xloc, double[] yloc, double[] zloc, java.lang.String title)
grid
- Z valuesxloc
- X coordinatesyloc
- Y coordinateszloc
- Z coordinatestitle
- the titlepublic ThreeDGrid(double[] grid, GeoDate[] tloc, double[] yloc, double[] zloc, java.lang.String title)
grid
- valuestloc
- Time coordinatesyloc
- Y coordinateszloc
- Z coordinatestitle
- the titlepublic ThreeDGrid(double[] grid, double[] xloc, GeoDate[] tloc, double[] zloc, java.lang.String title)
grid
- valuesxloc
- X coordinatesxloc
- Z coordinatestloc
- Time coordinatestitle
- the titlepublic ThreeDGrid(double[] grid, double[] xloc, double[] yloc, 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()
public int getXSize()
public double[] getYArray()
public int getYSize()
public double[] getZArray()
public int getZSize()
SGT3DGrid
getZSize
in interface SGT3DGrid
public double[] getValArray()
public int getValArraySize()
public GeoDate[] getTimeArray()
public int getTSize()
public boolean isXTime()
SGTData
isXTime
in interface SGTData
public boolean isYTime()
SGTData
isYTime
in interface SGTData
public boolean isZTime()
SGT3DGrid
isZTime
in interface SGT3DGrid
public void setXTime(boolean flag)
public void setYTime(boolean flag)
public void setZTime(boolean flag)
public SGTMetaData getXMetaData()
SGTData
getXMetaData
in interface SGTData
public SGTMetaData getYMetaData()
SGTData
getYMetaData
in interface SGTData
public SGTMetaData getZMetaData()
public SGTMetaData getValMetaData()
SGT3DGrid
getValMetaData
in interface SGT3DGrid
public java.lang.String getTitle()
SGTData
getTitle
in interface SGTData
public void setAssociatedData(SGTGrid assoc)
associatedDataModified
.
public SGTGrid getAssociatedData()
public boolean hasAssociatedData()
public boolean hasXEdges()
public double[] getXEdges()
public boolean hasZEdges()
SGT3DGrid
hasZEdges
in interface SGT3DGrid
public void setZEdges(double[] edge)
public double[] getZEdges()
SGT3DGrid
getZEdges
in interface SGT3DGrid
public void setXEdges(double[] edge)
public boolean hasYEdges()
public double[] getYEdges()
public void setYEdges(double[] edge)
public GeoDate[] getTimeEdges()
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 setValMetaData(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
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[] zloc)
dataModified
.
public void setValArray(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
GeoDate.isMissing()
public SoTRange getYRange()
SGTData
getYRange
in interface SGTData
SGTData.getXRange()
public SoTRange getZRange()
public Range2D getValRange()
SGT3DGrid
getValRange
in interface SGT3DGrid
public SoTRange getXEdgesRange()
public SoTRange getYEdgesRange()
public SoTRange getZEdgesRange()
SGT3DGrid
getZEdgesRange
in interface SGT3DGrid
public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
SGTData
addPropertyChangeListener
in interface SGTData
public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
SGTData
removePropertyChangeListener
in interface SGTData
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |