Home
last modified time | relevance | path

Searched refs:imageWidth (Results 1 – 9 of 9) sorted by relevance

/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DImageControl.java96 int imageWidth = imageRect.width; in fitToWidth() local
97 if (imageWidth <= width) { in fitToWidth()
102 mScale = width / (float) imageWidth; in fitToWidth()
184 int imageWidth = imageRect.width; in onPaint() local
185 int destWidth = imageWidth; in onPaint()
197 gc.drawImage(mImage, 0, 0, imageWidth, imageHeight, rect.x + mLeftMargin, rect.y in onPaint()
DImageOverlay.java226 int imageWidth = (mPreScaledImage == null) ? 0 in paint() local
229 if (mPreScaledImage == null || imageWidth != hi.getScaledImgSize()) { in paint()
DLayoutCanvas.java380 int imageWidth = imageData.width; in updateScrollBars() local
383 int fullWidth = imageWidth; in updateScrollBars()
392 clientWidth = imageWidth; in updateScrollBars()
412 mHScale.setSize(imageWidth, fullWidth, clientWidth); in updateScrollBars()
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/widgets/
DImageCanvas.java118 int imageWidth, imageHeight; in updateScrollBars() local
120 imageWidth = mImage.getBounds().width; in updateScrollBars()
123 imageWidth = client.width; in updateScrollBars()
127 mHorizontalScrollBar.setMaximum(imageWidth); in updateScrollBars()
129 mHorizontalScrollBar.setThumb(Math.min(imageWidth, client.width)); in updateScrollBars()
132 int hPage = imageWidth - client.width; in updateScrollBars()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/properties/
DBooleanXmlPropertyEditor.java72 int imageWidth = image.getBounds().width + 2; in paint() local
73 width -= imageWidth; in paint()
77 x += imageWidth; in paint()
DXmlPropertyEditor.java244 int imageWidth = awtImage.getWidth(); in paint() local
248 if (imageWidth > maxWidth || imageHeight > height) { in paint()
250 int scaledWidth = (int) (imageWidth * scale); in paint()
252 scale = maxWidth / (double) imageWidth; in paint()
280 int imageWidth = imageData.width; in paint() local
282 if (imageWidth > 0 && imageHeight > 0) { in paint()
284 int delta = imageWidth + SAMPLE_MARGIN; in paint()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/draw9patch/ui/
DStretchesViewer.java146 int imageWidth = mNinePatchedImage.getWidth(); in setScale() local
149 mHorizontal.setSize(imageWidth * scale, imageHeight); in setScale()
150 mVertical.setSize(imageWidth, imageHeight * scale); in setScale()
151 mBoth.setSize(imageWidth * scale, imageHeight * scale); in setScale()
DImageViewer.java410 int imageWidth = getZoomedPixelSize(mNinePatchedImage.getWidth() + 1); in calcScrollBarSettings() local
417 int horizontalScroll = imageWidth - (screenWidth - verticalBarSize); in calcScrollBarSettings()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DSwtUtilsTest.java328 private Image createSampleImage(int imageWidth, int imageHeight) { in createSampleImage() argument
332 ImageData data = new ImageData(imageWidth, imageHeight, 32, new PaletteData(0x00FF0000, in createSampleImage()
335 for (int x = 0; x < imageWidth; x++) { in createSampleImage()