|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.compomics.util.gui.spectrum.DefaultSpectrumAnnotation
public class DefaultSpectrumAnnotation
This class provideds a default implementation of the SpectrumAnnotation interface.
Constructor Summary | |
---|---|
DefaultSpectrumAnnotation(double aMZ,
double aErrorMargin,
java.awt.Color aColor,
java.lang.String aLabel)
Constructor creating a DefaultSpectrumAnnotation object. |
Method Summary | |
---|---|
java.awt.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]. |
java.lang.String |
getLabel()
This method returns the label for the annotation. |
double |
getMZ()
This method returns the M/Z of the feature to annotate. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultSpectrumAnnotation(double aMZ, double aErrorMargin, java.awt.Color aColor, java.lang.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 annotationMethod Detail |
---|
public java.awt.Color getColor()
getColor
in interface SpectrumAnnotation
public double getErrorMargin()
getErrorMargin
in interface SpectrumAnnotation
public java.lang.String getLabel()
getLabel
in interface SpectrumAnnotation
public double getMZ()
getMZ
in interface SpectrumAnnotation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |