public EditInfo getEditInfo(int n) {
        if (n == 0) {
            return new EditInfo("Inductance (H)", inductance, 0, 0);
        }
        if (n == 1) {
            return new EditInfo("On Resistance (ohms)", r_on, 0, 0);
        }
        if (n == 2) {
            return new EditInfo("Off Resistance (ohms)", r_off, 0, 0);
        }
        if (n == 3) {
            return new EditInfo("On Current (A)", onCurrent, 0, 0);
        }
        if (n == 4) {
            return new EditInfo("Number of Poles", poleCount, 1, 4).
                    setDimensionless();
        }
        if (n == 5) {
            return new EditInfo("Coil Resistance (ohms)", coilR, 0, 0);
        }
        if (n == 6) {
            EditInfo ei = new EditInfo("", 0, -1, -1);
            ei.checkbox = new Checkbox("Swap Coil Direction",
                    (flags & FLAG_SWAP_COIL) != 0);
            return ei;
        }
        return null;
    }