Package hec.gfx2d
Class G2dData
java.lang.Object
java.util.Observable
hec.gfx2d.G2dData
- All Implemented Interfaces:
G2dObject,Serializable
- Direct Known Subclasses:
BarGroupData,ComplexSeasonalData,DataObjectRating.TestObject,DefaultG2dObject,HistogramDataSetImpl,LocalDSSData,PairedDataSet,PairedValuesExtData,ProfileDataG2dObject,SimpleArray,SimpleJTableBarData,SimpleJTableData,SimpleJTableSeasonalData,SimpleJTableStepData,SimplePairedValuesData,SimpleSeasonalData,TimeSeriesDataSetBase,TimeWindowPlotData
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected rma.util.lookup.LookupCreate a default lookup.Fields inherited from interface hec.gfx2d.G2dObject
RESET_DATA, UPDATE_DATA -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddObserver(Observer obs) booleanabstract WorldRectReturns the extents of the object in world coordinatesintReturns the number of curves that this object contains.doublereturn the default Y Axis Max valuedoublereturn the default Y Axis Min valueintReturns the number of hours offset from GMT.return name and parameter name for matching up data to line stylesrma.util.lookup.LookupReturn a lookup of capabilities that this G2dObject can do.getName()Returns the name of the objectintintdouble[]intdouble[]getYValues(int curveNum) Returns a double[] for the curve specified by the curve number.booleanbooleanvoidsetDefaultMaxYValue(double value) set the default Y Axis Max valuevoidsetDefaultMinYValue(double value) set the default Y Axis Min valuevoidsetGmtOffset(int offset) Sets the number of hours offset from GMT.voidvoidsetSwapXYValues(boolean b) voidsetUnitSystem(int system) static voidsetUseDisplayUnits(boolean b) voidsetXParameterId(int pId) voidsetYParameterId(int pId) booleantoString()static booleanMethods 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, getXAxisName, getXAxisType, getYAxisName, getYAxisType, load, unload
-
Field Details
-
bounds
-
name
-
xunits
-
yunits
-
lineStyleName
-
_lookup
protected rma.util.lookup.Lookup _lookupCreate a default lookup. Subclasses should create their own lookup to meet their needs.
-
-
Constructor Details
-
G2dData
public G2dData()
-
-
Method Details
-
useDisplayUnits
public static boolean useDisplayUnits() -
setUseDisplayUnits
public static void setUseDisplayUnits(boolean b) -
getLookup
public rma.util.lookup.Lookup getLookup()Description copied from interface:G2dObjectReturn a lookup of capabilities that this G2dObject can do. Users can add LookupListeners to the lookup in order to get notified when capabilities are inserted and removed from the lookup. -
addObserver
- Overrides:
addObserverin classObservable
-
getName
Returns the name of the object -
canSwapXYValues
public boolean canSwapXYValues()- Specified by:
canSwapXYValuesin interfaceG2dObject
-
swapXYValues
public boolean swapXYValues()- Specified by:
swapXYValuesin interfaceG2dObject
-
setSwapXYValues
public void setSwapXYValues(boolean b) - Specified by:
setSwapXYValuesin interfaceG2dObject
-
getXValues
public double[] getXValues()- Specified by:
getXValuesin interfaceG2dObject
-
getYValues
public double[] getYValues(int curveNum) Returns a double[] for the curve specified by the curve number.- Specified by:
getYValuesin interfaceG2dObject- Parameters:
curveNum-- Returns:
-
getCurveCount
public int getCurveCount()Returns the number of curves that this object contains.- Specified by:
getCurveCountin interfaceG2dObject
-
setName
-
getBounds
Returns the extents of the object in world coordinates -
getUnitSystem
public int getUnitSystem()- Specified by:
getUnitSystemin interfaceG2dObject
-
setUnitSystem
public void setUnitSystem(int system) -
setXParameterId
public void setXParameterId(int pId) -
getXParameterId
public int getXParameterId()- Specified by:
getXParameterIdin interfaceG2dObject
-
setYParameterId
public void setYParameterId(int pId) -
getYParameterId
public int getYParameterId()- Specified by:
getYParameterIdin interfaceG2dObject
-
getGmtOffset
public int getGmtOffset()Returns the number of hours offset from GMT. The value is in the range of (-11,+14) inclusive- Specified by:
getGmtOffsetin interfaceG2dObject
-
setGmtOffset
public void setGmtOffset(int offset) Sets the number of hours offset from GMT. If the value is < -11 or > 14, an exception is thrown -
setDefaultMaxYValue
public void setDefaultMaxYValue(double value) set the default Y Axis Max value- Specified by:
setDefaultMaxYValuein interfaceG2dObject
-
setDefaultMinYValue
public void setDefaultMinYValue(double value) set the default Y Axis Min value- Specified by:
setDefaultMinYValuein interfaceG2dObject
-
getDefaultMinYValue
public double getDefaultMinYValue()return the default Y Axis Min value- Specified by:
getDefaultMinYValuein interfaceG2dObject
-
getDefaultMaxYValue
public double getDefaultMaxYValue()return the default Y Axis Max value- Specified by:
getDefaultMaxYValuein interfaceG2dObject
-
hasDefaultMaxYValue
public boolean hasDefaultMaxYValue()- Specified by:
hasDefaultMaxYValuein interfaceG2dObject
-
hasDefaultMinYValue
public boolean hasDefaultMinYValue()- Specified by:
hasDefaultMinYValuein interfaceG2dObject
-
toString
-
getLineStyleName
Description copied from interface:G2dObjectreturn name and parameter name for matching up data to line styles- Specified by:
getLineStyleNamein interfaceG2dObject
-