public class Annotation extends Coordinate
Annotation
class stores the spectral x and pixel y values of an
annotation text along with its textModifier and Type | Class and Description |
---|---|
static class |
Annotation.AType |
Modifier and Type | Field and Description |
---|---|
boolean |
is2D |
int |
offsetX |
int |
offsetY |
JDXSpectrum |
spec |
Constructor and Description |
---|
Annotation(JDXSpectrum spec,
double x,
double y) |
Annotation(JDXSpectrum spec,
double x,
double y,
java.lang.String text,
boolean isPixels,
boolean is2D,
int offsetX,
int offsetY)
Constructor -- note that x is spectral X value, but y is pixels above
baseline
|
Modifier and Type | Method and Description |
---|---|
void |
addSpecShift(double dx) |
java.lang.String |
getText() |
boolean |
isPixels() |
void |
setText(java.lang.String text) |
java.lang.String |
toString()
Overrides Objects toString() method
|
applyScale, applyShiftReference, copy, deltaX, equals, findXForPeakNearest, getMaxX, getMaxX, getMaxY, getMaxYUser, getMinX, getMinX, getMinY, getMinYUser, getNearestIndexForX, getNearestXWithYAbove, getXString, getXVal, getYString, getYVal, getYValueAt, intoRange, intoRange, isYInRange, normalise, parabolicInterpolation, parseDSV, removeScale, reverse, setXVal, setYVal
public boolean is2D
public int offsetX
public int offsetY
public JDXSpectrum spec
public Annotation(JDXSpectrum spec, double x, double y, java.lang.String text, boolean isPixels, boolean is2D, int offsetX, int offsetY)
spec
- x
- y
- text
- isPixels
- is2D
- offsetX
- offsetY
- public Annotation(JDXSpectrum spec, double x, double y)
public void addSpecShift(double dx)
public java.lang.String getText()
public void setText(java.lang.String text)
public boolean isPixels()
public java.lang.String toString()
toString
in class Coordinate