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.Lookup
Create a default lookup.Fields inherited from interface hec.gfx2d.G2dObject
RESET_DATA, UPDATE_DATA
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addObserver
(Observer obs) boolean
abstract WorldRect
Returns the extents of the object in world coordinatesint
Returns the number of curves that this object contains.double
return the default Y Axis Max valuedouble
return the default Y Axis Min valueint
Returns the number of hours offset from GMT.return name and parameter name for matching up data to line stylesrma.util.lookup.Lookup
Return a lookup of capabilities that this G2dObject can do.getName()
Returns the name of the objectint
int
double[]
int
double[]
getYValues
(int curveNum) Returns a double[] for the curve specified by the curve number.boolean
boolean
void
setDefaultMaxYValue
(double value) set the default Y Axis Max valuevoid
setDefaultMinYValue
(double value) set the default Y Axis Min valuevoid
setGmtOffset
(int offset) Sets the number of hours offset from GMT.void
void
setSwapXYValues
(boolean b) void
setUnitSystem
(int system) static void
setUseDisplayUnits
(boolean b) void
setXParameterId
(int pId) void
setYParameterId
(int pId) boolean
toString()
static boolean
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
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:G2dObject
Return 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:
addObserver
in classObservable
-
getName
Returns the name of the object -
canSwapXYValues
public boolean canSwapXYValues()- Specified by:
canSwapXYValues
in interfaceG2dObject
-
swapXYValues
public boolean swapXYValues()- Specified by:
swapXYValues
in interfaceG2dObject
-
setSwapXYValues
public void setSwapXYValues(boolean b) - Specified by:
setSwapXYValues
in interfaceG2dObject
-
getXValues
public double[] getXValues()- Specified by:
getXValues
in interfaceG2dObject
-
getYValues
public double[] getYValues(int curveNum) Returns a double[] for the curve specified by the curve number.- Specified by:
getYValues
in interfaceG2dObject
- Parameters:
curveNum
-- Returns:
-
getCurveCount
public int getCurveCount()Returns the number of curves that this object contains.- Specified by:
getCurveCount
in interfaceG2dObject
-
setName
-
getBounds
Returns the extents of the object in world coordinates -
getUnitSystem
public int getUnitSystem()- Specified by:
getUnitSystem
in interfaceG2dObject
-
setUnitSystem
public void setUnitSystem(int system) -
setXParameterId
public void setXParameterId(int pId) -
getXParameterId
public int getXParameterId()- Specified by:
getXParameterId
in interfaceG2dObject
-
setYParameterId
public void setYParameterId(int pId) -
getYParameterId
public int getYParameterId()- Specified by:
getYParameterId
in 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:
getGmtOffset
in 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:
setDefaultMaxYValue
in interfaceG2dObject
-
setDefaultMinYValue
public void setDefaultMinYValue(double value) set the default Y Axis Min value- Specified by:
setDefaultMinYValue
in interfaceG2dObject
-
getDefaultMinYValue
public double getDefaultMinYValue()return the default Y Axis Min value- Specified by:
getDefaultMinYValue
in interfaceG2dObject
-
getDefaultMaxYValue
public double getDefaultMaxYValue()return the default Y Axis Max value- Specified by:
getDefaultMaxYValue
in interfaceG2dObject
-
hasDefaultMaxYValue
public boolean hasDefaultMaxYValue()- Specified by:
hasDefaultMaxYValue
in interfaceG2dObject
-
hasDefaultMinYValue
public boolean hasDefaultMinYValue()- Specified by:
hasDefaultMinYValue
in interfaceG2dObject
-
toString
-
getLineStyleName
Description copied from interface:G2dObject
return name and parameter name for matching up data to line styles- Specified by:
getLineStyleName
in interfaceG2dObject
-