mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-26 06:22:48 -04:00
removed interactor from data shape
This commit is contained in:
parent
4ae8ec9c36
commit
7ca7d7197b
@ -3,7 +3,6 @@ package de.neemann.digital.draw.shapes;
|
||||
import de.neemann.digital.core.Model;
|
||||
import de.neemann.digital.core.Observer;
|
||||
import de.neemann.digital.core.Signal;
|
||||
import de.neemann.digital.core.element.Element;
|
||||
import de.neemann.digital.core.element.ElementAttributes;
|
||||
import de.neemann.digital.core.element.Keys;
|
||||
import de.neemann.digital.core.element.PinDescriptions;
|
||||
@ -16,12 +15,9 @@ import de.neemann.digital.draw.graphics.Graphic;
|
||||
import de.neemann.digital.draw.graphics.Style;
|
||||
import de.neemann.digital.draw.model.ModelCreator;
|
||||
import de.neemann.digital.draw.model.ModelEntry;
|
||||
import de.neemann.digital.gui.components.CircuitComponent;
|
||||
import de.neemann.digital.gui.components.OrderMerger;
|
||||
import de.neemann.digital.gui.components.data.ValueTableObserver;
|
||||
import de.neemann.digital.gui.sync.Sync;
|
||||
|
||||
import java.awt.*;
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
||||
@ -54,13 +50,7 @@ public class DataShape implements Shape {
|
||||
|
||||
@Override
|
||||
public Interactor applyStateMonitor(IOState ioState, Observer guiObserver) {
|
||||
return new Interactor() {
|
||||
@Override
|
||||
public boolean clicked(CircuitComponent cc, Point pos, IOState ioState, Element element, Sync modelSync) {
|
||||
logData.clear();
|
||||
return false;
|
||||
}
|
||||
};
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -47,9 +47,9 @@ public class ValueTableObserver implements ModelStateObserver {
|
||||
|
||||
@Override
|
||||
public void handleEvent(ModelEvent event) {
|
||||
if (event == ModelEvent.STARTED) {
|
||||
if (event == ModelEvent.STARTED)
|
||||
logData.clear();
|
||||
}
|
||||
|
||||
if (event == ModelEvent.MANUALCHANGE && type == ModelEvent.MICROSTEP) {
|
||||
if (manualSample == null)
|
||||
manualSample = new Value[logData.getColumns()];
|
||||
|
Loading…
x
Reference in New Issue
Block a user