From c548d5108307fef7bbac6d31e8f9512464c57517 Mon Sep 17 00:00:00 2001 From: Daniel Kirschten Date: Tue, 1 Oct 2019 16:26:19 +0200 Subject: [PATCH] Made renderSymbol/Outline final to force components to set Renderers --- .../model/model/components/submodels/SubmodelComponent.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.17.1