Class Measurement

Direct Known Subclasses:
Integral

public class Measurement extends Annotation
The Measurement class stores an annotation that is a measurement
Author:
Bob Hanson hansonr@stolaf.edu
  • Field Details

  • Constructor Details

    • Measurement

      public Measurement()
  • Method Details

    • setM1

      public Measurement setM1(double x, double y, Spectrum spec)
    • copyM

      public Measurement copyM()
    • setPt2

      public Measurement setPt2(Spectrum spec, boolean doSetPt2)
    • setPt2

      public void setPt2(double x, double y)
    • getSpectrum

      public Spectrum getSpectrum()
    • setValue

      public void setValue(double value)
    • getValue

      public double getValue()
    • getXVal2

      public double getXVal2()
    • getYVal2

      public double getYVal2()
    • addSpecShift

      public void addSpecShift(double dx)
    • setYVal2

      public void setYVal2(double y2)
    • overlaps

      public boolean overlaps(double x1, double x2)
    • toString

      public String toString()
      Overrides Objects toString() method
      Overrides:
      toString in class Annotation
      Returns:
      the String representation of this coordinate