Package org.jhotdraw.draw

Examples of org.jhotdraw.draw.BezierFigure.addNode()


    Double topArmEndPosition = new Double();

    topArmEndPosition.x = arrowPointPosition.x + (direction * -SVGConstants.DEFAULT_ARROW_LENGTH);
    topArmEndPosition.y = arrowPointPosition.y - SVGConstants.DEFAULT_ARROW_HEIGHT;

    arrow.addNode(new BezierPath.Node(arrowPointPosition));
    arrow.addNode(new BezierPath.Node(topArmEndPosition));

   
    Double bottomArmEndPosition = new Double();
    bottomArmEndPosition.x = arrowPointPosition.x + (direction * -SVGConstants.DEFAULT_ARROW_LENGTH);
 
View Full Code Here


    topArmEndPosition.x = arrowPointPosition.x + (direction * -SVGConstants.DEFAULT_ARROW_LENGTH);
    topArmEndPosition.y = arrowPointPosition.y - SVGConstants.DEFAULT_ARROW_HEIGHT;

    arrow.addNode(new BezierPath.Node(arrowPointPosition));
    arrow.addNode(new BezierPath.Node(topArmEndPosition));

   
    Double bottomArmEndPosition = new Double();
    bottomArmEndPosition.x = arrowPointPosition.x + (direction * -SVGConstants.DEFAULT_ARROW_LENGTH);
    bottomArmEndPosition.y = arrowPointPosition.y + SVGConstants.DEFAULT_ARROW_HEIGHT;
View Full Code Here

   
    Double bottomArmEndPosition = new Double();
    bottomArmEndPosition.x = arrowPointPosition.x + (direction * -SVGConstants.DEFAULT_ARROW_LENGTH);
    bottomArmEndPosition.y = arrowPointPosition.y + SVGConstants.DEFAULT_ARROW_HEIGHT;
    arrow.addNode(new BezierPath.Node(arrowPointPosition));
    arrow.addNode(new BezierPath.Node(bottomArmEndPosition));
   
    return arrow;
  }

View Full Code Here

   
    Double bottomArmEndPosition = new Double();
    bottomArmEndPosition.x = arrowPointPosition.x + (direction * -SVGConstants.DEFAULT_ARROW_LENGTH);
    bottomArmEndPosition.y = arrowPointPosition.y + SVGConstants.DEFAULT_ARROW_HEIGHT;
    arrow.addNode(new BezierPath.Node(arrowPointPosition));
    arrow.addNode(new BezierPath.Node(bottomArmEndPosition));
   
    return arrow;
  }

}
View Full Code Here

    lifelineStartPosition.y = instanceBox.getBounds().height;
    Double lifelineEndPosition = new Double();
    lifelineEndPosition.x = lifelineStartPosition.x;
    lifelineEndPosition.y = vEnd;
    BezierFigure pathFigure = new BezierFigure();
    pathFigure.addNode(new BezierPath.Node(lifelineStartPosition));
    pathFigure.addNode(new BezierPath.Node(lifelineEndPosition));
    lifeline.basicAdd(pathFigure);
   
    add(1, lifeline);
  }
View Full Code Here

    Double lifelineEndPosition = new Double();
    lifelineEndPosition.x = lifelineStartPosition.x;
    lifelineEndPosition.y = vEnd;
    BezierFigure pathFigure = new BezierFigure();
    pathFigure.addNode(new BezierPath.Node(lifelineStartPosition));
    pathFigure.addNode(new BezierPath.Node(lifelineEndPosition));
    lifeline.basicAdd(pathFigure);
   
    add(1, lifeline);
  }
View Full Code Here

      Double interactionLineStartPosition = new Double();
      interactionLineStartPosition.x = 0;
      interactionLineStartPosition.y = 0;

      BezierFigure linePath = new BezierFigure();
      linePath.addNode(new BezierPath.Node(interactionLineStartPosition));

      boolean selfCall = caller == target;

      if (selfCall) {
        Double selfCallIntermidiateTopPosition = new Double();
View Full Code Here

        Double selfCallIntermidiateTopPosition = new Double();
        length = heightIncrement;
        selfCallIntermidiateTopPosition.x = interactionLineStartPosition.x
            + length;
        selfCallIntermidiateTopPosition.y = interactionLineStartPosition.y;
        linePath.addNode(new BezierPath.Node(
            selfCallIntermidiateTopPosition));
        Double selfCallIntermidiateBottomPosition = new Double();
        height = heightIncrement;
        selfCallIntermidiateBottomPosition.x = interactionLineStartPosition.x
            + length;
View Full Code Here

        height = heightIncrement;
        selfCallIntermidiateBottomPosition.x = interactionLineStartPosition.x
            + length;
        selfCallIntermidiateBottomPosition.y = interactionLineStartPosition.y
            + height;
        linePath.addNode(new BezierPath.Node(
            selfCallIntermidiateBottomPosition));
        length = 0;
      }

      Double interacitonlineEndPosition = new Double();
View Full Code Here

      interacitonlineEndPosition.x = interactionLineStartPosition.x
          + length;
      interacitonlineEndPosition.y = interactionLineStartPosition.y
          + height;

      linePath.addNode(new BezierPath.Node(interacitonlineEndPosition));
      interactionLine.basicAdd(linePath);

      int direction = (interacitonlineEndPosition.x > interactionLineStartPosition.x) ? 1
          : -1;
      if (modelInteraction.isExit()) {
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.