Package hec.gfx2d.histogram
Class PairedDataHistogramDataSet
java.lang.Object
java.util.Observable
hec.gfx2d.G2dData
hec.gfx2d.PairedDataSet
hec.gfx2d.histogram.PairedDataHistogramDataSet
- All Implemented Interfaces:
G2dObject
,HistogramDataSet
,Serializable
Histogram data set that utilizes paired data. Histograms are expected to support only one curve
or two curves.
- See Also:
-
Field Summary
Fields inherited from class hec.gfx2d.PairedDataSet
_pairedData, curveDrawn, curves, labels, size, xdata, xtype, ydata, ytype
Fields inherited from interface hec.gfx2d.G2dObject
RESET_DATA, UPDATE_DATA
-
Constructor Summary
ConstructorsConstructorDescriptionPairedDataHistogramDataSet
(PairedDataContainer pdc, double binWidth, BinOrigin binOrigin) Creates a fixed width paired data histogram data set. -
Method Summary
Methods inherited from class hec.gfx2d.PairedDataSet
canSwapXYValues, createRefreshCookie, getBounds, getCurveCount, getData, getXAxisName, getXAxisType, getXParameterId, getYAxisName, getYAxisType, getYParameterId, getYValues, hasVisibleCurve, isCurveDrawn, isLoaded, isVisible, load, numYCoord, setCurveDrawn, setData, setLoaded, setSwapXYValues, setVisible, size, unload
Methods 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
canSwapXYValues, getBounds, getCurveCount, getDataZoneId, getDefaultMaxYValue, getDefaultMinYValue, getGmtOffset, getLineStyleName, getLookup, getName, getUnitSystem, getXAxisName, getXAxisType, getXParameterId, getXValues, getYAxisName, getYAxisType, getYParameterId, getYValues, hasDefaultMaxYValue, hasDefaultMinYValue, load, setDefaultMaxYValue, setDefaultMinYValue, setSwapXYValues, swapXYValues, unload
-
Constructor Details
-
PairedDataHistogramDataSet
Creates a fixed width paired data histogram data set.- Parameters:
pdc
- Paired data container used to provide values for the histogram.binWidth
- Fixed width for rendering bins based on the bar data origin.binOrigin
- Identifies where the binned data starts (either, left, right, or center)
-
-
Method Details
-
buildBounds
protected void buildBounds(int xDivisor, int yDivisor) - Overrides:
buildBounds
in classPairedDataSet
-
getHistogramBins
- Specified by:
getHistogramBins
in interfaceHistogramDataSet
-