Package hec.gfx2d
Class SimpleSeasonalData
java.lang.Object
java.util.Observable
hec.gfx2d.G2dData
hec.gfx2d.SimpleSeasonalData
- All Implemented Interfaces:
G2dObject
,Serializable
Simple data object for holding an array for ploting.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected int
protected SeasonalRecord
int[]
int[]
double[]
double[]
Fields inherited from interface hec.gfx2d.G2dObject
RESET_DATA, UPDATE_DATA
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
Returns the extents of the object in world coordinatesReturns 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 axisReturns the name of the y axisint
Returns the name of the y axisdouble
interpolateValue
(int interpTime) interpolates a data value from the calculated plot arraysvoid
load()
Causes the object to load its data into memoryvoid
sets the data Vector and notifies observersvoid
setData
(int[] td, double[] yd) sets the data arrays and notifies observersvoid
void
setInterpolationType
(String interpType) set interpolation typevoid
setPlotYears
(int n) years for plottingvoid
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, getXValues, getYParameterId, getYValues, 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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface hec.gfx2d.G2dObject
canSwapXYValues, getCurveCount, getDataZoneId, getDefaultMaxYValue, getDefaultMinYValue, getGmtOffset, getLineStyleName, getLookup, getName, getUnitSystem, getXParameterId, getXValues, getYParameterId, getYValues, hasDefaultMaxYValue, hasDefaultMinYValue, setDefaultMaxYValue, setDefaultMinYValue, setSwapXYValues, swapXYValues
-
Field Details
-
tdata
public int[] tdata -
ydata
public double[] ydata -
tdataOrg
public int[] tdataOrg -
ydataOrg
public double[] ydataOrg -
xtype
-
ytype
-
_sr
-
_interpolationType
-
_nyears
protected int _nyears
-
-
Constructor Details
-
SimpleSeasonalData
public SimpleSeasonalData()
-
-
Method Details
-
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
-
setData
public void setData(int[] td, double[] yd) sets the data arrays and notifies observers -
setData
-
setInterpolationType
set interpolation type -
setPlotYears
public void setPlotYears(int n) years for plotting -
calcPlotArrays
public boolean calcPlotArrays() -
calculationsSuccessful
public boolean calculationsSuccessful() -
load
public void load()Causes the object to load its data into memory -
unload
public void unload()Causes the object to unload its data from memory -
getBounds
Returns the extents of the object in world coordinates -
interpolateValue
public double interpolateValue(int interpTime) interpolates a data value from the calculated plot arrays -
resetData
public void resetData()sets the data Vector and notifies observers -
getNearestDataPt
Returns the point in local coordinates of the closest data point to the given pt -
getTimeSeriesContainer
-