List of usage examples for org.apache.commons.math3.complex ComplexFormat ComplexFormat
public ComplexFormat(String imaginaryCharacter) throws NullArgumentException, NoDataException
From source file:org.nmrfx.processor.gui.ComplexOperationItem.java
public ComplexOperationItem(ChangeListener listener, Complex defaultValue, String category, String name, String description) {/*from w w w . java2 s. c o m*/ super(category, name, description); if (defaultValue != null) { this.defaultValue = defaultValue; } else { this.defaultValue = Complex.ZERO; } this.value = this.defaultValue; this.listener = listener; this.cf = new ComplexFormat("j"); }