Package jspecview.common
Class Annotation
java.lang.Object
jspecview.common.Coordinate
jspecview.common.Annotation
- Direct Known Subclasses:
ColoredAnnotation
,JSVDialog
,Measurement
The
Annotation
class stores the spectral x and pixel y values of an
annotation text along with its text- Author:
- Debbie-Ann Facey, Khari A. Bryan, Prof Robert J. Lancashire, Bob Hanson hansonr@stolaf.edu
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Annotation
getColoredAnnotation
(GenericGraphics g2d, Spectrum spec, Lst<String> args, Annotation lastAnnotation) protected Annotation
setA
(double x, double y, Spectrum spec, String text, boolean isPixels, boolean is2D, int offsetX, int offsetY) toString()
Overrides Objects toString() methodMethods 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
-
text
-
isPixels
protected boolean isPixels
-
-
Constructor Details
-
Annotation
public Annotation()
-
-
Method Details
-
setA
protected Annotation setA(double x, double y, Spectrum spec, String text, boolean isPixels, boolean is2D, int offsetX, int offsetY) -
toString
Overrides Objects toString() method- Overrides:
toString
in classCoordinate
- Returns:
- the String representation of this coordinate
-
getColoredAnnotation
public static Annotation getColoredAnnotation(GenericGraphics g2d, Spectrum spec, Lst<String> args, Annotation lastAnnotation)
-