Package com.cburch.logisim.data

Examples of com.cburch.logisim.data.Value.toIntValue()


        if (layout.subLayouts.length == parent.getEnds().size() - 2) {
            int index = layout.subLayouts.length / 2 + 1;
            Object factory = parent.getFactory();
            if (factory instanceof AbstractGate) {
                Value val = ((AbstractGate) factory).getIdentity();
                Integer valInt = Integer.valueOf(val.toIntValue());
                Location loc = parent.getEnd(index).getLocation();
                AttributeSet attrs = Constant.FACTORY.createAttributeSet();
                attrs.setValue(Constant.ATTR_VALUE, valInt);
                result.add(Constant.FACTORY.createComponent(loc, attrs));
            }
View Full Code Here


        }

        // each nibble is one segment, in top-down, left-to-right
        int segs;
          // order: middle three nibbles are the three horizontal segments
        switch (baseVal.toIntValue()) {
        case 0:  segs = 0x1110111; break;
        case 1:  segs = 0x0000011; break;
        case 2:  segs = 0x0111110; break;
        case 3:  segs = 0x0011111; break;
        case 4:  segs = 0x1001011; break;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.