/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 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 …]
|
D | SelectionHandles.java | 92 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()
|
D | ImageUtils.java | 241 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 …]
|
D | SelectionOverlay.java | 206 int x2 = r.x2() + 1; in paintSelection() local 211 x2 -= insets.right; in paintSelection() 216 gc.drawRect(x1, y1, x2, y2); in paintSelection()
|
D | ResizeGesture.java | 173 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()
|
D | LintTooltipManager.java | 166 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()
|
D | IncludeOverlay.java | 84 int x2 = bottomRight.x; in paint() local 87 gc.fillRectangle(x1, y1, x2 - x1, y2 - y1); in paint()
|
D | PreviewIconFactory.java | 331 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()
|
D | PaletteControl.java | 1035 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/ |
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 | 67 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 …]
|
D | GridDropHandler.java | 98 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 …]
|
D | GridModel.java | 748 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/ |
D | MoveHandler.java | 194 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()
|
D | ConstraintPainter.java | 328 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 …]
|
D | GuidelineHandler.java | 323 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 …]
|
D | ResizeHandler.java | 196 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()
|
D | GuidelinePainter.java | 93 gc.drawLine(state.mBounds.x, y, state.mBounds.x2(), y); in paint()
|
/sdk/testapps/gridlayoutTest/v7-gridlayout/libs/ |
D | android-support-v7-gridlayout.jar | META-INF/
META-INF/MANIFEST.MF
android/
android/support/
android/ ... |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/ |
D | BaseLayoutRule.java | 789 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;
|
D | GridLayoutRule.java | 436 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/ |
D | RectTest.java | 298 assertEquals(4, r.x2()); in testX2Y2()
|