Home | History | Annotate | Download | only in relative

Lines Matching refs:sourceBounds

65      * @param sourceBounds the source bounds
68 static void paintConstraint(IGraphics graphics, Rect sourceBounds, Match match) {
72 paintConstraint(graphics, type, match.with.node, sourceBounds, match.edge.node,
97 Rect sourceBounds = sourceNode.getBounds();
99 paintConstraint(graphics, constraint.type, sourceNode, sourceBounds, targetNode,
184 Rect sourceBounds, INode targetNode, Rect targetBounds,
194 paintHorizontalCenterConstraint(graphics, sourceBounds, targetBounds);
200 paintVerticalCenterConstraint(graphics, sourceBounds, targetBounds);
208 if (paintCornerConstraint(graphics, type, sourceNode, sourceBounds, targetNode,
216 paintVerticalConstraint(graphics, type, sourceNode, sourceBounds, targetNode,
223 paintHorizontalConstraint(graphics, type, sourceNode, sourceBounds, targetNode,
270 * @param sourceBounds the bounds of the source node
278 INode sourceNode, Rect sourceBounds, INode targetNode, Rect targetBounds,
330 x1 = sourceBounds.x + 1 * sourceBounds.w / 4;
332 x1 = sourceBounds.x + 3 * sourceBounds.w / 4;
335 y1 = sourceBounds.y + 1 * sourceBounds.h / 4;
337 y1 = sourceBounds.y + 3 * sourceBounds.h / 4;
383 INode sourceNode, Rect sourceBounds, INode targetNode, Rect targetBounds,
392 int sourceY = sourceSegmentTypeY.getY(sourceNode, sourceBounds);
415 int maxLeft = Math.max(sourceBounds.x, targetBounds.x);
416 int minRight = Math.min(sourceBounds.x2(), targetBounds.x2());
419 if (center > sourceBounds.x && center < sourceBounds.x2()) {
471 // TODO: If the center falls smack in the center of the sourceBounds,
487 sourceY += sourceBounds.h / 2 - 2 * ARROW_SIZE;
544 if (center <= sourceBounds.x) {
546 endX = sourceBounds.x2();
548 assert (center >= sourceBounds.x2());
549 startX = sourceBounds.x;
575 int x = sourceBounds.x + ((sourceSegmentTypeY == BASELINE) ?
576 sourceBounds.w / 2 : sourceBounds.w / 4);
611 INode sourceNode, Rect sourceBounds, INode targetNode, Rect targetBounds,
622 int sourceX = sourceSegmentTypeX.getX(sourceNode, sourceBounds);
632 int maxTop = Math.max(sourceBounds.y, targetBounds.y);
633 int minBottom = Math.min(sourceBounds.y2(), targetBounds.y2());
638 if (center > sourceBounds.y && center < sourceBounds.y2()) {
677 sourceX += sourceBounds.w / 2 - 2 * ARROW_SIZE;
700 if (center <= sourceBounds.y) {
702 endY = sourceBounds.y2();
704 assert (center >= sourceBounds.y2());
705 startY = sourceBounds.y;
711 int y = sourceBounds.y + sourceBounds.h / 4;
760 private static void paintVerticalCenterConstraint(IGraphics graphics, Rect sourceBounds,
766 graphics.drawLine(sourceBounds.x, sourceBounds.centerY(),
767 sourceBounds.x2(), sourceBounds.centerY());
774 private static void paintHorizontalCenterConstraint(IGraphics graphics, Rect sourceBounds,
780 graphics.drawLine(sourceBounds.centerX(), sourceBounds.y,
781 sourceBounds.centerX(), sourceBounds.y2());