Package com.cburch.logisim.data

Examples of com.cburch.logisim.data.AttributeOption


    if (fontWeight.equals("bold")) styleFlags |= Font.BOLD;
    int size = Integer.parseInt(fontSize);
    ret.setValue(DrawAttr.FONT, new Font(fontFamily, styleFlags, size));
   
    String alignStr = elt.getAttribute("text-anchor");
    AttributeOption halign;
    if (alignStr.equals("start")) {
      halign = DrawAttr.ALIGN_LEFT;
    } else if (alignStr.equals("end")) {
      halign = DrawAttr.ALIGN_RIGHT;
    } else {
View Full Code Here


      return (V) label.getFont();
    } else if (attr == DrawAttr.FILL_COLOR) {
      return (V) label.getColor();
    } else if (attr == DrawAttr.ALIGNMENT) {
      int halign = label.getHorizontalAlignment();
      AttributeOption h;
      if (halign == EditableLabel.LEFT) {
        h = DrawAttr.ALIGN_LEFT;
      } else if (halign == EditableLabel.RIGHT) {
        h = DrawAttr.ALIGN_RIGHT;
      } else {
View Full Code Here

  public static Value getPullValue(Instance instance) {
    return getPullValue(instance.getAttributeSet());
  }
 
  private static Value getPullValue(AttributeSet attrs) {
    AttributeOption opt = attrs.getValue(ATTR_PULL_TYPE);
    return (Value) opt.getValue();
  }
View Full Code Here

    state.setPort(0, out, 1);
  }

 
  private String getType(AttributeSet attrs) {
    AttributeOption topt = attrs.getValue(ATTR_TYPE);
    return (String) topt.getValue();
  }
View Full Code Here

            return (V) label.getFont();
        } else if (attr == DrawAttr.FILL_COLOR) {
            return (V) label.getColor();
        } else if (attr == DrawAttr.ALIGNMENT) {
            int halign = label.getHorizontalAlignment();
            AttributeOption h;
            if (halign == EditableLabel.LEFT) {
                h = DrawAttr.ALIGN_LEFT;
            } else if (halign == EditableLabel.RIGHT) {
                h = DrawAttr.ALIGN_RIGHT;
            } else {
View Full Code Here

    public static Value getPullValue(Instance instance) {
        return getPullValue(instance.getAttributeSet());
    }

    private static Value getPullValue(AttributeSet attrs) {
        AttributeOption opt = attrs.getValue(ATTR_PULL_TYPE);
        return (Value) opt.getValue();
    }
View Full Code Here

        state.setPort(0, out, 1);
    }


    private String getType(AttributeSet attrs) {
        AttributeOption topt = attrs.getValue(ATTR_TYPE);
        return (String) topt.getValue();
    }
View Full Code Here

TOP

Related Classes of com.cburch.logisim.data.AttributeOption

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.