Finished renaming logic.ui to logic.model
[Mograsim.git] / net.mograsim.logic.model / src / net / mograsim / logic / model / model / components / atomic / SimpleRectangularGUIGate.java
index c7c2607..b14aaec 100644 (file)
@@ -67,7 +67,7 @@ public class SimpleRectangularGUIGate extends GUIComponent
        @Override
        public void render(GeneralGC gc, Rectangle visibleRegion)
        {
-               Color foreground = Preferences.current().getColor("net.mograsim.logic.ui.color.foreground");
+               Color foreground = Preferences.current().getColor("net.mograsim.logic.model.color.foreground");
                if (foreground != null)
                        gc.setForeground(foreground);
                double height = (getPins().size() - 1) * pinDistance;
@@ -78,7 +78,7 @@ public class SimpleRectangularGUIGate extends GUIComponent
                Font labelFont = new Font(oldFont.getName(), fontHeight, oldFont.getStyle());
                gc.setFont(labelFont);
                Point textExtent = gc.textExtent(label);
-               Color textColor = Preferences.current().getColor("net.mograsim.logic.ui.color.text");
+               Color textColor = Preferences.current().getColor("net.mograsim.logic.model.color.text");
                if (textColor != null)
                        gc.setForeground(textColor);
                gc.drawText(label, getPosX() + (rectWidth - textExtent.x) / 2, getPosY() + (height - textExtent.y) / 2, true);
@@ -91,10 +91,10 @@ public class SimpleRectangularGUIGate extends GUIComponent
         * {@link SimpleRectangularGUIGate}s implementation returns a {@link JsonPrimitive} of type int containing the {@link #logicWidth} of
         * this component.
         * 
-        * @see GUIComponent#getParams()
+        * @see GUIComponent#getParamsForSerializing()
         */
        @Override
-       public JsonElement getParams()
+       public JsonElement getParamsForSerializing()
        {
                return new JsonPrimitive(logicWidth);
        }