Home
last modified time | relevance | path

Searched refs:y2 (Results 1 – 21 of 21) 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
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 …]
DSelectionHandles.java93 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()
DImageUtils.java241 int x1, y1, x2, y2; in crop() local
246 y2 = initialCrop.y + initialCrop.h; in crop()
251 y2 = image.getHeight(); in crop()
255 if (x1 == x2 || y1 == y2) { in crop()
269 topEdge: for (; y1 < y2; y1++) { in crop()
284 for (int y = y1; y < y2; y++) { in crop()
293 for (int y = y1; y < y2; y++) { in crop()
301 bottomEdge: for (; y2 > y1; y2--) { in crop()
303 if (!filter.crop(image, x, y2 - 1)) { in crop()
310 if (x1 == 0 && y1 == 0 && x2 == image.getWidth() && y2 == image.getHeight()) { in crop()
[all …]
DSelectionOverlay.java207 int y2 = r.y2() + 1; in paintSelection() local
213 y2 -= insets.bottom; in paintSelection()
216 gc.drawRect(x1, y1, x2, y2); in paintSelection()
DResizeGesture.java198 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()
DLintTooltipManager.java167 int y2 = b.y + b.height; in computeNodes() local
170 || p.y < y2 - layoutIconSize - slop in computeNodes()
171 || p.y > y2 + slop) { in computeNodes()
DIncludeOverlay.java85 int y2 = bottomRight.y; in paint() local
87 gc.fillRectangle(x1, y1, x2 - x1, y2 - y1); in paint()
DPreviewIconFactory.java332 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()
DPaletteControl.java1036 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/
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/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/grid/
DGridLayoutPainter.java71 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 …]
DGridDropHandler.java99 int y2 = y1 + h; in computeMatches() local
101 if (x2 < bounds.x || y2 < bounds.y || x1 > bounds.x2() || y1 > bounds.y2()) { in computeMatches()
112 addCenterColumnMatch(bounds, x1, y1, x2, y2, columnMatches, max); in computeMatches()
119 addBottomMatch(y2, rowMatches, max); in computeMatches()
127 addRowGapMatch(bounds, y1, y2, rowMatches, max); in computeMatches()
136 y2 = y1 + h; in computeMatches()
202 if (y1 >= bounds.y2()) { in computeMatches()
291 private void addCenterColumnMatch(Rect bounds, int x1, int y1, int x2, int y2, in addCenterColumnMatch() argument
293 Collection<INode> intersectsRow = mGrid.getIntersectsRow(y1, y2); in addCenterColumnMatch()
320 private void addBottomMatch(int y2, List<GridMatch> rowMatches, int max) { in addBottomMatch() argument
[all …]
DGridModel.java754 mTop[actualRowCount] = layoutBounds.y2(); in assignCellBoundsFromBounds()
801 mTop[i] = layoutBounds.y2(); in assignCellBoundsFromBounds()
834 int y2 = bounds.y2(); in initializeMaxBounds() local
845 y2 -= insets.bottom; in initializeMaxBounds()
852 if (mMaxBottom[targetRow] < y2 in initializeMaxBounds()
854 mMaxBottom[targetRow] = y2; in initializeMaxBounds()
1196 } else if (split && view.node.getBounds().y2() > y) { in addRow()
1459 public Collection<INode> getIntersectsRow(int y1, int y2) { in getIntersectsRow() argument
1465 if (bounds.y2() >= y1 && bounds.y <= y2) { in getIntersectsRow()
1792 if (row > newRow || (row == newRow && view.node.getBounds().y2() > y)) { in splitRow()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/relative/
DMoveHandler.java197 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()
DConstraintPainter.java328 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 …]
DGuidelineHandler.java330 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()
DResizeHandler.java198 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/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/
DBaseLayoutRule.java788 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(),
DGridLayoutRule.java440 int endRow = grid.getRow(state.bounds.y2()); in paintResizeFeedback()
570 int endRow = grid.getRow(state.bounds.y2()); in computeResizeSpans()
/sdk/testapps/gridlayoutTest/v7-gridlayout/libs/
Dandroid-support-v7-gridlayout.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/ ...
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/api/
DRectTest.java299 assertEquals(6, r.y2()); in testX2Y2()