Package hec.gfx2d

Class SimpleArray

All Implemented Interfaces:
G2dObject, Serializable
Direct Known Subclasses:
SimpleBarArray, SimpleLogArray

public class SimpleArray extends G2dData implements G2dObject
Simple data object for holding an array for ploting.
See Also:
  • Field Details

    • xdata

      public double[] xdata
    • ydata

      public double[] ydata
  • Constructor Details

    • SimpleArray

      public SimpleArray()
  • Method Details

    • 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
    • setXAxisType

      public void setXAxisType(int xAxis)
      set the x axis type
    • getXAxisType

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

      public void setXAxisName(String xName)
    • setYAxisName

      public void setYAxisName(String yName)
      set the y axis name
    • setYAxisType

      public void setYAxisType(int yAxis)
      set the y axis type
    • getYAxisType

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

      public void setData(double[] xd, double[] yd)
      sets the data arrays and notifies observers
    • setNotifyObservers

      public void setNotifyObservers(boolean b)
    • doesNotifyObservers

      public boolean doesNotifyObservers()
    • load

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