Search in sources :

Example 1 with CircuitAppearance

use of com.cburch.logisim.circuit.appear.CircuitAppearance in project logisim-evolution by reds-heig.

the class RevertAppearanceAction method doIt.

@Override
public void doIt(Project proj) {
    CircuitAppearance appear = circuit.getAppearance();
    wasDefault = appear.isDefaultAppearance();
    old = new ArrayList<CanvasObject>(appear.getObjectsFromBottom());
    appear.setDefaultAppearance(true);
}
Also used : CircuitAppearance(com.cburch.logisim.circuit.appear.CircuitAppearance) CanvasObject(com.cburch.draw.model.CanvasObject)

Example 2 with CircuitAppearance

use of com.cburch.logisim.circuit.appear.CircuitAppearance in project logisim-evolution by reds-heig.

the class RevertAppearanceAction method undo.

@Override
public void undo(Project proj) {
    CircuitAppearance appear = circuit.getAppearance();
    appear.setObjectsForce(old);
    appear.setDefaultAppearance(wasDefault);
}
Also used : CircuitAppearance(com.cburch.logisim.circuit.appear.CircuitAppearance)

Aggregations

CircuitAppearance (com.cburch.logisim.circuit.appear.CircuitAppearance)2 CanvasObject (com.cburch.draw.model.CanvasObject)1