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 TypeFieldDescriptionint
int
int
long[]
double[]
Fields inherited from interface hec.gfx2d.G2dObject
RESET_DATA, UPDATE_DATA
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the extents of the object in world coordinatesgetData()
double
Returns the point in local coordinates of the closest data point to the given ptReturns the name of the x axisint
Returns the name of the x axisdouble[]
Returns the name of the y axisint
Returns the name of the y axisdouble[]
getYValues
(int curveNum) Returns a double[] for the curve specified by the curve number.boolean
boolean
isLoaded()
boolean
void
load()
Causes the object to load its data into memoryvoid
setData
(TimeSeriesContainer timeSeriesContainer) void
setEndOfPeriodData
(boolean b) void
setLoaded
(boolean loaded) void
setVisible
(boolean tf) int
size()
size returns the number of valid data pointsvoid
unload()
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, useDisplayUnits
Methods inherited from class java.util.Observable
clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
getXValues
in interfaceG2dObject
- Overrides:
getXValues
in classG2dData
-
getYValues
public double[] getYValues(int curveNum) Description copied from class:G2dData
Returns a double[] for the curve specified by the curve number.- Specified by:
getYValues
in interfaceG2dObject
- Overrides:
getYValues
in classG2dData
-
size
public int size()size returns the number of valid data points -
getXAxisName
Returns the name of the x axis- Specified by:
getXAxisName
in interfaceG2dObject
-
getYAxisName
Returns the name of the y axis- Specified by:
getYAxisName
in interfaceG2dObject
-
getXAxisType
public int getXAxisType()Returns the name of the x axis- Specified by:
getXAxisType
in interfaceG2dObject
-
getYAxisType
public int getYAxisType()Returns the name of the y axis- Specified by:
getYAxisType
in 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:
getDataZoneId
in interfaceG2dObject
- Returns:
-