|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.noaa.pmel.sgt.dm.SimpleLine
public class SimpleLine
SimpleLine
provides an implementation of the
SGTLine
and Cartesian
interfaces.
SGTLine
,
Cartesian
,
Serialized FormField Summary | |
---|---|
protected SGTLine |
associatedData_
|
protected java.lang.String |
id_
|
protected SGLabel |
keyTitle_
|
protected java.lang.String |
title_
|
protected GeoDateArray |
tloc_
|
protected double[] |
xloc_
|
protected SGTMetaData |
xMetaData_
|
protected boolean |
xTime_
|
protected double[] |
yloc_
|
protected SGTMetaData |
yMetaData_
|
protected boolean |
yTime_
|
Constructor Summary | |
---|---|
SimpleLine()
Default constuctor. |
|
SimpleLine(double[] xloc,
double[] yloc,
java.lang.String title)
Constructor for X and Y double. |
|
SimpleLine(double[] xloc,
GeoDate[] tloc,
java.lang.String title)
Constructor for X double and Y Time. |
|
SimpleLine(double[] xloc,
GeoDateArray tloc,
java.lang.String title)
Constructor for X double and Y Time. |
|
SimpleLine(GeoDate[] tloc,
double[] yloc,
java.lang.String title)
Constructor for X Time and Y double. |
|
SimpleLine(GeoDateArray 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 shallow copy. |
SGTLine |
getAssociatedData()
Get the associated data. |
GeoDateArray |
getGeoDateArray()
Get the GeoDateArray object. |
java.lang.String |
getId()
Get the unique identifier. |
SGLabel |
getKeyTitle()
Get a title formatted for a Key. |
GeoDate[] |
getTimeArray()
Get the Time coordinate array. |
java.lang.String |
getTitle()
Get the Title. |
double[] |
getXArray()
Get the X coordinate array. |
SGTMetaData |
getXMetaData()
Get the X coordinate metadata. |
SoTRange |
getXRange()
Returns the range of the X coordinates. |
double[] |
getYArray()
Get the Y coordinate array. |
SGTMetaData |
getYMetaData()
Get the Y coordinate metadata |
SoTRange |
getYRange()
Returns the range of the Y coordinates. |
boolean |
hasAssociatedData()
Is there associated data? |
boolean |
isXTime()
Is the X coordinate Time? |
boolean |
isYTime()
Is the Y coordinate Time? |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Remove a PropertyChangeListener from the listener list. |
void |
setAssociatedData(SGTLine assoc)
Set the data that will be associated with SGTLine
Property Change: associatedDataModified . |
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 Time coordinate array Property Change: dataModified . |
void |
setTimeArray(GeoDateArray tarray)
|
void |
setTitle(java.lang.String title)
Set the title. |
void |
setXArray(double[] xloc)
Set the X coordinate array. |
void |
setXMetaData(SGTMetaData md)
Set the X coordinate metadata. |
void |
setYArray(double[] yloc)
Set the Y coordinate array Property Change: dataModified . |
void |
setYMetaData(SGTMetaData md)
Set the Y coordinate metadata. |
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 GeoDateArray tloc_
protected boolean xTime_
protected boolean yTime_
protected java.lang.String title_
protected SGLabel keyTitle_
protected java.lang.String id_
protected SGTMetaData xMetaData_
protected SGTMetaData yMetaData_
protected SGTLine associatedData_
Constructor Detail |
---|
public SimpleLine()
public SimpleLine(double[] xloc, double[] yloc, java.lang.String title)
xloc
- X coordinatesyloc
- Y coordinatestitle
- the Titlepublic SimpleLine(GeoDate[] tloc, double[] yloc, java.lang.String title)
tloc
- Time coordinatesyloc
- Y coordinatestitle
- the Titlepublic SimpleLine(GeoDateArray tloc, double[] yloc, java.lang.String title)
tloc
- Time coordinatesyloc
- Y coordinatestitle
- the Titlepublic SimpleLine(double[] xloc, GeoDateArray tloc, java.lang.String title)
xloc
- X coordinatestloc
- Time coordinatestitle
- the Titlepublic SimpleLine(double[] xloc, GeoDate[] tloc, java.lang.String title)
xloc
- X coordinatestloc
- Time coordinatestitle
- the TitleMethod Detail |
---|
public SGTData copy()
copy
in interface SGTData
SGTData
public double[] getXArray()
getXArray
in interface SGTLine
public double[] getYArray()
getYArray
in interface SGTLine
public GeoDate[] getTimeArray()
getTimeArray
in interface SGTLine
public GeoDateArray getGeoDateArray()
GeoDateArray
object.
getGeoDateArray
in interface SGTLine
public boolean isXTime()
isXTime
in interface SGTData
public boolean isYTime()
isYTime
in interface SGTData
public SGTMetaData getXMetaData()
getXMetaData
in interface SGTData
public SGTMetaData getYMetaData()
getYMetaData
in interface SGTData
public java.lang.String getTitle()
getTitle
in interface SGTData
public java.lang.String getId()
getId
in interface SGTData
JPane
,
Layer
public void setId(java.lang.String ident)
public void setAssociatedData(SGTLine assoc)
SGTLine
associatedDataModified
.
public SGTLine getAssociatedData()
getAssociatedData
in interface SGTLine
public boolean hasAssociatedData()
hasAssociatedData
in interface SGTLine
public void setXMetaData(SGTMetaData md)
public void setYMetaData(SGTMetaData md)
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 void setXArray(double[] xloc)
dataModified
.
public void setYArray(double[] yloc)
dataModified
.
public void setTimeArray(GeoDate[] tloc)
dataModified
.
public void setTimeArray(GeoDateArray tarray)
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 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 |