Package hec.gfx2d
Class SimpleBarArray
java.lang.Object
java.util.Observable
hec.gfx2d.G2dData
hec.gfx2d.SimpleArray
hec.gfx2d.SimpleBarArray
- All Implemented Interfaces:
G2dObject
,Serializable
Simple data object for holding an array for ploting.
- See Also:
-
Field Summary
Fields inherited from class hec.gfx2d.SimpleArray
xdata, ydata
Fields inherited from interface hec.gfx2d.G2dObject
RESET_DATA, UPDATE_DATA
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the extents of the object in world coordinatesReturns the name of the x axisint
Returns the type of the x axisReturns the name of the y axisint
Returns the type of the y axisvoid
load()
Causes the object to load its data into memoryvoid
setData
(double[] xd, double[] yd) sets the data arrays and notifies observersvoid
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.SimpleArray
doesNotifyObservers, setNotifyObservers, setXAxisName, setYAxisName
Methods 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
-
Constructor Details
-
SimpleBarArray
public SimpleBarArray()
-
-
Method Details
-
getXAxisName
Returns the name of the x axis- Specified by:
getXAxisName
in interfaceG2dObject
- Overrides:
getXAxisName
in classSimpleArray
-
getYAxisName
Returns the name of the y axis- Specified by:
getYAxisName
in interfaceG2dObject
- Overrides:
getYAxisName
in classSimpleArray
-
setXAxisType
public void setXAxisType(int xAxis) set the x axis type- Overrides:
setXAxisType
in classSimpleArray
-
getXAxisType
public int getXAxisType()Returns the type of the x axis- Specified by:
getXAxisType
in interfaceG2dObject
- Overrides:
getXAxisType
in classSimpleArray
-
setYAxisType
public void setYAxisType(int yAxis) set the y axis type- Overrides:
setYAxisType
in classSimpleArray
-
getYAxisType
public int getYAxisType()Returns the type of the y axis- Specified by:
getYAxisType
in interfaceG2dObject
- Overrides:
getYAxisType
in classSimpleArray
-
setData
public void setData(double[] xd, double[] yd) sets the data arrays and notifies observers- Overrides:
setData
in classSimpleArray
-
load
public void load()Causes the object to load its data into memory- Specified by:
load
in interfaceG2dObject
- Overrides:
load
in classSimpleArray
-
unload
public void unload()Causes the object to unload its data from memory- Specified by:
unload
in interfaceG2dObject
- Overrides:
unload
in classSimpleArray
-
getBounds
Returns the extents of the object in world coordinates- Specified by:
getBounds
in interfaceG2dObject
- Overrides:
getBounds
in classSimpleArray
-