Examples of EdgeBendpoint


Examples of org.gvt.model.EdgeBendpoint

    List bendpoints = ((EdgeModel) getModel()).getBendpoints();
    List figureConstraint = new ArrayList();

    for (int i = 0; i < bendpoints.size(); i++)
    {
      EdgeBendpoint bp = (EdgeBendpoint) bendpoints.get(i);
      bp.setConnection(getConnectionFigure());
      bp.setWeight((i + 1) / ((float) bendpoints.size() + 1));
      figureConstraint.add(bp);
    }
   
    getConnectionFigure().setRoutingConstraint(figureConstraint);   
  }
View Full Code Here

Examples of org.gvt.model.EdgeBendpoint

        LNode source = edge.source;
        LNode target = edge.target;

        if (source == target)
        {
          edge.bendpoints.add(new EdgeBendpoint());
          edge.bendpoints.add(new EdgeBendpoint());
          this.createDummyNodesForBendpoints(edge);
          visited.add(edge);
        }
        else
        {
          List edgeList = source.getEdgeListToNode(target);
          edgeList.addAll(target.getEdgeListToNode(source));

          if (!visited.contains(edgeList.get(0)))
          {
            if (edgeList.size() > 1)
            {
              for(int k = 0; k < edgeList.size(); k++)
              {
                LEdge multiEdge = (LEdge)edgeList.get(k);
                multiEdge.bendpoints.add(new EdgeBendpoint());
                this.createDummyNodesForBendpoints(multiEdge);
              }
            }

            visited.addAll(edgeList);
View Full Code Here

Examples of org.gvt.model.EdgeBendpoint

        LNode source = edge.source;
        LNode target = edge.target;

        if (source == target)
        {
          edge.bendpoints.add(new EdgeBendpoint());
          edge.bendpoints.add(new EdgeBendpoint());
          this.createDummyNodesForBendpoints(edge);
          visited.add(edge);
        }
        else
        {
          List edgeList = source.getEdgeListToNode(target);
          edgeList.addAll(target.getEdgeListToNode(source));

          if (!visited.contains(edgeList.get(0)))
          {
            if (edgeList.size() > 1)
            {
              for(int k = 0; k < edgeList.size(); k++)
              {
                LEdge multiEdge = (LEdge)edgeList.get(k);
                multiEdge.bendpoints.add(new EdgeBendpoint());
                this.createDummyNodesForBendpoints(multiEdge);
              }
            }

            visited.addAll(edgeList);
View Full Code Here

Examples of org.gvt.model.EdgeBendpoint

{
  private Bendpoint oldBendpoint;

  public void execute()
  {
    EdgeBendpoint bp = new EdgeBendpoint();
    bp.setRelativeDimensions(getFirstRelativeDimension(),
      getSecondRelativeDimension());
    setOldBendpoint((Bendpoint) getWire().getBendpoints().get(getIndex()));
    getWire().setBendpoint(getIndex(), bp);
    super.execute();
  }
View Full Code Here

Examples of org.gvt.model.EdgeBendpoint

*/
public class CreateBendpointCommand extends BendpointCommand
{
  public void execute()
  {
    EdgeBendpoint ebp = new EdgeBendpoint();
    ebp.setRelativeDimensions(
      getFirstRelativeDimension(),
      getSecondRelativeDimension());
    getWire().insertBendpoint(getIndex(), ebp);
    super.execute();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.