Package hec.geometry

Class Scale

java.lang.Object
hec.geometry.Scale
All Implemented Interfaces:
IScale, Serializable

public class Scale extends Object implements 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 Details

    • SCALE_NAME_FORMAT

      public static MessageFormat SCALE_NAME_FORMAT
  • Constructor Details

    • Scale

      public Scale(String n)
      Default Constructor
  • Method Details

    • setDisplayUnitSystem

      public void setDisplayUnitSystem(int system)
    • setDataUnitSystem

      public void setDataUnitSystem(int system)
    • setDisplayTimeZone

      public void setDisplayTimeZone(TimeZone timeZone)
    • 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

      public final ZoneId getDataZoneId()
    • setDataZoneId

      public final void setDataZoneId(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 DST
      Parameters:
      dataZoneId - zoneId with rules for data with time zones observe DST
    • getDisplayTimeZone

      public TimeZone getDisplayTimeZone()
    • getDisplayUnitsString

      public String getDisplayUnitsString(int system)
    • getDataUnitSystem

      public int getDataUnitSystem()
    • getDisplayUnitSystem

      public int getDisplayUnitSystem()
    • getName

      public String getName()
    • invalidateRegionExtents

      public void invalidateRegionExtents()
    • setRegionExtents

      public void setRegionExtents(WorldRect rc)
    • growRegionExtents

      public void growRegionExtents(WorldRect rc)
    • setAxis

      public void setAxis(Axis ax, int ord)
      Set a new axis object for the specified coordinate direction
    • getAxis

      public Axis getAxis(int ord)
      get an axis object for the specified coordinate direction
    • computeScaling

      public void computeScaling(Dimension dim)
    • e2x

      public int e2x(double e)
      Description copied from interface: IScale
      Converts world east coordinate to local x coordinate.
      Specified by:
      e2x in interface IScale
    • n2y

      public int n2y(double n)
      Description copied from interface: IScale
      Converts world north coordinate to local y coordinate.
      Specified by:
      n2y in interface IScale
    • x2e

      public double x2e(int x)
      Description copied from interface: IScale
      Converts local x coordinate to world east coordinate.
      Specified by:
      x2e in interface IScale
    • y2n

      public double y2n(int y)
      Description copied from interface: IScale
      Converts local y coordinate to world north coordinate.
      Specified by:
      y2n in interface IScale
    • clearRegionExtents

      public void clearRegionExtents()
    • covertUnitSystems

      public double covertUnitSystems(int fromUS, int toUS, int parameterId, double value)
    • getModelVariables

      public Vector getModelVariables()
    • setRowWeight

      public void setRowWeight(double weight)
    • getRowWeight

      public double getRowWeight()
    • convertDataTime

      public void convertDataTime(HecTime hecTime)