Package hec.gfx2d

Class 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

public abstract class G2dData extends Observable implements G2dObject, Serializable
See Also:
  • Field Details

    • bounds

      public WorldRect bounds
    • name

      public String name
    • xunits

      public String xunits
    • yunits

      public String yunits
    • lineStyleName

      public String lineStyleName
    • _lookup

      protected rma.util.lookup.Lookup _lookup
      Create 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.
      Specified by:
      getLookup in interface G2dObject
      Returns:
    • addObserver

      public void addObserver(Observer obs)
      Overrides:
      addObserver in class Observable
    • getName

      public String getName()
      Returns the name of the object
      Specified by:
      getName in interface G2dObject
    • canSwapXYValues

      public boolean canSwapXYValues()
      Specified by:
      canSwapXYValues in interface G2dObject
    • swapXYValues

      public boolean swapXYValues()
      Specified by:
      swapXYValues in interface G2dObject
    • setSwapXYValues

      public void setSwapXYValues(boolean b)
      Specified by:
      setSwapXYValues in interface G2dObject
    • getXValues

      public double[] getXValues()
      Specified by:
      getXValues in interface G2dObject
    • getYValues

      public double[] getYValues(int curveNum)
      Returns a double[] for the curve specified by the curve number.
      Specified by:
      getYValues in interface G2dObject
      Parameters:
      curveNum -
      Returns:
    • getCurveCount

      public int getCurveCount()
      Returns the number of curves that this object contains.
      Specified by:
      getCurveCount in interface G2dObject
    • setName

      public void setName(String n)
    • getBounds

      public abstract WorldRect getBounds()
      Returns the extents of the object in world coordinates
      Specified by:
      getBounds in interface G2dObject
    • getUnitSystem

      public int getUnitSystem()
      Specified by:
      getUnitSystem in interface G2dObject
    • setUnitSystem

      public void setUnitSystem(int system)
    • setXParameterId

      public void setXParameterId(int pId)
    • getXParameterId

      public int getXParameterId()
      Specified by:
      getXParameterId in interface G2dObject
    • setYParameterId

      public void setYParameterId(int pId)
    • getYParameterId

      public int getYParameterId()
      Specified by:
      getYParameterId in interface G2dObject
    • 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 interface G2dObject
    • 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 interface G2dObject
    • setDefaultMinYValue

      public void setDefaultMinYValue(double value)
      set the default Y Axis Min value
      Specified by:
      setDefaultMinYValue in interface G2dObject
    • getDefaultMinYValue

      public double getDefaultMinYValue()
      return the default Y Axis Min value
      Specified by:
      getDefaultMinYValue in interface G2dObject
    • getDefaultMaxYValue

      public double getDefaultMaxYValue()
      return the default Y Axis Max value
      Specified by:
      getDefaultMaxYValue in interface G2dObject
    • hasDefaultMaxYValue

      public boolean hasDefaultMaxYValue()
      Specified by:
      hasDefaultMaxYValue in interface G2dObject
    • hasDefaultMinYValue

      public boolean hasDefaultMinYValue()
      Specified by:
      hasDefaultMinYValue in interface G2dObject
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getLineStyleName

      public String getLineStyleName()
      Description copied from interface: G2dObject
      return name and parameter name for matching up data to line styles
      Specified by:
      getLineStyleName in interface G2dObject