Home
last modified time | relevance | path

Searched refs:boundingBox (Results 1 – 3 of 3) sorted by relevance

/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DSwtUtils.java259 List<Rectangle> rectangles, Rectangle boundingBox, double scale, byte alpha) { in drawRectangles() argument
261 if (rectangles.size() == 0 || boundingBox == null || boundingBox.isEmpty()) { in drawRectangles()
266 int destWidth = (int) (scale * boundingBox.width); in drawRectangles()
267 int destHeight = (int) (scale * boundingBox.height); in drawRectangles()
274 int dx1 = bounds.x - boundingBox.x; in drawRectangles()
275 int dy1 = bounds.y - boundingBox.y; in drawRectangles()
DGestureManager.java855 Rectangle boundingBox = ImageUtils.getBoundingRectangle(rectangles); in dragStart() local
857 e.image = SwtUtils.drawRectangles(image, rectangles, boundingBox, scale, in dragStart()
863 int deltaX = (int) (scale * (boundingBox.x - p.x)); in dragStart()
864 int deltaY = (int) (scale * (boundingBox.y - p.y)); in dragStart()
871 int width = (int) (scale * boundingBox.width); in dragStart()
872 int height = (int) (scale * boundingBox.height); in dragStart()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DImageUtilsTest.java220 List<Rectangle> rectangles, Rectangle boundingBox, double scale) { in drawRectangles() argument
241 if (boundingBox == null) { in drawRectangles()
245 int destWidth = (int) (scale * boundingBox.width); in drawRectangles()
246 int destHeight = (int) (scale * boundingBox.height); in drawRectangles()
252 int dx1 = bounds.x - boundingBox.x; in drawRectangles()
253 int dy1 = bounds.y - boundingBox.y; in drawRectangles()