public EditInfo getEditInfo(int n) {
        if (n == 0) {
            return new EditInfo("Min Frequency (Hz)", minF, 0, 0);
        }
        if (n == 1) {
            return new EditInfo("Max Frequency (Hz)", maxF, 0, 0);
        }
        if (n == 2) {
            return new EditInfo("Sweep Time (s)", sweepTime, 0, 0);
        }
        if (n == 3) {
            EditInfo ei = new EditInfo("", 0, -1, -1);
            ei.checkbox = new Checkbox("Logarithmic", (flags & FLAG_LOG) != 0);
            return ei;
        }
        if (n == 4) {
            return new EditInfo("Max Voltage", maxV, 0, 0);
        }
        if (n == 5) {
            EditInfo ei = new EditInfo("", 0, -1, -1);
            ei.checkbox = new Checkbox("Bidirectional", (flags & FLAG_BIDIR) != 0);
            return ei;
        }
        return null;
    }