Package hec.gfx2d
Class G2dDataWrapper
java.lang.Object
hec.gfx2d.G2dDataWrapper
- All Implemented Interfaces:
G2dObject
Wraps around a G2dData object, holds same X,Y bounds, but returns no data.
Useful to attach to X2 or Y2 axis so that one plot has two sets of axis.
-
Field Summary
FieldsFields inherited from interface hec.gfx2d.G2dObject
RESET_DATA, UPDATE_DATA
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the extents of the object in world coordinatesint
double
return the default Y Axis Max valuedouble
return the default Y Axis Min valueint
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
Returns the name of the x axisint
Returns the name of the x axisint
double[]
Returns the name of the y axisint
Returns the name of the y axisint
double[]
getYValues
(int curveNum) boolean
boolean
void
load()
Causes the object to load its data into memoryvoid
setDefaultMaxYValue
(double value) set the default Y Axis Max valuevoid
setDefaultMinYValue
(double value) set the default Y Axis Min valuevoid
setG2dData
(G2dData data) void
setSwapXYValues
(boolean b) boolean
void
unload()
Causes the object to unload its data from memory
-
Field Details
-
NO_NAME
- See Also:
-
NO_AXIS
- See Also:
-
-
Constructor Details
-
G2dDataWrapper
public G2dDataWrapper() -
G2dDataWrapper
-
-
Method Details
-
setG2dData
-
getG2dData
-
canSwapXYValues
public boolean canSwapXYValues()- Specified by:
canSwapXYValues
in interfaceG2dObject
-
getBounds
Description copied from interface:G2dObject
Returns the extents of the object in world coordinates -
getCurveCount
public int getCurveCount()- Specified by:
getCurveCount
in interfaceG2dObject
-
getDefaultMaxYValue
public double getDefaultMaxYValue()Description copied from interface:G2dObject
return the default Y Axis Max value- Specified by:
getDefaultMaxYValue
in interfaceG2dObject
-
getDefaultMinYValue
public double getDefaultMinYValue()Description copied from interface:G2dObject
return the default Y Axis Min value- Specified by:
getDefaultMinYValue
in interfaceG2dObject
-
getGmtOffset
public int getGmtOffset()- Specified by:
getGmtOffset
in interfaceG2dObject
-
getDataZoneId
- Specified by:
getDataZoneId
in interfaceG2dObject
- Returns:
-
getLineStyleName
Description copied from interface:G2dObject
return name and parameter name for matching up data to line styles- Specified by:
getLineStyleName
in interfaceG2dObject
-
getName
Description copied from interface:G2dObject
Returns the name of the object -
getUnitSystem
public int getUnitSystem()- Specified by:
getUnitSystem
in interfaceG2dObject
-
getXAxisName
Description copied from interface:G2dObject
Returns the name of the x axis- Specified by:
getXAxisName
in interfaceG2dObject
-
getXAxisType
public int getXAxisType()Description copied from interface:G2dObject
Returns the name of the x axis- Specified by:
getXAxisType
in interfaceG2dObject
-
getXParameterId
public int getXParameterId()- Specified by:
getXParameterId
in interfaceG2dObject
-
getXValues
public double[] getXValues()- Specified by:
getXValues
in interfaceG2dObject
-
getYAxisName
Description copied from interface:G2dObject
Returns the name of the y axis- Specified by:
getYAxisName
in interfaceG2dObject
-
getYAxisType
public int getYAxisType()Description copied from interface:G2dObject
Returns the name of the y axis- Specified by:
getYAxisType
in interfaceG2dObject
-
getYParameterId
public int getYParameterId()- Specified by:
getYParameterId
in interfaceG2dObject
-
getYValues
public double[] getYValues(int curveNum) - Specified by:
getYValues
in interfaceG2dObject
-
hasDefaultMaxYValue
public boolean hasDefaultMaxYValue()- Specified by:
hasDefaultMaxYValue
in interfaceG2dObject
-
hasDefaultMinYValue
public boolean hasDefaultMinYValue()- Specified by:
hasDefaultMinYValue
in interfaceG2dObject
-
load
public void load()Description copied from interface:G2dObject
Causes the object to load its data into memory -
setDefaultMaxYValue
public void setDefaultMaxYValue(double value) Description copied from interface:G2dObject
set the default Y Axis Max value- Specified by:
setDefaultMaxYValue
in interfaceG2dObject
-
setDefaultMinYValue
public void setDefaultMinYValue(double value) Description copied from interface:G2dObject
set the default Y Axis Min value- Specified by:
setDefaultMinYValue
in interfaceG2dObject
-
setSwapXYValues
public void setSwapXYValues(boolean b) - Specified by:
setSwapXYValues
in interfaceG2dObject
-
swapXYValues
public boolean swapXYValues()- Specified by:
swapXYValues
in interfaceG2dObject
-
unload
public void unload()Description copied from interface:G2dObject
Causes the object to unload its data from memory -
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.
-