Home
last modified time | relevance | path

Searched refs:y1 (Results 1 – 17 of 17) sorted by relevance

/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DGCWrapper.java247 public void drawLine(int x1, int y1, int x2, int y2) { in drawLine() argument
251 y1 = mVScale.translate(y1); 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
269 int y = mVScale.translate(y1); in drawRect()
271 int h = mVScale.scale(y2 - y1); in drawRect()
292 public void fillRect(int x1, int y1, int x2, int y2) { in fillRect() argument
296 int y = mVScale.translate(y1); in fillRect()
298 int h = mVScale.scale(y2 - y1); in fillRect()
320 public void drawOval(int x1, int y1, int x2, int y2) { in drawOval() argument
[all …]
DSelectionHandles.java89 int y1 = r.y; in createHandles() local
93 int y2 = y1 + h; in createHandles()
99 y1 += insets.top; in createHandles()
104 int my = (y1 + y2) / 2; in createHandles()
109 mHandles.add(new SelectionHandle(x1, y1, Position.TOP_LEFT)); in createHandles()
118 mHandles.add(new SelectionHandle(x2, y1, Position.TOP_RIGHT)); in createHandles()
125 mHandles.add(new SelectionHandle(mx, y1, Position.TOP_MIDDLE)); in createHandles()
DImageUtils.java236 int x1, y1, x2, y2; in crop() local
239 y1 = initialCrop.y; in crop()
244 y1 = 0; in crop()
250 if (x1 == x2 || y1 == y2) { in crop()
264 topEdge: for (; y1 < y2; y1++) { in crop()
266 if (!filter.crop(image, x, y1)) { in crop()
272 if (y1 == image.getHeight()) { 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()
[all …]
DIncludeOverlay.java83 int y1 = topLeft.y; in paint() local
87 gc.fillRectangle(x1, y1, x2 - x1, y2 - y1); in paint()
DSelectionOverlay.java205 int y1 = r.y; in paintSelection() local
212 y1 += insets.top; in paintSelection()
216 gc.drawRect(x1, y1, x2, y2); in paintSelection()
DPreviewIconFactory.java330 int y1 = parentY + info.getTop(); in render() local
333 if (x1 != x2 && y1 != y2) { in render()
334 savePreview(file, image, x1, y1, x2, y2); in render()
DPaletteControl.java1037 int y1 = viewInfo.getTop(); in renderPreview() local
1038 initialCrop = new Rect(x1, y1, x2 - x1, y2 - y1); in renderPreview()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/grid/
DGridDropHandler.java84 int y1 = p.y; in computeMatches() local
92 y1 += dragBounds.y; in computeMatches()
98 int y2 = y1 + h; in computeMatches()
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()
114 int row = (mGrid.getViewCount() == 0) ? 0 : mGrid.getClosestRow(y1); in computeMatches()
116 addTopMatch(y1, rowMatches, max, row, rowY); in computeMatches()
117 addBaselineMatch(feedback.dragBaseline, y1, rowMatches, max, row, rowY); in computeMatches()
126 addRowGapMatch(bounds, y1, y2, rowMatches, max); in computeMatches()
132 y1 = ((y1 - MARGIN_SIZE - bounds.y) / GRID_SIZE) * GRID_SIZE in computeMatches()
[all …]
DGridLayoutPainter.java90 int y1 = b.y + MARGIN_SIZE; in paintGrid() local
92 for (int y = y1; y < y2; y += GRID_SIZE) { in paintGrid()
192 int y1; in paintFreeFormDropFeedback() local
195 y1 = offsetY + y - 1; in paintFreeFormDropFeedback()
199 y1 = bounds.h + offsetY + y - 1; in paintFreeFormDropFeedback()
202 gc.drawLine(b.x, y1, b.x2(), y1); in paintFreeFormDropFeedback()
205 centerX - 3, y1 + (y2 - y1 - 16) / 2); in paintFreeFormDropFeedback()
248 int y1 = dragBounds.y + offsetY + feedback.dragBaseline; in paintFreeFormDropFeedback() local
249 gc.drawLine(x1, y1, x1 + dragBounds.w, y1); in paintFreeFormDropFeedback()
DGridModel.java1435 public Collection<INode> getIntersectsRow(int y1, int y2) { in getIntersectsRow() argument
1441 if (bounds.y2() >= y1 && bounds.y <= y2) { in getIntersectsRow()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/
DTestGraphics.java60 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/rule_api/src/com/android/ide/common/api/
DIGraphics.java43 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
/sdk/traceview/src/com/android/traceview/
DTimeLineView.java617 int y1 = rd.mRank * rowYSpace - mScrollOffsetY; in draw() local
618 gcImage.fillRectangle(0, y1, dim.x, rowYSpace); in draw()
626 int y1 = rd.mRank * rowYSpace + offsetY; in draw() local
629 gcImage.drawString(rd.mName, x1, y1, true); in draw()
635 int y1 = mMouseRow * rowYSpace - mScrollOffsetY; in draw() local
636 gcImage.drawRectangle(0, y1, dim.x, rowYSpace); in draw()
826 int y1 = mMethodStartY; in drawMethod() local
829 gc.fillRectangle(x1, y1, width, mSmallFontHeight); in drawMethod()
831 gc.drawString(mMethodName, x1, y1, true); in drawMethod()
840 int y1 = mDetailsStartY; in drawDetails() local
[all …]
/sdk/hierarchyviewer2/libs/hierarchyviewerlib/src/com/android/hierarchyviewerlib/ui/
DLayoutViewer.java159 int y1 = Math.max(top, clipY); in updateSelection() local
162 clipY = y1; in updateSelection()
164 clipHeight = y2 - y1; in updateSelection()
270 int y1 = Math.max(parentClipping.y, top); in paintRecursive() local
277 if (x2 <= x1 || y2 <= y1) { in paintRecursive()
280 gc.setClipping(x1, y1, x2 - x1, y2 - y1); in paintRecursive()
DTreeViewOverview.java269 float y1 = in paintRecursive() local
274 float cy1 = y1; in paintRecursive()
277 connectionPath.moveTo(x1, y1); in paintRecursive()
DTreeView.java891 float y1 = (float) node.top + LINE_PADDING + childSpacing * i + childSpacing / 2; in paintRecursive() local
895 float cy1 = y1; in paintRecursive()
898 connectionPath.moveTo(x1, y1); in paintRecursive()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/relative/
DConstraintPainter.java328 int x1, y1, x2, y2; in paintCornerConstraint() local
335 y1 = sourceBounds.y + 1 * sourceBounds.h / 4; in paintCornerConstraint()
337 y1 = sourceBounds.y + 3 * sourceBounds.h / 4; in paintCornerConstraint()
351 graphics.drawArrow(x1, y1, x2, y2, ARROW_SIZE); in paintCornerConstraint()