Beispiel #1
0
        /// <summary> Initializes the Visualiser with the current Rete-network.
        ///
        /// </summary>
        private void  initVisualiser()
        {
            visualiser = new Visualiser(gui.Engine);
            JPanel panel = visualiser.VisualiserPanel;

            visualiserPanel.removeAll();
            visualiserPanel.add("view", panel);
            //UPGRADE_ISSUE: Class 'java.awt.CardLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtCardLayout"'
            ((CardLayout)visualiserPanel.Layout).last(visualiserPanel);
        }
Beispiel #2
0
        public virtual ReturnVector executeFunction(Rete engine, Parameter[] params_Renamed)
        {
            RootNode root = engine.RootNode;

            /*Collection firstLevel=root.getObjectTypeNodes().values();
             * for (Iterator iter = firstLevel.iterator(); iter.hasNext();) {
             * BaseNode b=(BaseNode)iter.next();
             * traverse(0,b);
             * }*/


            ViewGraphNode t          = ViewGraphNode.buildFromRete(root);
            Visualiser    visualiser = new Visualiser(engine);

            visualiser.show();
            return(new DefaultReturnVector());
        }
Beispiel #3
0
 /// <summary> Initializes the Visualiser with the current Rete-network.
 /// 
 /// </summary>
 private void initVisualiser()
 {
     visualiser = new Visualiser(gui.Engine);
     JPanel panel = visualiser.VisualiserPanel;
     visualiserPanel.removeAll();
     visualiserPanel.add("view", panel);
     //UPGRADE_ISSUE: Class 'java.awt.CardLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtCardLayout"'
     ((CardLayout) visualiserPanel.Layout).last(visualiserPanel);
 }
Beispiel #4
0
 /// <summary> Sets the visualiser to null when closing the GUI.
 /// </summary>
 public override void close()
 {
     visualiser = null;
 }
Beispiel #5
0
 /// <summary> Sets the visualiser to null when closing the GUI.
 /// </summary>
 public override void  close()
 {
     visualiser = null;
 }