public abstract class SpectrumFilter
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
name
The name of the filter.
|
Constructor and Description |
---|
SpectrumFilter() |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
getDescription()
Returns a description of the validated spectra, typically "containing a
peak at m/z 114".
|
static java.lang.String[] |
getElementaryFilters()
Convenience method returning the types of implemented elementary filters.
|
static SpectrumFilter |
getFilter(javax.swing.JFrame parentFrame,
java.lang.Double mzTolerance,
java.lang.Double intensityQuantile,
java.lang.Double intensityTolerance,
java.lang.Boolean isPpm)
Allows the user to design basic filters via a GUI.
|
java.lang.String |
getName()
Returns the name of the filter.
|
void |
setName(java.lang.String name)
Sets the name of the filter.
|
abstract boolean |
validateSpectrum(MSnSpectrum spectrum)
Indicates whether a spectrum passed the filter.
|
public java.lang.String getName()
public void setName(java.lang.String name)
name
- the name of the filterpublic abstract boolean validateSpectrum(MSnSpectrum spectrum)
spectrum
- the spectrum to inspectpublic abstract java.lang.String getDescription()
public static java.lang.String[] getElementaryFilters()
public static SpectrumFilter getFilter(javax.swing.JFrame parentFrame, java.lang.Double mzTolerance, java.lang.Double intensityQuantile, java.lang.Double intensityTolerance, java.lang.Boolean isPpm)
parentFrame
- the parent framemzTolerance
- the mz tolerance, can be nullintensityQuantile
- the intensity quantile, can be nullintensityTolerance
- the intensity tolerance, can be nullisPpm
- a boolean indicating whether the tolerance is in ppm, can be
nullCopyright © 2013. All Rights Reserved.