X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.district.network%2Fsrc%2Forg%2Fsimantics%2Fdistrict%2Fnetwork%2Fprofile%2FDNElementColorStyle.java;h=b74a66198366ccff9b2b24f79c8909c549eb017c;hb=refs%2Fchanges%2F58%2F2658%2F1;hp=682c91fb1d00782b53ddae99bba9e875b1d14bcf;hpb=a42f11d276ab590703c54fe5e117c46608ad66cd;p=simantics%2Fdistrict.git diff --git a/org.simantics.district.network/src/org/simantics/district/network/profile/DNElementColorStyle.java b/org.simantics.district.network/src/org/simantics/district/network/profile/DNElementColorStyle.java index 682c91fb..b74a6619 100644 --- a/org.simantics.district.network/src/org/simantics/district/network/profile/DNElementColorStyle.java +++ b/org.simantics.district.network/src/org/simantics/district/network/profile/DNElementColorStyle.java @@ -17,12 +17,12 @@ import org.simantics.scenegraph.profile.common.ProfileVariables; * @author Tuukka Lehtonen * @since 1.35.0 */ -public class DNElementColorStyle extends StyleBase { +public class DNElementColorStyle extends ThrottledStyleBase { private static final boolean DEBUG = false; @Override - public Color calculateStyle(ReadGraph graph, Resource runtimeDiagram, Resource entry, Resource groupItem) throws DatabaseException { + public Color calculateThrottledStyle(ReadGraph graph, Resource runtimeDiagram, Resource entry, Resource groupItem) throws DatabaseException { DiagramSettings ds = graph.syncRequest(new DiagramSettingsRequest(runtimeDiagram), TransientCacheAsyncListener.instance()); if (ds.elementColoringFunction.isPresent()) { if (DEBUG) @@ -40,7 +40,7 @@ public class DNElementColorStyle extends StyleBase { } @Override - public void applyStyleForNode(EvaluationContext observer, INode node, Color color) { + public void applyThrottledStyleForNode(EvaluationContext observer, INode node, Color color) { SingleElementNode n = (SingleElementNode) node; for (INode nn : n.getNodes()) ProfileVariables.claimNodeProperty(nn, "dynamicColor", color, observer);