Package com.cburch.logisim.circuit.appear

Examples of com.cburch.logisim.circuit.appear.CircuitAppearance$MyListener


  private ArrayList<Component> clocks = new ArrayList<Component>();
  private CircuitLocker locker;
  private WeakHashMap<Component, Circuit> circuitsUsingThis;

  public Circuit(String name) {
    appearance = new CircuitAppearance(this);
    staticAttrs = CircuitAttributes.createBaseAttrs(this, name);
    subcircuitFactory = new SubcircuitFactory(this);
    locker = new CircuitLocker();
    circuitsUsingThis = new WeakHashMap<Component, Circuit>();
  }
View Full Code Here


    return Strings.get("revertAppearanceAction");
  }

  @Override
  public void doIt(Project proj) {
    CircuitAppearance appear = circuit.getAppearance();
    wasDefault = appear.isDefaultAppearance();
    old = new ArrayList<CanvasObject>(appear.getObjectsFromBottom());
    appear.setDefaultAppearance(true);
  }
View Full Code Here

    appear.setDefaultAppearance(true);
  }

  @Override
  public void undo(Project proj) {
    CircuitAppearance appear = circuit.getAppearance();
    appear.setObjectsForce(old);
    appear.setDefaultAppearance(wasDefault);
  }
View Full Code Here

    private ArrayList<Component> clocks = new ArrayList<Component>();
    private CircuitLocker locker;
    private WeakHashMap<Component, Circuit> circuitsUsingThis;

    public Circuit(String name) {
        appearance = new CircuitAppearance(this);
        staticAttrs = CircuitAttributes.createBaseAttrs(this, name);
        subcircuitFactory = new SubcircuitFactory(this);
        locker = new CircuitLocker();
        circuitsUsingThis = new WeakHashMap<Component, Circuit>();
    }
View Full Code Here

        return getFromLocale("revertAppearanceAction");
    }

    @Override
    public void doIt(Project proj) {
        CircuitAppearance appear = circuit.getAppearance();
        wasDefault = appear.isDefaultAppearance();
        old = new ArrayList<CanvasObject>(appear.getObjectsFromBottom());
        appear.setDefaultAppearance(true);
    }
View Full Code Here

        appear.setDefaultAppearance(true);
    }

    @Override
    public void undo(Project proj) {
        CircuitAppearance appear = circuit.getAppearance();
        appear.setObjectsForce(old);
        appear.setDefaultAppearance(wasDefault);
    }
View Full Code Here

TOP

Related Classes of com.cburch.logisim.circuit.appear.CircuitAppearance$MyListener

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.