Package joshua.ui.tree_visualizer

Examples of joshua.ui.tree_visualizer.DerivationTree


    if ((src == null) || (tgt == null)) {
      return;
    }

    DerivationTree tree = new DerivationTree(tgt.split(DerivationTree.DELIMITER)[1], src);
    if (dv == null) {
      dv = new DerivationViewer(tree, viewPanel.getSize(), targetColor, DerivationViewer.AnchorType.ANCHOR_LEFTMOST_LEAF);
    }
    else {
      dv.setGraph(tree);
      tree.addCorrespondences();
    }
    viewPanel.add(dv, BorderLayout.CENTER);
    dv.revalidate();
    repaint();
    getContentPane().repaint();
View Full Code Here

TOP

Related Classes of joshua.ui.tree_visualizer.DerivationTree

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.