public void addNode(BaseNode node) { node.addPins(); graphBase.nodes.add(node); graphBase.addActor(node); Array<BaseNode> nodes = activeNodes.getItems(); nodes.add(node); activeNodes.setItems(nodes); graphBase.rebuildDnD(); }
public ActionWindow(EditorScreen screen) { super("Action controller"); this.screen = screen; setSize(700, 525); setCenterOnAdd(true); setResizable(true); // addCloseButton(); // closeOnEscape(); getListeners(); setLayoutEnabled(true); activeNodes = new VisList<>(); addNodeTable = new VisTable(true); compileGraph = new VisTextButton("Compile"); graphContainer = new GraphContainer(graphBase.getTargetComponent(), null); graphBase = graphContainer.graph; // addActor(activeNodes); // addActor(nodeTableScroller = new VisScrollPane(addNodeTable)); // addActor(graphScroller = new VisScrollPane(graphBase)); addActor(graphContainer); // graphScroller.setSmoothScrolling(true); // graphScroller.setFlickScroll(true); // graphScroller.setOverscroll(false, false); ready = true; sizeChanged(); }
public void clear() { graphBase.clearGraph(); }
public void setComponent(BaseComponent component) { graphBase.setTargetComponent(component); clear(); if (graphBase.getTargetComponent().actionGraphData != null) graphBase.buildFromData(graphBase.getTargetComponent().actionGraphData); }