Package jspecview.common
Class Measurement
java.lang.Object
jspecview.common.Coordinate
jspecview.common.Annotation
jspecview.common.Measurement
- Direct Known Subclasses:
Integral
The
Measurement
class stores an annotation that is a measurement- Author:
- Bob Hanson hansonr@stolaf.edu
-
Nested Class Summary
Nested classes/interfaces inherited from class jspecview.common.Annotation
Annotation.AType
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
protected double
Fields inherited from class jspecview.common.Annotation
isPixels, text
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class jspecview.common.Annotation
getColoredAnnotation, setA
Methods inherited from class jspecview.common.Coordinate
applyScale, copy, deltaX, equals, findXForPeakNearest, getMaxX, getMaxX, getMaxY, getMaxYUser, getMinX, getMinX, getMinY, getMinYUser, getNearestIndexForX, getNearestXWithYAbove, getXVal, getYVal, getYValueAt, isYInRange, normalise, parabolicInterpolation, parseDSV, removeScale, reverse, set, setXVal, setYVal, shiftX
-
Field Details
-
PT_XY1
public static final int PT_XY1- See Also:
-
PT_XY2
public static final int PT_XY2- See Also:
-
PT_INT_LABEL
public static final int PT_INT_LABEL- See Also:
-
PT_ON_LINE1
public static final int PT_ON_LINE1- See Also:
-
PT_ON_LINE2
public static final int PT_ON_LINE2- See Also:
-
PT_ON_LINE
public static final int PT_ON_LINE- See Also:
-
value
protected double value
-
-
Constructor Details
-
Measurement
public Measurement()
-
-
Method Details
-
setM1
-
copyM
-
setPt2
-
setPt2
public void setPt2(double x, double y) -
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
Overrides Objects toString() method- Overrides:
toString
in classAnnotation
- Returns:
- the String representation of this coordinate
-