Package hec.gfx2d.profilePlot
Class ProfileDataG2dObject
java.lang.Object
java.util.Observable
hec.gfx2d.G2dData
hec.gfx2d.profilePlot.ProfileDataG2dObject
- All Implemented Interfaces:
G2dObject,Serializable
The Class ProfileDataG2dObject encapsulates a ProfileDataRecord plotting
in a G2dDialog (AnimatedProfileG2dDialog). A ProfileDataRecord
contains a series of x-y data arrays for
plotting (vertical) profile data with animation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected WorldRectThe WorldRect _bounds.protected StringThe name.protected StringThe String _parameter.protected float[]The float array _profx.protected float[]The float array_profy.protected ProfileDataRecordsThe ProfileDataRecord _rec.protected StringThe run name.Fields inherited from interface hec.gfx2d.G2dObject
RESET_DATA, UPDATE_DATA -
Constructor Summary
ConstructorsConstructorDescriptionProfileDataG2dObject(ProfileDataRecords rec, String runName) Instantiates a new profile data g2d object.ProfileDataG2dObject(ProfileDataRecords rec, String runName, int timeStepStart) Instantiates a new profile data g2d object. -
Method Summary
Modifier and TypeMethodDescriptionReturns the extents of the object in world coordinates.float[]Gets the horizontal array.getName()Returns the name of the object.Gets the parameter names.intGets the record count.Gets the time step.float[]Gets the vertical values in an array.Returns the name of the x axis.intReturns the name of the x axis.voidgetXData(int istep) Gets the x data.intReturns the name of the y axis.intReturns the name of the y axis.voidGets the y data.intvoidload()Causes the object to load its data into memory.voidvoidunload()Causes the object to unload its data from memory.Methods inherited from class hec.gfx2d.G2dData
addObserver, canSwapXYValues, getCurveCount, getDefaultMaxYValue, getDefaultMinYValue, getGmtOffset, getLineStyleName, getLookup, getUnitSystem, getXValues, getYValues, hasDefaultMaxYValue, hasDefaultMinYValue, setDefaultMaxYValue, setDefaultMinYValue, setGmtOffset, 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
getDataZoneId
-
Field Details
-
_rec
The ProfileDataRecord _rec. -
_profx
protected float[] _profxThe float array _profx. -
_profy
protected float[] _profyThe float array_profy. -
_bounds
The WorldRect _bounds. -
_parameter
The String _parameter. -
_runName
The run name. -
_name
The name.
-
-
Constructor Details
-
ProfileDataG2dObject
Instantiates a new profile data g2d object.- Parameters:
rec- the ProfileDataRecordrunName- the String run name
-
ProfileDataG2dObject
Instantiates a new profile data g2d object.- Parameters:
rec- the ProfileDataRecordrunName- the String run name
-
-
Method Details
-
getParameterNames
Gets the parameter names.- Returns:
- the List of parameter names
-
getTimeList
-
getRecordCount
public int getRecordCount()Gets the record count.- Returns:
- the int record count
-
getHorizArray
public float[] getHorizArray()Gets the horizontal array.- Returns:
- the float[] of horizontal
-
getVertArray
public float[] getVertArray()Gets the vertical values in an array.- Returns:
- the vertical float values in an array
-
getYData
Gets the y data.- Parameters:
istep- the time stepparameter- the parameter string
-
getXData
public void getXData(int istep) Gets the x data.- Parameters:
istep- the time step
-
getTimeStep
Gets the time step.- Returns:
- the time step string
-
getName
Returns the name of the object. -
setName
-
getXAxisName
Returns the name of the x axis.- Returns:
- the x axis name
-
getYAxisName
Returns the name of the y axis.- Returns:
- the y axis name
-
getXAxisType
public int getXAxisType()Returns the name of the x axis.- Returns:
- the x axis type
-
getYAxisType
public int getYAxisType()Returns the name of the y axis.- Returns:
- the y axis type
-
getXParameterId
public int getXParameterId()- Specified by:
getXParameterIdin interfaceG2dObject- Overrides:
getXParameterIdin classG2dData
-
getYParameterId
public int getYParameterId()- Specified by:
getYParameterIdin interfaceG2dObject- Overrides:
getYParameterIdin classG2dData
-
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.
-