Package hec.gfx2d
Class TimeSeriesDataSetBase
java.lang.Object
java.util.Observable
hec.gfx2d.G2dData
hec.gfx2d.TimeSeriesDataSetBase
- All Implemented Interfaces:
G2dObject,Serializable
- Direct Known Subclasses:
TimeSeriesDataSet
A plot data object wrapping around a time series container. This class was introduced
to allow the display unit changes to be ignored. DssVue's Graphical Editor requires
that the data is plotted always in the unit's that the data is stored as.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionintintintlong[]double[]Fields inherited from interface hec.gfx2d.G2dObject
RESET_DATA, UPDATE_DATA -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the extents of the object in world coordinatesgetData()doubleReturns the point in local coordinates of the closest data point to the given ptReturns the name of the x axisintReturns the name of the x axisdouble[]Returns the name of the y axisintReturns the name of the y axisdouble[]getYValues(int curveNum) Returns a double[] for the curve specified by the curve number.booleanbooleanisLoaded()booleanvoidload()Causes the object to load its data into memoryvoidsetData(TimeSeriesContainer timeSeriesContainer) voidsetEndOfPeriodData(boolean b) voidsetLoaded(boolean loaded) voidsetVisible(boolean tf) intsize()size returns the number of valid data pointsvoidunload()Causes the object to unload its data from memoryMethods inherited from class hec.gfx2d.G2dData
addObserver, canSwapXYValues, getCurveCount, getDefaultMaxYValue, getDefaultMinYValue, getGmtOffset, getLineStyleName, getLookup, getName, getUnitSystem, getXParameterId, getYParameterId, hasDefaultMaxYValue, hasDefaultMinYValue, setDefaultMaxYValue, setDefaultMinYValue, setGmtOffset, setName, setSwapXYValues, setUnitSystem, setUseDisplayUnits, setXParameterId, setYParameterId, swapXYValues, toString, useDisplayUnitsMethods inherited from class java.util.Observable
clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface hec.gfx2d.G2dObject
canSwapXYValues, getCurveCount, getDefaultMaxYValue, getDefaultMinYValue, getGmtOffset, getLineStyleName, getLookup, getName, getUnitSystem, getXParameterId, getYParameterId, hasDefaultMaxYValue, hasDefaultMinYValue, setDefaultMaxYValue, setDefaultMinYValue, setSwapXYValues, swapXYValues
-
Field Details
-
_timeSeries
-
times
public long[] times -
ydata
public double[] ydata -
numberValues
public int numberValues -
startIdx
public int startIdx -
endIdx
public int endIdx -
xtype
-
ytype
-
-
Constructor Details
-
TimeSeriesDataSetBase
-
-
Method Details
-
setEndOfPeriodData
public void setEndOfPeriodData(boolean b) -
isEndOfPeriodData
public boolean isEndOfPeriodData() -
getData
-
setData
-
getXValues
public double[] getXValues()- Specified by:
getXValuesin interfaceG2dObject- Overrides:
getXValuesin classG2dData
-
getYValues
public double[] getYValues(int curveNum) Description copied from class:G2dDataReturns a double[] for the curve specified by the curve number.- Specified by:
getYValuesin interfaceG2dObject- Overrides:
getYValuesin classG2dData
-
size
public int size()size returns the number of valid data points -
getXAxisName
Returns the name of the x axis- Specified by:
getXAxisNamein interfaceG2dObject
-
getYAxisName
Returns the name of the y axis- Specified by:
getYAxisNamein interfaceG2dObject
-
getXAxisType
public int getXAxisType()Returns the name of the x axis- Specified by:
getXAxisTypein interfaceG2dObject
-
getYAxisType
public int getYAxisType()Returns the name of the y axis- Specified by:
getYAxisTypein interfaceG2dObject
-
setVisible
public void setVisible(boolean tf) -
isVisible
public boolean isVisible() -
load
public void load()Causes the object to load its data into memory -
isLoaded
public boolean isLoaded()- Returns:
-
setLoaded
public void setLoaded(boolean loaded) - Parameters:
loaded-
-
unload
public void unload()Causes the object to unload its data from memory -
getBounds
Returns the extents of the object in world coordinates -
getNearestDataPt
Returns the point in local coordinates of the closest data point to the given pt -
equals
-
getInterval
public double getInterval() -
getDataZoneId
- Specified by:
getDataZoneIdin interfaceG2dObject- Returns:
-