Home | History | Annotate | Download | only in relative

Lines Matching refs:graphics

64      * @param graphics the graphics context
68 static void paintConstraint(IGraphics graphics, Rect sourceBounds, Match match) {
72 paintConstraint(graphics, type, match.with.node, sourceBounds, match.edge.node,
82 * @param graphics the graphics context to draw into
85 private static void paintConstraint(IGraphics graphics, Constraint constraint,
99 paintConstraint(graphics, constraint.type, sourceNode, sourceBounds, targetNode,
106 * @param graphics the graphics context
111 public static void paintSelectionFeedback(IGraphics graphics, INode parentNode,
121 graphics.useStyle(DEPENDENCY);
128 graphics.fillRect(bounds);
132 graphics.useStyle(GUIDELINE);
141 paintConstraints(graphics, view.dependedOnBy);
145 paintConstraints(graphics, view.dependsOn);
152 private static void paintConstraints(IGraphics graphics, List<Constraint> constraints) {
174 paintConstraint(graphics, constraint, mutableConstraintSet);
183 private static void paintConstraint(IGraphics graphics, ConstraintType type, INode sourceNode,
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,
267 * @param graphics the graphics context to draw
277 private static boolean paintCornerConstraint(IGraphics graphics, ConstraintType type,
350 graphics.useStyle(GUIDELINE);
351 graphics.drawArrow(x1, y1, x2, y2, ARROW_SIZE);
382 private static void paintVerticalConstraint(IGraphics graphics, ConstraintType type,
397 graphics.useStyle(DrawingStyle.DROP_ZONE_ACTIVE);
398 graphics.fillRect(targetBounds.x, targetY - PARENT_RECT_SIZE / 2,
444 graphics.useStyle(GUIDELINE_DASHED);
445 graphics.drawLine(targetBounds.x, sharedY, targetBounds.x2(), sharedY);
446 graphics.useStyle(GUIDELINE);
447 graphics.drawArrow(center, sourceY, center, sharedY + 2, ARROW_SIZE);
448 graphics.drawArrow(center, targetY, center, sharedY - 3, ARROW_SIZE);
450 graphics.useStyle(GUIDELINE);
453 graphics.drawArrow(center, targetY, center, sourceY, ARROW_SIZE);
459 graphics.useStyle(GUIDELINE_DASHED);
460 graphics.drawLine(targetBounds.x, sharedY, targetBounds.x2(), sharedY);
461 graphics.useStyle(GUIDELINE);
462 graphics.drawArrow(center, sourceY, center, sharedY - 3, ARROW_SIZE);
463 graphics.drawArrow(center, targetY, center, sharedY + 3, ARROW_SIZE);
465 graphics.useStyle(GUIDELINE);
466 graphics.drawArrow(center, targetY, center, sourceY, ARROW_SIZE);
494 graphics.useStyle(GUIDELINE);
495 graphics.drawArrow(center, sourceY, center, targetY, ARROW_SIZE);
555 graphics.useStyle(GUIDELINE_DASHED);
556 graphics.drawLine(startX, sharedY, endX, sharedY);
572 graphics.useStyle(GUIDELINE);
577 graphics.drawArrow(x, sourceY, x, sharedY, ARROW_SIZE);
585 graphics.drawArrow(tx, ty + 2 * ARROW_SIZE, tx, ty, ARROW_SIZE);
587 graphics.drawArrow(tx, ty, tx, ty - margin, ARROW_SIZE);
593 graphics.drawArrow(tx, ty - 2 * ARROW_SIZE, tx, ty, ARROW_SIZE);
595 graphics.drawArrow(tx, ty, tx, ty + margin, ARROW_SIZE);
600 graphics.drawArrow(tx, ty - 2 * ARROW_SIZE, tx, ty, ARROW_SIZE);
610 private static void paintHorizontalConstraint(IGraphics graphics, ConstraintType type,
627 graphics.useStyle(DrawingStyle.DROP_ZONE_ACTIVE);
628 graphics.fillRect(targetX - PARENT_RECT_SIZE / 2, targetBounds.y,
643 graphics.useStyle(GUIDELINE_DASHED);
644 graphics.drawLine(sharedX, targetBounds.y, sharedX, targetBounds.y2());
645 graphics.useStyle(GUIDELINE);
646 graphics.drawArrow(sourceX, center, sharedX + 2, center, ARROW_SIZE);
647 graphics.drawArrow(targetX, center, sharedX - 3, center, ARROW_SIZE);
649 graphics.useStyle(GUIDELINE);
652 graphics.drawArrow(targetX, center, sourceX, center, ARROW_SIZE);
658 graphics.useStyle(GUIDELINE_DASHED);
659 graphics.drawLine(sharedX, targetBounds.y, sharedX, targetBounds.y2());
660 graphics.useStyle(GUIDELINE);
661 graphics.drawArrow(sourceX, center, sharedX - 3, center, ARROW_SIZE);
662 graphics.drawArrow(targetX, center, sharedX + 3, center, ARROW_SIZE);
664 graphics.useStyle(GUIDELINE);
665 graphics.drawArrow(targetX, center, sourceX, center, ARROW_SIZE);
681 graphics.useStyle(GUIDELINE);
682 graphics.drawArrow(sourceX, center, targetX, center, ARROW_SIZE);
712 graphics.useStyle(GUIDELINE_DASHED);
713 graphics.drawLine(sharedX, startY, sharedX, endY);
727 graphics.useStyle(GUIDELINE);
730 graphics.drawArrow(sourceX, y, sharedX, y, ARROW_SIZE);
738 graphics.drawArrow(tx + 2 * ARROW_SIZE, ty, tx, ty, ARROW_SIZE);
740 graphics.drawArrow(tx, ty, tx - margin, ty, ARROW_SIZE);
747 graphics.drawArrow(tx - 2 * ARROW_SIZE, ty, tx, ty, ARROW_SIZE);
749 graphics.drawArrow(tx, ty, tx + margin, ty, ARROW_SIZE);
760 private static void paintVerticalCenterConstraint(IGraphics graphics, Rect sourceBounds,
762 graphics.useStyle(GUIDELINE_DASHED);
763 graphics.drawLine(targetBounds.x, targetBounds.centerY(),
765 graphics.useStyle(GUIDELINE);
766 graphics.drawLine(sourceBounds.x, sourceBounds.centerY(),
774 private static void paintHorizontalCenterConstraint(IGraphics graphics, Rect sourceBounds,
776 graphics.useStyle(GUIDELINE_DASHED);
777 graphics.drawLine(targetBounds.centerX(), targetBounds.y,
779 graphics.useStyle(GUIDELINE);
780 graphics.drawLine(sourceBounds.centerX(), sourceBounds.y,