Package hec.gfx2d

Class PairedDataSet

All Implemented Interfaces:
G2dObject, Serializable
Direct Known Subclasses:
PairedDataHistogramDataSet

public class PairedDataSet extends G2dData implements G2dObject
See Also:
  • Field Details

    • labels

      public Vector labels
    • xtype

      public String xtype
    • ytype

      public String ytype
    • xdata

      public double[] xdata
    • _pairedData

      public PairedDataContainer _pairedData
    • ydata

      public double[][] ydata
    • curves

      public int curves
    • size

      public int size
    • curveDrawn

      public boolean[] curveDrawn
  • Constructor Details

  • Method Details

    • setData

      public void setData(PairedDataContainer pairedDataContainer)
    • getData

      public PairedDataContainer getData()
    • getCurveCount

      public int getCurveCount()
      Description copied from class: G2dData
      Returns the number of curves that this object contains.
      Specified by:
      getCurveCount in interface G2dObject
      Overrides:
      getCurveCount in class G2dData
    • unload

      public void unload()
      Causes the object to unload its data from memory
      Specified by:
      unload in interface G2dObject
    • getBounds

      public WorldRect getBounds()
      Returns the extents of the object in world coordinates
      Specified by:
      getBounds in interface G2dObject
      Specified by:
      getBounds in class G2dData
    • buildBounds

      protected void buildBounds(int xdivisor, int ydivisor)
    • size

      public int size()
      size returns the number of valid data points
    • numYCoord

      public int numYCoord()
      Returns the number of y-coordinates
    • getXAxisName

      public String getXAxisName()
      Returns the name of the x axis
      Specified by:
      getXAxisName in interface G2dObject
    • getYAxisName

      public String getYAxisName()
      Returns the name of the y axis
      Specified by:
      getYAxisName in interface G2dObject
    • getXAxisType

      public int getXAxisType()
      Returns the name of the x axis
      Specified by:
      getXAxisType in interface G2dObject
    • getYAxisType

      public int getYAxisType()
      Returns the name of the y axis
      Specified by:
      getYAxisType in interface G2dObject
    • getXParameterId

      public int getXParameterId()
      Override super class to allow swaping of x and y for plotting
      Specified by:
      getXParameterId in interface G2dObject
      Overrides:
      getXParameterId in class G2dData
    • getYParameterId

      public int getYParameterId()
      Specified by:
      getYParameterId in interface G2dObject
      Overrides:
      getYParameterId in class G2dData
    • load

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

      public boolean isLoaded()
      Returns:
    • setSwapXYValues

      public void setSwapXYValues(boolean b)
      Specified by:
      setSwapXYValues in interface G2dObject
      Overrides:
      setSwapXYValues in class G2dData
    • canSwapXYValues

      public boolean canSwapXYValues()
      Specified by:
      canSwapXYValues in interface G2dObject
      Overrides:
      canSwapXYValues in class G2dData
    • isCurveDrawn

      public boolean isCurveDrawn(int lineNum)
    • setCurveDrawn

      public void setCurveDrawn(int lineNum, boolean drawLine)
    • setVisible

      public void setVisible(boolean tf)
    • isVisible

      public boolean isVisible()
    • getYValues

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

      public boolean hasVisibleCurve()
      does the PairedDataSet have any curves that are to be drawn?
      Returns:
    • setLoaded

      public void setLoaded(boolean b)
      Parameters:
      b -
    • createRefreshCookie

      protected RefreshCookie createRefreshCookie()
      Returns: