Home
last modified time | relevance | path

Searched refs:x2 (Results 1 – 22 of 22) 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
252 x2 = mHScale.translate(x2); 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
270 int w = mHScale.scale(x2 - x1); in drawRect()
292 public void fillRect(int x1, int y1, int x2, int y2) { in fillRect() argument
297 int w = mHScale.scale(x2 - x1); in fillRect()
320 public void drawOval(int x1, int y1, int x2, int y2) { in drawOval() argument
325 int w = mHScale.scale(x2 - x1); in drawOval()
344 public void fillOval(int x1, int y1, int x2, int y2) { in fillOval() argument
[all …]
DSelectionHandles.java92 int x2 = x1 + w; in createHandles() local
98 x2 -= insets.right; in createHandles()
103 int mx = (x1 + x2) / 2; in createHandles()
116 mHandles.add(new SelectionHandle(x2, my, Position.RIGHT_MIDDLE)); in createHandles()
118 mHandles.add(new SelectionHandle(x2, y1, Position.TOP_RIGHT)); in createHandles()
121 mHandles.add(new SelectionHandle(x2, y2, Position.BOTTOM_RIGHT)); in createHandles()
DImageUtils.java241 int x1, y1, x2, y2; in crop() local
245 x2 = initialCrop.x + initialCrop.w; in crop()
250 x2 = image.getWidth(); in crop()
255 if (x1 == x2 || y1 == y2) { in crop()
270 for (int x = x1; x < x2; x++) { in crop()
283 leftEdge: for (; x1 < x2; x1++) { in crop()
292 rightEdge: for (; x2 > x1; x2--) { in crop()
294 if (!filter.crop(image, x2 - 1, y)) { in crop()
302 for (int x = x1; x < x2; x++) { in crop()
310 if (x1 == 0 && y1 == 0 && x2 == image.getWidth() && y2 == image.getHeight()) { in crop()
[all …]
DSelectionOverlay.java206 int x2 = r.x2() + 1; in paintSelection() local
211 x2 -= insets.right; in paintSelection()
216 gc.drawRect(x1, y1, x2, y2); in paintSelection()
DResizeGesture.java173 int x2 = b.x + b.w; in getNewBounds() local
175 if (nx1 <= x2) { in getNewBounds()
177 w = x2 - x; in getNewBounds()
180 x = x2; in getNewBounds()
DLintTooltipManager.java166 int x2 = b.x + b.width; in computeNodes() local
168 if (p.x < x2 - layoutIconSize - slop in computeNodes()
169 || p.x > x2 + slop in computeNodes()
DIncludeOverlay.java84 int x2 = bottomRight.x; in paint() local
87 gc.fillRectangle(x1, y1, x2 - x1, y2 - y1); in paint()
DPreviewIconFactory.java331 int x2 = parentX + info.getRight(); in render() local
333 if (x1 != x2 && y1 != y2) { in render()
334 savePreview(file, image, x1, y1, x2, y2); in render()
DPaletteControl.java1035 int x2 = viewInfo.getRight(); 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.java67 gc.drawLine(b.x, y, b.x2(), y); in paintStructure()
94 int x2 = b.x2() - MARGIN_SIZE; in paintGrid() local
95 for (int x = x1; x < x2; x += GRID_SIZE) { in paintGrid()
202 gc.drawLine(b.x, y1, b.x2(), y1); in paintFreeFormDropFeedback()
203 gc.drawLine(b.x, y2, b.x2(), y2); in paintFreeFormDropFeedback()
210 gc.drawLine(b.x, y, b.x2(), y ); in paintFreeFormDropFeedback()
217 int x2; in paintFreeFormDropFeedback() local
220 x2 = columnMatch.matchedLine - columnMatch.margin; in paintFreeFormDropFeedback()
224 x2 = columnMatch.matchedLine + columnMatch.margin; in paintFreeFormDropFeedback()
227 gc.drawLine(x2, b.y, x2, b.y2()); in paintFreeFormDropFeedback()
[all …]
DGridDropHandler.java98 int x2 = x1 + w; in computeMatches() local
101 if (x2 < bounds.x || y2 < bounds.y || x1 > bounds.x2() || y1 > bounds.y2()) { in computeMatches()
111 addRightSideMatch(x2, columnMatches, max); in computeMatches()
112 addCenterColumnMatch(bounds, x1, y1, x2, y2, columnMatches, max); in computeMatches()
126 addColumnGapMatch(bounds, x1, x2, columnMatches, max); in computeMatches()
135 x2 = x1 + w; in computeMatches()
199 if (x1 >= bounds.x2()) { in computeMatches()
274 private void addRightSideMatch(int x2, List<GridMatch> columnMatches, int max) { in addRightSideMatch() argument
277 int columnRight = (mGrid.getViewCount() == 0) ? 0 : mGrid.getClosestColumn(x2); in addRightSideMatch()
278 int rightDistance = mGrid.getColumnDistance(columnRight, x2); in addRightSideMatch()
[all …]
DGridModel.java748 mLeft[actualColumnCount] = layoutBounds.x2(); in assignCellBoundsFromBounds()
787 mLeft[i] = layoutBounds.x2(); in assignCellBoundsFromBounds()
833 int x2 = bounds.x2(); in initializeMaxBounds() local
844 x2 -= insets.right; in initializeMaxBounds()
848 if (mMaxRight[targetColumn] < x2 in initializeMaxBounds()
850 mMaxRight[targetColumn] = x2; in initializeMaxBounds()
997 if (split && !columnSpanSet && view.node.getBounds().x2() > x) { in addColumn()
1691 if (column > newColumn || (column == newColumn && view.node.getBounds().x2() > x)) { in splitColumn()
1715 || endColumn == newColumn && (view.node.getBounds().x2() > x in splitColumn()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/relative/
DMoveHandler.java194 if (mBounds.x2() > layoutBounds.x2()) { in updateMove()
195 mBounds.x -= mBounds.x2() - layoutBounds.x2(); in updateMove()
210 Segment edge = new Segment(b.y, b.x, b.x2(), null, null, TOP, NO_MARGIN); in updateMove()
212 edge = new Segment(b.y2(), b.x, b.x2(), null, null, BOTTOM, NO_MARGIN); in updateMove()
217 edge = new Segment(b.x2(), b.y, b.y2(), null, null, RIGHT, NO_MARGIN); in updateMove()
223 edge = new Segment(b.centerY(), b.x, b.x2(), null, null, CENTER_HORIZONTAL, NO_MARGIN); in updateMove()
231 edge = new Segment(b.y + baseline, b.x, b.x2(), firstNode, null, BASELINE, in updateMove()
239 edge = new Segment(offsetY + baseline, b.x, b.x2(), null, null, BASELINE, in updateMove()
DConstraintPainter.java328 int x1, y1, x2, y2; in paintCornerConstraint() local
340 x2 = targetBounds.x + 1 * targetBounds.w / 4; in paintCornerConstraint()
342 x2 = targetBounds.x + 3 * targetBounds.w / 4; in paintCornerConstraint()
351 graphics.drawArrow(x1, y1, x2, y2, ARROW_SIZE); in paintCornerConstraint()
399 targetBounds.x2(), targetY + PARENT_RECT_SIZE / 2); in paintVerticalConstraint()
416 int minRight = Math.min(sourceBounds.x2(), targetBounds.x2()); in paintVerticalConstraint()
419 if (center > sourceBounds.x && center < sourceBounds.x2()) { in paintVerticalConstraint()
445 graphics.drawLine(targetBounds.x, sharedY, targetBounds.x2(), sharedY); in paintVerticalConstraint()
460 graphics.drawLine(targetBounds.x, sharedY, targetBounds.x2(), sharedY); in paintVerticalConstraint()
546 endX = sourceBounds.x2(); in paintVerticalConstraint()
[all …]
DGuidelineHandler.java323 mHorizontalEdges.add(new Segment(b.y, b.x, b.x2(), node, id, TOP, WITHOUT_MARGIN)); in addBounds()
324 mHorizontalEdges.add(new Segment(b.y - margins.top, b.x, b.x2(), node, id, in addBounds()
327 mHorizontalEdges.add(new Segment(b.y, b.x, b.x2(), node, id, TOP, NO_MARGIN)); in addBounds()
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()
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()
366 mCenterHorizEdges.add(new Segment(b.centerY(), b.x, b.x2(), in addCenter()
[all …]
DResizeHandler.java196 hEdge = new Segment(b.y, b.x, b.x2(), child, childId, mHorizontalEdgeType, NO_MARGIN); in updateResize()
198 hEdge = new Segment(b.y2(), b.x, b.x2(), child, childId, mHorizontalEdgeType, in updateResize()
207 vEdge = new Segment(b.x2(), b.y, b.y2(), child, childId, mVerticalEdgeType, NO_MARGIN); in updateResize()
DGuidelinePainter.java93 gc.drawLine(state.mBounds.x, y, state.mBounds.x2(), y); in paint()
/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.adt/src/com/android/ide/common/layout/
DBaseLayoutRule.java789 newBounds.x2(),
800 state.verticalFillSegment = new Segment(parentBounds.x2(), newBounds.y,
803 if (Math.abs(newBounds.x2() - parentBounds.x2()) < getMaxMatchDistance()) {
805 newBounds.w = parentBounds.x2() - newBounds.x;
DGridLayoutRule.java436 int endColumn = grid.getColumn(state.bounds.x2()); in paintResizeFeedback()
566 int endColumn = grid.getColumn(state.bounds.x2()); in computeResizeSpans()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/api/
DRectTest.java298 assertEquals(4, r.x2()); in testX2Y2()