use of net.sf.mzmine.util.maths.Weighting in project mzmine2 by mzmine.
the class CenterMeasureComponent method getSelectedFunction.
public CenterFunction getSelectedFunction() {
CenterMeasure measure = (CenterMeasure) comboCenterMeasure.getSelectedItem();
Weighting trans = Weighting.NONE;
if (comboTransform != null && comboTransform.isVisible())
trans = (Weighting) comboTransform.getSelectedItem();
return new CenterFunction(measure, trans);
}
use of net.sf.mzmine.util.maths.Weighting in project mzmine2 by mzmine.
the class CenterMeasureParameter method loadValueFromXML.
@Override
public void loadValueFromXML(Element xmlElement) {
try {
CenterMeasure measure = CenterMeasure.valueOf(xmlElement.getAttribute("measure"));
Weighting weighting = Weighting.valueOf(xmlElement.getAttribute("weighting"));
value = new CenterFunction(measure, weighting);
} catch (Exception e) {
logger.log(Level.WARNING, "center measure cannot be loaded from xml", e);
}
}
Aggregations