Package com.cburch.logisim.util

Examples of com.cburch.logisim.util.StringGetter


      FontMetrics fm = g.getFontMetrics();
      g.drawString(speedStr, getWidth() - 10 - fm.stringWidth(speedStr),
          getHeight() - 10);
      */
     
      StringGetter message = errorMessage;
      if (message != null) {
        g.setColor(errorColor);
        paintString(g, message.get());
        return;
      }
     
      if (proj.getSimulator().isOscillating()) {
        g.setColor(DEFAULT_ERROR_COLOR);
View Full Code Here


    toolTip = getter;
    return this;
  }
 
  public String getToolTip() {
    StringGetter getter = toolTip;
    return getter == null ? null : getter.get();
  }
View Full Code Here

      if (end.getLocation().manhattanDistanceTo(x, y) < 10) {
        Port p = portList.get(i);
        return p.getToolTip();
      }
    }
    StringGetter defaultTip = factory.getDefaultToolTip();
    return defaultTip == null ? null : defaultTip.get();
  }
View Full Code Here

  public void setToolTip(StringGetter value) {
    toolTip = value;
  }
 
  public String getToolTip() {
    StringGetter getter = toolTip;
    return getter == null ? null : getter.get();
  }
View Full Code Here

        if (w1.getLength() > 0) ws.add(w1);
      }
      if (ws.size() > 0) {
        CircuitMutation mutation = new CircuitMutation(canvas.getCircuit());
        mutation.addAll(ws);
        StringGetter desc;
        if (ws.size() == 1) desc = Strings.getter("addWireAction");
        else desc = Strings.getter("addWiresAction");
        Action act = mutation.toAction(desc);
        canvas.getProject().doAction(act);
        lastAction = act;
View Full Code Here

    Wire shorten = willShorten(drag0, drag1);
    if (shorten == null) {
      return false;
    } else {
      CircuitMutation xn = new CircuitMutation(canvas.getCircuit());
      StringGetter actName;
      Wire result = getShortenResult(shorten, drag0, drag1);
      if (result == null) {
        xn.remove(shorten);
        actName = Strings.getter("removeComponentAction",
            shorten.getFactory().getDisplayGetter());
View Full Code Here

TOP

Related Classes of com.cburch.logisim.util.StringGetter

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.