List of usage examples for org.apache.commons.math3.complex ComplexFormat parse
public Complex parse(String source) throws MathParseException
From source file:org.nmrfx.processor.gui.ComplexOperationItem.java
@Override public void setFromString(String sValue) { ComplexFormat cfTemp = new ComplexFormat(); Complex oldValue = value;//from w w w .j a v a2 s.c o m Complex newValue = cfTemp.parse(sValue); if (newValue == null) { return; } value = newValue; listener.changed(this, complexToString(oldValue), complexToString(value)); }