Made renderSymbol/Outline final to force components to set Renderers
authorDaniel Kirschten <daniel.kirschten@gmx.de>
Tue, 1 Oct 2019 14:26:19 +0000 (16:26 +0200)
committerDaniel Kirschten <daniel.kirschten@gmx.de>
Tue, 1 Oct 2019 14:26:19 +0000 (16:26 +0200)
plugins/net.mograsim.logic.model/src/net/mograsim/logic/model/model/components/submodels/SubmodelComponent.java

index 745597d..61c97b3 100644 (file)
@@ -401,7 +401,7 @@ public abstract class SubmodelComponent extends ModelComponent
         * 
         * @author Daniel Kirschten
         */
-       protected void renderSymbol(GeneralGC gc, Rectangle visibleRegion)
+       private void renderSymbol(GeneralGC gc, Rectangle visibleRegion)
        {
                if (symbolRenderer != null)
                        symbolRenderer.render(gc, visibleRegion);
@@ -412,7 +412,7 @@ public abstract class SubmodelComponent extends ModelComponent
         * 
         * @author Daniel Kirschten
         */
-       protected void renderOutline(GeneralGC gc, Rectangle visibleRegion)
+       private void renderOutline(GeneralGC gc, Rectangle visibleRegion)
        {
                if (outlineRenderer != null)
                        outlineRenderer.render(gc, visibleRegion);