import net.haspamelodica.swt.helper.swtobjectwrappers.Point;
import net.haspamelodica.swt.helper.swtobjectwrappers.Rectangle;
import net.mograsim.logic.core.LogicObserver;
-import net.mograsim.logic.core.components.Clock;
+import net.mograsim.logic.core.components.CoreClock;
import net.mograsim.logic.model.model.ViewModelModifiable;
import net.mograsim.logic.model.model.components.GUIComponent;
import net.mograsim.logic.model.model.components.Orientation;
import net.mograsim.logic.model.model.wires.PinUsage;
import net.mograsim.logic.model.modeladapter.ViewLogicModelAdapter;
import net.mograsim.logic.model.modeladapter.componentadapters.ClockAdapter;
-import net.mograsim.logic.model.serializing.IdentifierGetter;
+import net.mograsim.logic.model.serializing.IdentifyParams;
import net.mograsim.logic.model.serializing.IndirectGUIComponentCreator;
import net.mograsim.logic.model.util.JsonHandler;
import net.mograsim.preferences.Preferences;
private final LogicObserver logicObs;
private GUIClockParams params;
private OrientationCalculator oc;
- private Clock clock;
+ private CoreClock clock;
public GUIClock(ViewModelModifiable model, GUIClockParams params)
{
gc.setFont(oldFont);
}
- public void setLogicModelBinding(Clock clock)
+ public void setLogicModelBinding(CoreClock clock)
{
if (this.clock != null)
this.clock.deregisterObserver(logicObs);
}
}
- public Clock getClock()
+ public CoreClock getClock()
{
return clock;
}
}
@Override
- public GUIClockParams getParamsForSerializing(IdentifierGetter idGetter)
+ public String getIDForSerializing(IdentifyParams idParams)
+ {
+ return "GUIClock";
+ }
+
+ @Override
+ public GUIClockParams getParamsForSerializing(IdentifyParams idParams)
{
return params;
}