]> gerrit.simantics Code Review - simantics/platform.git/commit
Move state changes away from render method to refresh method
authorJussi Koskela <jussi.koskela@semantum.fi>
Wed, 24 Oct 2018 11:52:35 +0000 (14:52 +0300)
committerAntti Villberg <antti.villberg@semantum.fi>
Tue, 13 Nov 2018 04:59:31 +0000 (06:59 +0200)
commit512d469c3e490cdfc9a10fbbd6efe92ae6c0358a
treef09beb2f5b0392878ef95d3da91dcb50647e0256
parentafee96f637a9563364343ec9688b1d4b3aa98a10
Move state changes away from render method to refresh method

Backwards compatibility is preserved by calling refresh for each node at
the beginning of rendering. This is performed automatically in
G2DSceneGraph.render contrary to original requirement. This change is
required to support external diagram renderers.

Change-Id: I5d91ee97b0c9527f6d4ba562089ffaebdbc01ce0
bundles/org.simantics.diagram/src/org/simantics/diagram/elements/TextGridNode.java
bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/G2DNode.java
bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/G2DParentNode.java
bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/G2DSceneGraph.java
bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/IG2DNode.java