Package hec.gfx2d
Class PairedValuesExtData
java.lang.Object
java.util.Observable
hec.gfx2d.G2dData
hec.gfx2d.PairedValuesExtData
- All Implemented Interfaces:
G2dObject
,Serializable
Simple data object for holding PairedValuesExt for ploting.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected PairedValuesExt
String[]
int
double[]
double[]
double[][]
double[][]
Fields inherited from interface hec.gfx2d.G2dObject
RESET_DATA, UPDATE_DATA
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
protected void
Returns the extents of the object in world coordinatesint
Returns the number of curves that this object contains.boolean
Returns the name of the x axisint
Returns the name of the x axisint
Override super class to allow swaping of x and y for plottingReturns the name of the y axisint
Returns the name of the y axisint
void
load()
Causes the object to load its data into memoryvoid
sets the data Vector and notifies observersvoid
setData
(double[] xd, double[][] yd) sets the data arrays and notifies observersvoid
void
setInterpolationType
(String interpType) set interpolation typevoid
setPlotXvsY
(boolean tf) flip x-y data for plottingvoid
setXAxisType
(int xAxis) set the x axis typevoid
setYAxisType
(int yAxis) set the y axis typevoid
unload()
Causes the object to unload its data from memoryMethods inherited from class hec.gfx2d.G2dData
addObserver, canSwapXYValues, getDefaultMaxYValue, getDefaultMinYValue, getGmtOffset, getLineStyleName, getLookup, getName, getUnitSystem, getXValues, 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, getDataZoneId, getDefaultMaxYValue, getDefaultMinYValue, getGmtOffset, getLineStyleName, getLookup, getName, getUnitSystem, getXValues, getYValues, hasDefaultMaxYValue, hasDefaultMinYValue, setDefaultMaxYValue, setDefaultMinYValue, setSwapXYValues, swapXYValues
-
Field Details
-
xdata
public double[] xdata -
ydata
public double[][] ydata -
curveLabels
-
numberCurves
public int numberCurves -
xdataOrg
public double[] xdataOrg -
ydataOrg
public double[][] ydataOrg -
_pv
-
_interpolationType
-
-
Constructor Details
-
PairedValuesExtData
public PairedValuesExtData() -
PairedValuesExtData
public PairedValuesExtData(boolean createDefaults)
-
-
Method Details
-
createDefaultData
protected void createDefaultData() -
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
-
setXAxisType
public void setXAxisType(int xAxis) set the x axis type -
setYAxisType
public void setYAxisType(int yAxis) set the y axis type -
getXParameterId
public int getXParameterId()Override super class to allow swaping of x and y for plotting- Specified by:
getXParameterId
in interfaceG2dObject
- Overrides:
getXParameterId
in classG2dData
-
getYParameterId
public int getYParameterId()- Specified by:
getYParameterId
in interfaceG2dObject
- Overrides:
getYParameterId
in classG2dData
-
getCurveCount
public int getCurveCount()Description copied from class:G2dData
Returns the number of curves that this object contains.- Specified by:
getCurveCount
in interfaceG2dObject
- Overrides:
getCurveCount
in classG2dData
-
setData
public void setData(double[] xd, double[][] yd) sets the data arrays and notifies observers -
setData
-
resetData
public void resetData()sets the data Vector and notifies observers -
setInterpolationType
set interpolation type -
setPlotXvsY
public void setPlotXvsY(boolean tf) flip x-y data for plotting -
getPlotXvsY
public boolean getPlotXvsY() -
calcPlotArrays
public boolean calcPlotArrays() -
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
-