Package hec.gfx2d
Class PairedDataSet
java.lang.Object
java.util.Observable
hec.gfx2d.G2dData
hec.gfx2d.PairedDataSet
- All Implemented Interfaces:
G2dObject
,Serializable
- Direct Known Subclasses:
PairedDataHistogramDataSet
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean[]
int
int
double[]
double[][]
Fields inherited from interface hec.gfx2d.G2dObject
RESET_DATA, UPDATE_DATA
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
buildBounds
(int xdivisor, int ydivisor) boolean
protected RefreshCookie
Returns the extents of the object in world coordinatesint
Returns the number of curves that this object contains.getData()
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
double[]
getYValues
(int curveNum) Returns a double[] for the curve specified by the curve number.boolean
does the PairedDataSet have any curves that are to be drawn?boolean
isCurveDrawn
(int lineNum) boolean
isLoaded()
boolean
void
load()
Causes the object to load its data into memoryint
Returns the number of y-coordinatesvoid
setCurveDrawn
(int lineNum, boolean drawLine) void
setData
(PairedDataContainer pairedDataContainer) void
setLoaded
(boolean b) void
setSwapXYValues
(boolean b) 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, getDefaultMaxYValue, getDefaultMinYValue, getGmtOffset, getLineStyleName, getLookup, getName, getUnitSystem, getXValues, hasDefaultMaxYValue, hasDefaultMinYValue, setDefaultMaxYValue, setDefaultMinYValue, setGmtOffset, setName, 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
getDataZoneId, getDefaultMaxYValue, getDefaultMinYValue, getGmtOffset, getLineStyleName, getLookup, getName, getUnitSystem, getXValues, hasDefaultMaxYValue, hasDefaultMinYValue, setDefaultMaxYValue, setDefaultMinYValue, swapXYValues
-
Field Details
-
labels
-
xtype
-
ytype
-
xdata
public double[] xdata -
_pairedData
-
ydata
public double[][] ydata -
curves
public int curves -
size
public int size -
curveDrawn
public boolean[] curveDrawn
-
-
Constructor Details
-
PairedDataSet
-
-
Method Details
-
setData
-
getData
-
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
-
unload
public void unload()Causes the object to unload its data from memory -
getBounds
Returns the extents of the object in world coordinates -
buildBounds
protected void buildBounds(int xdivisor, int ydivisor) -
size
public int size()size returns the number of valid data points -
numYCoord
public int numYCoord()Returns the number of y-coordinates -
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
-
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
-
load
public void load()Causes the object to load its data into memory -
isLoaded
public boolean isLoaded()- Returns:
-
setSwapXYValues
public void setSwapXYValues(boolean b) - Specified by:
setSwapXYValues
in interfaceG2dObject
- Overrides:
setSwapXYValues
in classG2dData
-
canSwapXYValues
public boolean canSwapXYValues()- Specified by:
canSwapXYValues
in interfaceG2dObject
- Overrides:
canSwapXYValues
in classG2dData
-
isCurveDrawn
public boolean isCurveDrawn(int lineNum) -
setCurveDrawn
public void setCurveDrawn(int lineNum, boolean drawLine) -
setVisible
public void setVisible(boolean tf) -
isVisible
public boolean isVisible() -
getYValues
public double[] getYValues(int curveNum) Returns a double[] for the curve specified by the curve number.- Specified by:
getYValues
in interfaceG2dObject
- Overrides:
getYValues
in classG2dData
- Parameters:
curveNum
-- Returns:
-
hasVisibleCurve
public boolean hasVisibleCurve()does the PairedDataSet have any curves that are to be drawn?- Returns:
-
setLoaded
public void setLoaded(boolean b) - Parameters:
b
-
-
createRefreshCookie
- Returns:
-