< prev index next >

modules/jmx/src/main/java/com/oracle/javafx/jmx/SGMXBeanImpl.java

Print this page

        

@@ -49,10 +49,11 @@
 import javafx.css.Styleable;
 import javafx.css.StyleableProperty;
 import com.sun.javafx.jmx.HighlightRegion;
 import com.sun.javafx.jmx.MXNodeAlgorithm;
 import com.sun.javafx.jmx.MXNodeAlgorithmContext;
+import com.sun.javafx.scene.NodeHelper;
 import com.sun.javafx.scene.SceneHelper;
 import com.sun.javafx.stage.WindowHelper;
 import com.sun.javafx.tk.TKPulseListener;
 import com.sun.javafx.tk.TKScene;
 import com.sun.javafx.tk.Toolkit;

@@ -382,11 +383,11 @@
 
     private void importSGTree(Node sgRoot, int windowId) {
         if (sgRoot == null) {
             return;
         }
-        jsceneGraphs[windowId] = (JSONDocument)sgRoot.impl_processMXNode(this,
+        jsceneGraphs[windowId] = (JSONDocument) NodeHelper.processMXNode(sgRoot, this,
             new MXNodeAlgorithmContext(nodeMap.size()));
     }
 
     /**
      * {@inheritDoc}

@@ -489,11 +490,11 @@
 
         JSONDocument childrenDoc = JSONDocument.createArray(children.size());
         d.set("children", childrenDoc);
 
         for (int i = 0; i < children.size(); i++) {
-            childrenDoc.set(i, (JSONDocument)children.get(i).impl_processMXNode(this, ctx));
+            childrenDoc.set(i, (JSONDocument)NodeHelper.processMXNode(children.get(i), this, ctx));
         }
         return d;
     }
 
     private JSONDocument createJSONDocument(Node n, MXNodeAlgorithmContext ctx) {
< prev index next >