From: Daniel Kirschten Date: Tue, 1 Oct 2019 14:26:19 +0000 (+0200) Subject: Made renderSymbol/Outline final to force components to set Renderers X-Git-Url: https://mograsim.net/gitweb/?a=commitdiff_plain;h=c548d5108307fef7bbac6d31e8f9512464c57517;p=Mograsim.git Made renderSymbol/Outline final to force components to set Renderers --- diff --git a/plugins/net.mograsim.logic.model/src/net/mograsim/logic/model/model/components/submodels/SubmodelComponent.java b/plugins/net.mograsim.logic.model/src/net/mograsim/logic/model/model/components/submodels/SubmodelComponent.java index 745597d4..61c97b38 100644 --- a/plugins/net.mograsim.logic.model/src/net/mograsim/logic/model/model/components/submodels/SubmodelComponent.java +++ b/plugins/net.mograsim.logic.model/src/net/mograsim/logic/model/model/components/submodels/SubmodelComponent.java @@ -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);