]> gerrit.simantics Code Review - simantics/platform.git/commit
Move state changes away from render method to refresh method 98/2398/1
authorJussi Koskela <jussi.koskela@semantum.fi>
Wed, 24 Oct 2018 11:52:35 +0000 (14:52 +0300)
committerJussi Koskela <jussi.koskela@semantum.fi>
Tue, 30 Oct 2018 13:26:40 +0000 (15:26 +0200)
commita751855733efc30766b1cd0be1c3b37598f16851
treee6d4c4ff5f42e1d2aaae7027a2cdf367758b6066
parent8c029a9e23802007d0c9701fbfbcca7e6cc16b03
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