Package unbbayes.draw

Examples of unbbayes.draw.UShapeLine


    for (int i = 0; i < edgeList.size(); i++) {
      e = edgeList.get(i);

      if (getNodeUShape(e.getOriginNode()) != null
          && getNodeUShape(e.getDestinationNode()) != null) {
        UShapeLine line = new UShapeLine(this, getNodeUShape(e
            .getOriginNode()),
            getNodeUShape(e.getDestinationNode()));
        line.setEdge(e);
        // by young 1/23/2010
        line.setLearningLineSelection(false);
        addShape(line);
      }
    }

    // by young4
View Full Code Here


      e = edgeList.get(i);

      // createLine
      if (getNodeUShape(e.getOriginNode()) != null
          && getNodeUShape(e.getDestinationNode()) != null) {
        UShapeLine line = new UShapeLine(this, getNodeUShape(e
            .getOriginNode()),
            getNodeUShape(e.getDestinationNode()));
        line.setEdge(e);
        // line.setUseSelection();
        // by young 1/23/2010
        line.setLearningLineSelection(this.isToUseSelectionForLines());
        addShape(line);
      }
    }

    // by young4
View Full Code Here

    popup.add(item1);
    popup.add(item2);
  }

  public UShapeLine onDrawConnectLineReleased(UShape shapeParent, int x, int y) {
    UShapeLine line = super.onDrawConnectLineReleased(shapeParent, x, y);

    if (line != null) {
      Edge e = new Edge(line.getSource().getNode(), line.getTarget()
          .getNode());
      if (e != null) {
        if (insertEdge(e) == true) {
          line.setEdge(e);
          line.setLearningLineSelection(this.isToUseSelectionForLines());
        } else {
          delShape(line);
          repaint();
        }
      }
View Full Code Here

TOP

Related Classes of unbbayes.draw.UShapeLine

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.