Package com.cburch.logisim.file

Examples of com.cburch.logisim.file.Options


    root.getProject().getOptions().getAttributeSet().addAttributeListener(l);
    updateRandomness();
  }
 
  private void updateRandomness() {
    Options opts = root.getProject().getOptions();
    Object rand = opts.getAttributeSet().getValue(Options.sim_rand_attr);
    int val = ((Integer) rand).intValue();
    int logVal = 0;
    while ((1 << logVal) < val) logVal++;
    simRandomShift = logVal;
  }
View Full Code Here


        root.getProject().getOptions().getAttributeSet().addAttributeListener(l);
        updateRandomness();
    }

    private void updateRandomness() {
        Options opts = root.getProject().getOptions();
        Object rand = opts.getAttributeSet().getValue(Options.sim_rand_attr);
        int val = ((Integer) rand).intValue();
        int logVal = 0;
        while ((1 << logVal) < val) logVal++;
        simRandomShift = logVal;
    }
View Full Code Here

TOP

Related Classes of com.cburch.logisim.file.Options

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.