Package hec.gfx2d
Class SimpleArray
java.lang.Object
java.util.Observable
hec.gfx2d.G2dData
hec.gfx2d.SimpleArray
- All Implemented Interfaces:
G2dObject,Serializable
- Direct Known Subclasses:
SimpleBarArray,SimpleLogArray
Simple data object for holding an array for ploting.
- See Also:
-
Field Summary
FieldsFields inherited from interface hec.gfx2d.G2dObject
RESET_DATA, UPDATE_DATA -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the extents of the object in world coordinatesReturns the name of the x axisintReturns the type of the x axisReturns the name of the y axisintReturns the type of the y axisvoidload()Causes the object to load its data into memoryvoidsetData(double[] xd, double[] yd) sets the data arrays and notifies observersvoidsetNotifyObservers(boolean b) voidsetXAxisName(String xName) voidsetXAxisType(int xAxis) set the x axis typevoidsetYAxisName(String yName) set the y axis namevoidsetYAxisType(int yAxis) set the y axis typevoidunload()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, useDisplayUnitsMethods inherited from class java.util.Observable
clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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
-
xdata
public double[] xdata -
ydata
public double[] ydata
-
-
Constructor Details
-
SimpleArray
public SimpleArray()
-
-
Method Details
-
getXAxisName
Returns the name of the x axis- Specified by:
getXAxisNamein interfaceG2dObject
-
getYAxisName
Returns the name of the y axis- Specified by:
getYAxisNamein interfaceG2dObject
-
setXAxisType
public void setXAxisType(int xAxis) set the x axis type -
getXAxisType
public int getXAxisType()Returns the type of the x axis- Specified by:
getXAxisTypein interfaceG2dObject
-
setXAxisName
-
setYAxisName
set the y axis name -
setYAxisType
public void setYAxisType(int yAxis) set the y axis type -
getYAxisType
public int getYAxisType()Returns the type of the y axis- Specified by:
getYAxisTypein interfaceG2dObject
-
setData
public void setData(double[] xd, double[] yd) sets the data arrays and notifies observers -
setNotifyObservers
public void setNotifyObservers(boolean b) -
doesNotifyObservers
public boolean doesNotifyObservers() -
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
-