]> gerrit.simantics Code Review - simantics/platform.git/commit
Move state changes away from render method to refresh method 50/2350/1
authorJussi Koskela <jussi.koskela@semantum.fi>
Wed, 24 Oct 2018 11:52:35 +0000 (14:52 +0300)
committerJussi Koskela <jussi.koskela@semantum.fi>
Wed, 24 Oct 2018 11:52:35 +0000 (14:52 +0300)
commit5a65721b68637288878dd67018ef65a8dcc08bbb
tree95b48271b5f90aa9aff5561f00d32b1716183840
parentfee871302ad4c53ca2c2307bd13366d99116d930
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