/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
D | GCWrapper.java | 247 public void drawLine(int x1, int y1, int x2, int y2) { in drawLine() argument 253 y2 = mVScale.translate(y2); in drawLine() 254 getGc().drawLine(x1, y1, x2, y2); in drawLine() 265 public void drawRect(int x1, int y1, int x2, int y2) { in drawRect() argument 271 int h = mVScale.scale(y2 - y1); in drawRect() 292 public void fillRect(int x1, int y1, int x2, int y2) { in fillRect() argument 298 int h = mVScale.scale(y2 - y1); in fillRect() 320 public void drawOval(int x1, int y1, int x2, int y2) { in drawOval() argument 326 int h = mVScale.scale(y2 - y1); in drawOval() 344 public void fillOval(int x1, int y1, int x2, int y2) { in fillOval() argument [all …]
|
D | SelectionHandles.java | 93 int y2 = y1 + h; in createHandles() local 100 y2 -= insets.bottom; in createHandles() 104 int my = (y1 + y2) / 2; in createHandles() 112 mHandles.add(new SelectionHandle(x1, y2, Position.BOTTOM_LEFT)); in createHandles() 121 mHandles.add(new SelectionHandle(x2, y2, Position.BOTTOM_RIGHT)); in createHandles() 128 mHandles.add(new SelectionHandle(mx, y2, Position.BOTTOM_MIDDLE)); in createHandles()
|
D | ImageUtils.java | 236 int x1, y1, x2, y2; in crop() local 241 y2 = initialCrop.y + initialCrop.h; in crop() 246 y2 = image.getHeight(); in crop() 250 if (x1 == x2 || y1 == y2) { in crop() 264 topEdge: for (; y1 < y2; y1++) { in crop() 279 for (int y = y1; y < y2; y++) { in crop() 288 for (int y = y1; y < y2; y++) { in crop() 296 bottomEdge: for (; y2 > y1; y2--) { in crop() 298 if (!filter.crop(image, x, y2 - 1)) { in crop() 305 if (x1 == 0 && y1 == 0 && x2 == image.getWidth() && y2 == image.getHeight()) { in crop() [all …]
|
D | SelectionOverlay.java | 207 int y2 = r.y2() + 1; in paintSelection() local 213 y2 -= insets.bottom; in paintSelection() 216 gc.drawRect(x1, y1, x2, y2); in paintSelection()
|
D | LintTooltipManager.java | 167 int y2 = b.y + b.height; in computeNodes() local 170 || p.y < y2 - layoutIconSize - slop in computeNodes() 171 || p.y > y2 + slop) { in computeNodes()
|
D | ResizeGesture.java | 198 int y2 = b.y + b.h; in getNewBounds() local 200 if (ny1 < y2) { in getNewBounds() 202 h = y2 - y; in getNewBounds() 205 y = y2; in getNewBounds()
|
D | IncludeOverlay.java | 85 int y2 = bottomRight.y; in paint() local 87 gc.fillRectangle(x1, y1, x2 - x1, y2 - y1); in paint()
|
D | PreviewIconFactory.java | 332 int y2 = parentY + info.getBottom(); in render() local 333 if (x1 != x2 && y1 != y2) { in render() 334 savePreview(file, image, x1, y1, x2, y2); in render()
|
D | PaletteControl.java | 1036 int y2 = viewInfo.getBottom(); in renderPreview() local 1038 initialCrop = new Rect(x1, y1, x2 - x1, y2 - y1); in renderPreview()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/ |
D | TestGraphics.java | 60 public void drawLine(int x1, int y1, int x2, int y2) { in drawLine() argument 61 mDrawn.add("drawLine(" + x1 + "," + y1 + "," + x2 + "," + y2 + ")"); in drawLine() 70 public void drawRect(int x1, int y1, int x2, int y2) { in drawRect() argument 71 mDrawn.add("drawRect(" + x1 + "," + y1 + "," + x2 + "," + y2 + ")"); in drawRect() 95 public void fillRect(int x1, int y1, int x2, int y2) { in fillRect() argument 96 mDrawn.add("fillRect(" + x1 + "," + y1 + "," + x2 + "," + y2 + ")"); in fillRect() 169 public void drawArrow(int x1, int y1, int x2, int y2, int size) { in drawArrow() argument 170 mDrawn.add("drawArrow(" + x1 + "," + y1 + "," + x2 + "," + y2 + ")"); in drawArrow()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/grid/ |
D | GridLayoutPainter.java | 71 gc.drawLine(x, b.y, x, b.y2()); in paintStructure() 91 int y2 = b.y2() - MARGIN_SIZE; in paintGrid() local 92 for (int y = y1; y < y2; y += GRID_SIZE) { in paintGrid() 193 int y2; in paintFreeFormDropFeedback() local 196 y2 = rowMatch.matchedLine - rowMatch.margin; in paintFreeFormDropFeedback() 200 y2 = rowMatch.matchedLine + rowMatch.margin; in paintFreeFormDropFeedback() 203 gc.drawLine(b.x, y2, b.x2(), y2); in paintFreeFormDropFeedback() 205 centerX - 3, y1 + (y2 - y1 - 16) / 2); in paintFreeFormDropFeedback() 226 gc.drawLine(x1, b.y, x1, b.y2()); in paintFreeFormDropFeedback() 227 gc.drawLine(x2, b.y, x2, b.y2()); in paintFreeFormDropFeedback() [all …]
|
D | GridDropHandler.java | 98 int y2 = y1 + h; in computeMatches() local 100 if (x2 < bounds.x || y2 < bounds.y || x1 > bounds.x2() || y1 > bounds.y2()) { in computeMatches() 111 addCenterColumnMatch(bounds, x1, y1, x2, y2, columnMatches, max); in computeMatches() 118 addBottomMatch(y2, rowMatches, max); in computeMatches() 126 addRowGapMatch(bounds, y1, y2, rowMatches, max); in computeMatches() 135 y2 = y1 + h; in computeMatches() 237 private void addCenterColumnMatch(Rect bounds, int x1, int y1, int x2, int y2, 239 Collection<INode> intersectsRow = mGrid.getIntersectsRow(y1, y2); 266 private void addBottomMatch(int y2, List<GridMatch> rowMatches, int max) { 267 int rowBottom = (mGrid.getViewCount() == 0) ? 0 : mGrid.getClosestRow(y2); [all …]
|
D | GridModel.java | 738 mTop[actualRowCount] = layoutBounds.y2(); in assignCellBoundsFromBounds() 785 mTop[i] = layoutBounds.y2(); in assignCellBoundsFromBounds() 818 int y2 = bounds.y2(); in initializeMaxBounds() local 829 y2 -= insets.bottom; in initializeMaxBounds() 836 if (mMaxBottom[targetRow] < y2 in initializeMaxBounds() 838 mMaxBottom[targetRow] = y2; in initializeMaxBounds() 1172 } else if (split && view.node.getBounds().y2() > y) { in addRow() 1435 public Collection<INode> getIntersectsRow(int y1, int y2) { in getIntersectsRow() argument 1441 if (bounds.y2() >= y1 && bounds.y <= y2) { in getIntersectsRow() 1768 if (row > newRow || (row == newRow && view.node.getBounds().y2() > y)) { in splitRow() [all …]
|
/sdk/rule_api/src/com/android/ide/common/api/ |
D | IGraphics.java | 43 void drawLine(int x1, int y1, int x2, int y2); in drawLine() argument 60 void drawArrow(int x1, int y1, int x2, int y2, int size); in drawArrow() argument 74 void drawRect(int x1, int y1, int x2, int y2); in drawRect() argument 92 void fillRect(int x1, int y1, int x2, int y2); in fillRect() argument
|
D | Rect.java | 161 public int y2() { in y2() method in Rect
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/relative/ |
D | MoveHandler.java | 197 if (mBounds.y2() > layoutBounds.y2()) { in updateMove() 198 mBounds.y -= mBounds.y2() - layoutBounds.y2(); in updateMove() 212 edge = new Segment(b.y2(), b.x, b.x2(), null, null, BOTTOM, NO_MARGIN); in updateMove() 215 edge = new Segment(b.x, b.y, b.y2(), null, null, LEFT, NO_MARGIN); in updateMove() 217 edge = new Segment(b.x2(), b.y, b.y2(), null, null, RIGHT, NO_MARGIN); in updateMove() 221 edge = new Segment(b.centerX(), b.y, b.y2(), null, null, CENTER_VERTICAL, NO_MARGIN); in updateMove()
|
D | ConstraintPainter.java | 328 int x1, y1, x2, y2; in paintCornerConstraint() local 345 y2 = targetBounds.y + 1 * targetBounds.h / 4; in paintCornerConstraint() 347 y2 = targetBounds.y + 3 * targetBounds.h / 4; in paintCornerConstraint() 351 graphics.drawArrow(x1, y1, x2, y2, ARROW_SIZE); in paintCornerConstraint() 590 int ty = targetBounds.y2(); in paintVerticalConstraint() 629 targetX + PARENT_RECT_SIZE / 2, targetBounds.y2()); in paintHorizontalConstraint() 633 int minBottom = Math.min(sourceBounds.y2(), targetBounds.y2()); in paintHorizontalConstraint() 638 if (center > sourceBounds.y && center < sourceBounds.y2()) { in paintHorizontalConstraint() 644 graphics.drawLine(sharedX, targetBounds.y, sharedX, targetBounds.y2()); in paintHorizontalConstraint() 659 graphics.drawLine(sharedX, targetBounds.y, sharedX, targetBounds.y2()); in paintHorizontalConstraint() [all …]
|
D | GuidelineHandler.java | 330 mHorizontalEdges.add(new Segment(b.y2(), b.x, b.x2(), node, id, BOTTOM, in addBounds() 332 mHorizontalEdges.add(new Segment(b.y2() + margins.bottom, b.x, b.x2(), node, in addBounds() 335 mHorizontalEdges.add(new Segment(b.y2(), b.x, b.x2(), node, id, in addBounds() 341 mVerticalEdges.add(new Segment(b.x, b.y, b.y2(), node, id, LEFT, WITHOUT_MARGIN)); in addBounds() 342 mVerticalEdges.add(new Segment(b.x - margins.left, b.y, b.y2(), node, id, LEFT, in addBounds() 345 mVerticalEdges.add(new Segment(b.x, b.y, b.y2(), node, id, LEFT, NO_MARGIN)); in addBounds() 349 mVerticalEdges.add(new Segment(b.x2(), b.y, b.y2(), node, id, in addBounds() 351 mVerticalEdges.add(new Segment(b.x2() + margins.right, b.y, b.y2(), node, id, in addBounds() 354 mVerticalEdges.add(new Segment(b.x2(), b.y, b.y2(), node, id, in addBounds() 370 mCenterVertEdges.add(new Segment(b.centerX(), b.y, b.y2(), in addCenter()
|
D | ResizeHandler.java | 198 hEdge = new Segment(b.y2(), b.x, b.x2(), child, childId, mHorizontalEdgeType, in updateResize() 205 vEdge = new Segment(b.x, b.y, b.y2(), child, childId, mVerticalEdgeType, NO_MARGIN); in updateResize() 207 vEdge = new Segment(b.x2(), b.y, b.y2(), child, childId, mVerticalEdgeType, NO_MARGIN); in updateResize()
|
/sdk/hierarchyviewer2/libs/hierarchyviewerlib/src/com/android/hierarchyviewerlib/ui/ |
D | LayoutViewer.java | 160 int y2 = Math.min(top + node.viewNode.height, clipY + clipHeight); in updateSelection() local 164 clipHeight = y2 - y1; in updateSelection() 271 int y2 = in paintRecursive() local 277 if (x2 <= x1 || y2 <= y1) { in paintRecursive() 280 gc.setClipping(x1, y1, x2 - x1, y2 - y1); in paintRecursive()
|
D | TreeViewOverview.java | 272 float y2 = (float) child.top + DrawableViewNode.NODE_HEIGHT / 2.0f; in paintRecursive() local 276 float cy2 = y2; in paintRecursive() 278 connectionPath.cubicTo(cx1, cy1, cx2, cy2, x2, y2); in paintRecursive()
|
D | TreeView.java | 893 float y2 = (float) child.top + DrawableViewNode.NODE_HEIGHT / 2.0f; in paintRecursive() local 897 float cy2 = y2; in paintRecursive() 899 connectionPath.cubicTo(cx1, cy1, cx2, cy2, x2, y2); in paintRecursive()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/ |
D | BaseLayoutRule.java | 788 state.horizontalFillSegment = new Segment(parentBounds.y2(), newBounds.x, 791 if (Math.abs(newBounds.y2() - parentBounds.y2()) < getMaxMatchDistance()) { 793 newBounds.h = parentBounds.y2() - newBounds.y; 801 newBounds.y2(),
|
D | GridLayoutRule.java | 432 int endRow = grid.getRow(state.bounds.y2()); in paintResizeFeedback() 517 int endRow = grid.getRow(state.bounds.y2()); in computeResizeSpans()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/api/ |
D | RectTest.java | 270 assertEquals(6, r.y2()); in testX2Y2()
|