Package hec.geometry
Class Scale
java.lang.Object
hec.geometry.Scale
- All Implemented Interfaces:
IScale,Serializable
Controls mapping of world to local coordinates. This scale is limited to a simple
rectangular 2D mapping of world and local coordinates.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcomputeScaling(Dimension dim) voidconvertDataTime(HecTime hecTime) doublecovertUnitSystems(int fromUS, int toUS, int parameterId, double value) inte2x(double e) Converts world east coordinate to local x coordinate.getAxis(int ord) get an axis object for the specified coordinate directionintfinal ZoneIdgetDisplayUnitsString(int system) intintreturns the offset from GMT in hoursgetName()intintdoublevoidvoidintn2y(double n) Converts world north coordinate to local y coordinate.voidSet a new axis object for the specified coordinate directionvoidsetDataUnitSystem(int system) final voidsetDataZoneId(ZoneId dataZoneId) This method sets the data time zone and is used instead of the GmtOffset so that the data can be converted to the displayed time zone when observing DSTvoidsetDisplayScaleFactor(int paramId, double scale) voidsetDisplayTimeZone(TimeZone timeZone) voidsetDisplayUnitSystem(int system) voidsetGmtOffset(int offset) voidsetParameterId(int id, int axis) voidvoidsetRowWeight(double weight) doublex2e(int x) Converts local x coordinate to world east coordinate.doubley2n(int y) Converts local y coordinate to world north coordinate.
-
Field Details
-
SCALE_NAME_FORMAT
-
-
Constructor Details
-
Scale
Default Constructor
-
-
Method Details
-
setDisplayUnitSystem
public void setDisplayUnitSystem(int system) -
setDataUnitSystem
public void setDataUnitSystem(int system) -
setDisplayTimeZone
-
setDisplayScaleFactor
public void setDisplayScaleFactor(int paramId, double scale) -
getParameterXId
public int getParameterXId() -
getParameterYId
public int getParameterYId() -
setParameterId
public void setParameterId(int id, int axis) -
setGmtOffset
public void setGmtOffset(int offset) -
getGmtOffset
public int getGmtOffset()returns the offset from GMT in hours -
getDataZoneId
-
setDataZoneId
This method sets the data time zone and is used instead of the GmtOffset so that the data can be converted to the displayed time zone when observing DST- Parameters:
dataZoneId- zoneId with rules for data with time zones observe DST
-
getDisplayTimeZone
-
getDisplayUnitsString
-
getDataUnitSystem
public int getDataUnitSystem() -
getDisplayUnitSystem
public int getDisplayUnitSystem() -
getName
-
invalidateRegionExtents
public void invalidateRegionExtents() -
setRegionExtents
-
growRegionExtents
-
setAxis
Set a new axis object for the specified coordinate direction -
getAxis
get an axis object for the specified coordinate direction -
computeScaling
-
e2x
public int e2x(double e) Description copied from interface:IScaleConverts world east coordinate to local x coordinate. -
n2y
public int n2y(double n) Description copied from interface:IScaleConverts world north coordinate to local y coordinate. -
x2e
public double x2e(int x) Description copied from interface:IScaleConverts local x coordinate to world east coordinate. -
y2n
public double y2n(int y) Description copied from interface:IScaleConverts local y coordinate to world north coordinate. -
clearRegionExtents
public void clearRegionExtents() -
covertUnitSystems
public double covertUnitSystems(int fromUS, int toUS, int parameterId, double value) -
getModelVariables
-
setRowWeight
public void setRowWeight(double weight) -
getRowWeight
public double getRowWeight() -
convertDataTime
-