Package hec.gfx2d

Class G2dDataWrapper

java.lang.Object
hec.gfx2d.G2dDataWrapper
All Implemented Interfaces:
G2dObject

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

  • Constructor Details

    • G2dDataWrapper

      public G2dDataWrapper()
    • G2dDataWrapper

      public G2dDataWrapper(G2dData data)
  • Method Details

    • setG2dData

      public void setG2dData(G2dData data)
    • getG2dData

      public G2dData getG2dData()
    • canSwapXYValues

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

      public WorldRect getBounds()
      Description copied from interface: G2dObject
      Returns the extents of the object in world coordinates
      Specified by:
      getBounds in interface G2dObject
    • getCurveCount

      public int getCurveCount()
      Specified by:
      getCurveCount in interface G2dObject
    • getDefaultMaxYValue

      public double getDefaultMaxYValue()
      Description copied from interface: G2dObject
      return the default Y Axis Max value
      Specified by:
      getDefaultMaxYValue in interface G2dObject
    • getDefaultMinYValue

      public double getDefaultMinYValue()
      Description copied from interface: G2dObject
      return the default Y Axis Min value
      Specified by:
      getDefaultMinYValue in interface G2dObject
    • getGmtOffset

      public int getGmtOffset()
      Specified by:
      getGmtOffset in interface G2dObject
    • getDataZoneId

      public Optional<ZoneId> getDataZoneId()
      Specified by:
      getDataZoneId in interface G2dObject
      Returns:
    • 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
    • getName

      public String getName()
      Description copied from interface: G2dObject
      Returns the name of the object
      Specified by:
      getName in interface G2dObject
    • getUnitSystem

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

      public String getXAxisName()
      Description copied from interface: G2dObject
      Returns the name of the x axis
      Specified by:
      getXAxisName in interface G2dObject
    • getXAxisType

      public int getXAxisType()
      Description copied from interface: G2dObject
      Returns the name of the x axis
      Specified by:
      getXAxisType in interface G2dObject
    • getXParameterId

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

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

      public String getYAxisName()
      Description copied from interface: G2dObject
      Returns the name of the y axis
      Specified by:
      getYAxisName in interface G2dObject
    • getYAxisType

      public int getYAxisType()
      Description copied from interface: G2dObject
      Returns the name of the y axis
      Specified by:
      getYAxisType in interface G2dObject
    • getYParameterId

      public int getYParameterId()
      Specified by:
      getYParameterId in interface G2dObject
    • getYValues

      public double[] getYValues(int curveNum)
      Specified by:
      getYValues in interface G2dObject
    • hasDefaultMaxYValue

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

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

      public void load()
      Description copied from interface: G2dObject
      Causes the object to load its data into memory
      Specified by:
      load in interface G2dObject
    • setDefaultMaxYValue

      public void setDefaultMaxYValue(double value)
      Description copied from interface: G2dObject
      set the default Y Axis Max value
      Specified by:
      setDefaultMaxYValue in interface G2dObject
    • setDefaultMinYValue

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

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

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

      public void unload()
      Description copied from interface: G2dObject
      Causes the object to unload its data from memory
      Specified by:
      unload in interface G2dObject
    • 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: