Home
last modified time | relevance | path

Searched refs:dragBounds (Results 1 – 13 of 13) sorted by relevance

/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/
DRelativeLayoutRuleTest.java29 protected INode dragInto(Rect dragBounds, Point dragPoint, Point secondDragPoint, in dragInto() argument
43 return super.dragInto(new RelativeLayoutRule(), layout, dragBounds, dragPoint, in dragInto()
47 protected INode dragInto(Rect dragBounds, Point dragPoint, Point secondDragPoint, in dragInto() argument
57 return dragInto(dragBounds, dragPoint, secondDragPoint, insertIndex, in dragInto()
DFrameLayoutRuleTest.java26 protected void dragInto(Rect dragBounds, Point dragPoint, int insertIndex, int currentIndex, in dragInto() argument
39 super.dragInto(new FrameLayoutRule(), layout, dragBounds, dragPoint, null, in dragInto()
DAbsoluteLayoutRuleTest.java28 protected INode dragInto(Rect dragBounds, Point dragPoint, int insertIndex, int currentIndex, in dragInto() argument
41 return super.dragInto(new AbsoluteLayoutRule(), layout, dragBounds, dragPoint, null, in dragInto()
DLinearLayoutRuleTest.java46 protected void dragIntoEmpty(Rect dragBounds) { in dragIntoEmpty() argument
47 boolean haveBounds = dragBounds.isValid(); in dragIntoEmpty()
56 "android.widget.Button", dragBounds).id("@+id/Button01")); in dragIntoEmpty()
104 protected INode dragInto(boolean vertical, Rect dragBounds, Point dragPoint, in dragInto() argument
121 return super.dragInto(new LinearLayoutRule(), linearLayout, dragBounds, dragPoint, null, in dragInto()
DLayoutTestBase.java68 protected INode dragInto(IViewRule rule, INode targetNode, Rect dragBounds, Point dropPoint, in dragInto() argument
76 "android.widget.Button", dragBounds).id(draggedButtonId)); in dragInto()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/
DAbsoluteLayoutRule.java111 int offsetX = x - be.x + (feedback.dragBounds != null ? feedback.dragBounds.x : 0); in drawFeedback()
112 int offsetY = y - be.y + (feedback.dragBounds != null ? feedback.dragBounds.y : 0); in drawFeedback()
179 int deltaX = (feedback.dragBounds != null ? feedback.dragBounds.x : 0); in onDropped()
180 int deltaY = (feedback.dragBounds != null ? feedback.dragBounds.y : 0); in onDropped()
DRelativeLayoutRule.java164 int offsetX = p.x + (feedback.dragBounds != null ? feedback.dragBounds.x : 0); in onDropMove()
165 int offsetY = p.y + (feedback.dragBounds != null ? feedback.dragBounds.y : 0); in onDropMove()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/grid/
DGridLayoutPainter.java169 Rect dragBounds = first.getBounds(); in paintFreeFormDropFeedback() local
173 offsetY -= dragBounds.h; in paintFreeFormDropFeedback()
178 offsetX -= dragBounds.w; in paintFreeFormDropFeedback()
180 offsetX -= dragBounds.w / 2; in paintFreeFormDropFeedback()
247 int x1 = dragBounds.x + offsetX; in paintFreeFormDropFeedback()
248 int y1 = dragBounds.y + offsetY + feedback.dragBaseline; in paintFreeFormDropFeedback()
249 gc.drawLine(x1, y1, x1 + dragBounds.w, y1); in paintFreeFormDropFeedback()
295 Rect dragBounds = first.getBounds(); in paintGridModeDropFeedback() local
296 int offsetX = cellBounds.x - dragBounds.x; in paintGridModeDropFeedback()
297 int offsetY = cellBounds.y - dragBounds.y; in paintGridModeDropFeedback()
[all …]
DGridDropHandler.java87 Rect dragBounds = feedback.dragBounds; in computeMatches() local
88 int w = dragBounds != null ? dragBounds.w : 0; in computeMatches()
89 int h = dragBounds != null ? dragBounds.h : 0; in computeMatches()
91 if (dragBounds != null) { in computeMatches()
94 x1 += dragBounds.x; in computeMatches()
95 y1 += dragBounds.y; in computeMatches()
212 && dragBounds != null && dragBounds.w < cellWidth - 10) { in computeMatches()
223 && dragBounds != null && dragBounds.h < cellHeight - 10) { in computeMatches()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DGlobalCanvasDragInfo.java161 public void setDragBounds(Rect dragBounds) { in setDragBounds() argument
162 mDragBounds = dragBounds; in setDragBounds()
DMoveGesture.java552 Rect dragBounds = null; in updateDropFeedback() local
563 dragBounds = new Rect(x, y, w, h); in updateDropFeedback()
569 df.dragBounds = dragBounds; in updateDropFeedback()
DGestureManager.java870 Rect dragBounds = null; in dragStart() local
873 dragBounds = new Rect(deltaX, deltaY, width, height); in dragStart()
874 dragInfo.setDragBounds(dragBounds); in dragStart()
DPaletteControl.java759 Rect dragBounds = null; in dragStart() local
773 dragBounds = new Rect(x, y, scaledWidth, scaledHeight); in dragStart()
794 dragInfo.setDragBounds(dragBounds); in dragStart()