Interface SpectrumAnnotation
- All Known Implementing Classes:
DefaultSpectrumAnnotation
public interface SpectrumAnnotation
This interface describes the behaviour for a spectrum annotation.
- Version:
- $Id: SpectrumAnnotation.java,v 1.1 2007/10/22 10:09:02 lennart Exp $
- Author:
- Lennart Martens
-
Method Summary
Modifier and Type Method Description Color
getColor()
This method returns the color for the annotation.double
getErrorMargin()
This method returns the allowed error margin (both sides) for the M/Z of the annotation (eg., 0.1 means an allowed interval of [M/Z-0.1, M/Z+0.1].String
getLabel()
This method returns the label for the annotation.double
getMZ()
This method returns the M/Z of the feature to annotate.
-
Method Details
-
getMZ
double getMZ()This method returns the M/Z of the feature to annotate.- Returns:
- double with the M/Z.
-
getErrorMargin
double getErrorMargin()This method returns the allowed error margin (both sides) for the M/Z of the annotation (eg., 0.1 means an allowed interval of [M/Z-0.1, M/Z+0.1].- Returns:
- double with the error margin.
-
getColor
Color getColor()This method returns the color for the annotation.- Returns:
- Color with the color for the annotation.
-
getLabel
String getLabel()This method returns the label for the annotation.- Returns:
- String with the label to display (above the M/Z) for this annotation.
-