public class DefaultSpectrumAnnotation extends Object implements SpectrumAnnotation
Constructor and Description |
---|
DefaultSpectrumAnnotation(double aMZ,
double aErrorMargin,
Color aColor,
String aLabel)
Constructor creating a DefaultSpectrumAnnotation object.
|
Modifier and Type | Method and 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.
|
public DefaultSpectrumAnnotation(double aMZ, double aErrorMargin, Color aColor, String aLabel)
aMZ
- the mz value to annotateaErrorMargin
- the mz error marginaColor
- the color to use for the annotationaLabel
- the label to use for the annotationpublic Color getColor()
getColor
in interface SpectrumAnnotation
public double getErrorMargin()
getErrorMargin
in interface SpectrumAnnotation
public String getLabel()
getLabel
in interface SpectrumAnnotation
public double getMZ()
getMZ
in interface SpectrumAnnotation
Copyright © 2016. All rights reserved.