1 package net.mograsim.logic.model.serializing;
3 import com.google.gson.JsonElement;
5 import net.haspamelodica.swt.helper.swtobjectwrappers.Point;
6 import net.mograsim.logic.model.model.components.submodels.SubmodelComponent;
7 import net.mograsim.logic.model.util.Version;
10 * This class contains all the information necessary to create a new {@link SubmodelComponent}
12 public class SubmodelComponentParams extends SerializablePojo
15 public double width, height;
16 public InterfacePinParams[] interfacePins;
17 public double innerScale;
18 public ViewModelParams submodel;
20 // functionality that needs to be expressed in Java code
21 public String symbolRendererSnippetID;
22 public JsonElement symbolRendererParams;
24 public String outlineRendererSnippetID;
25 public JsonElement outlineRendererParams;
27 public String highLevelStateHandlerSnippetID;
28 public JsonElement highLevelStateHandlerParams;
30 public SubmodelComponentParams(Version version)
35 public static class InterfacePinParams
37 public Point location;
39 public int logicWidth;