Пример #1
0
 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();
 }
Пример #2
0
  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();
  }
Пример #3
0
 public void clear() {
   graphBase.clearGraph();
 }
Пример #4
0
 public void setComponent(BaseComponent component) {
   graphBase.setTargetComponent(component);
   clear();
   if (graphBase.getTargetComponent().actionGraphData != null)
     graphBase.buildFromData(graphBase.getTargetComponent().actionGraphData);
 }