Home
last modified time | relevance | path

Searched refs:scale (Results 1 – 25 of 47) sorted by relevance

12

/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/draw9patch/ui/
DStatusPanel.java180 mScaleControl.scale.setMinimum(SCALE_MIN); in buildScaleControl()
181 mScaleControl.scale.setMaximum(SCALE_MAX); in buildScaleControl()
182 mScaleControl.scale.setSelection(2); in buildScaleControl()
183 mScaleControl.scale.addSelectionListener(new SelectionAdapter() { in buildScaleControl()
188 Scale scale = (Scale) event.widget; in buildScaleControl()
189 mListener.scaleChanged(scale.getSelection()); in buildScaleControl()
199 mZoomControl.scale.setMinimum(ZOOM_MIN); in buildZoomControl()
200 mZoomControl.scale.setMaximum(ZOOM_MAX - ZOOM_MIN); in buildZoomControl()
201 mZoomControl.scale.setSelection(400); in buildZoomControl()
202 mZoomControl.scale.addSelectionListener(new SelectionAdapter() { in buildZoomControl()
[all …]
DStretchesViewer.java140 public void setScale(int scale) { in setScale() argument
142 System.out.println("scale = " + scale); in setScale()
145 mScale = scale; in setScale()
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()
DImageEditorPanel.java69 public void scaleChanged(int scale) { in scaleChanged() argument
70 mStretchesViewer.setScale(scale); in scaleChanged()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DGCWrapper.java270 int w = mHScale.scale(x2 - x1); in drawRect()
271 int h = mVScale.scale(y2 - y1); in drawRect()
286 int w = mHScale.scale(r.w); in drawRect()
287 int h = mVScale.scale(r.h); in drawRect()
297 int w = mHScale.scale(x2 - x1); in fillRect()
298 int h = mVScale.scale(y2 - y1); in fillRect()
313 int w = mHScale.scale(r.w); in fillRect()
314 int h = mVScale.scale(r.h); in fillRect()
325 int w = mHScale.scale(x2 - x1); in drawOval()
326 int h = mVScale.scale(y2 - y1); in drawOval()
[all …]
DCanvasTransform.java82 public void setScale(double scale) { in setScale() argument
83 if (mScale != scale) { in setScale()
84 mScale = scale; in setScale()
204 public int scale(int canwasW) { in scale() method in CanvasTransform
DSwtUtils.java259 List<Rectangle> rectangles, Rectangle boundingBox, double scale, byte alpha) { in drawRectangles() argument
266 int destWidth = (int) (scale * boundingBox.width); in drawRectangles()
267 int destHeight = (int) (scale * boundingBox.height); in drawRectangles()
279 dx1 *= scale; in drawRectangles()
280 dy1 *= scale; in drawRectangles()
281 dx2 *= scale; in drawRectangles()
282 dy2 *= scale; in drawRectangles()
289 if (scale == 1.0d) { in drawRectangles()
DSelectionOverlay.java143 double scale = mCanvas.getScale(); in paintHints() local
146 x = (int) (b.x + 3 / scale); in paintHints()
147 y = (int) (b.y + b.h + 6 / scale); in paintHints()
149 x = (int) (b.x + b.w + 6 / scale); in paintHints()
150 y = (int) (b.y + 3 / scale); in paintHints()
DPaletteControl.java628 float scale = 1.0f; in createItem() local
630 scale = 0.75f; in createItem()
632 scale = 0.5f; in createItem()
637 scale = scale / 2; in createItem()
640 imageControl.setScale(scale); in createItem()
768 double scale = mEditor.getCanvasControl().getScale(); in dragStart() local
769 int scaledWidth = (int) (scale * width); in dragStart()
770 int scaledHeight = (int) (scale * height); in dragStart()
900 double scale = mEditor.getCanvasControl().getScale(); in createDragImage() local
901 event.offsetX = (int) (scale * mImageLayoutBounds.width / 2); in createDragImage()
[all …]
DEmptyViewsOverlay.java87 int w = mHScale.scale(r.width); in paint()
88 int h = mVScale.scale(r.height); in paint()
DOutlineOverlay.java92 int w = mHScale.scale(r.width); in drawOutline()
93 int h = mVScale.scale(r.height); in drawOutline()
DRenderPreview.java244 public void setScale(double scale) { in setScale() argument
246 mScale = scale; in setScale()
673 double scale = getWidth() / (double) image.getWidth(); in createThumbnail() local
680 if (scale < 1.0) { in createThumbnail()
682 image = ImageUtils.scale(image, scale, scale, in createThumbnail()
690 image = ImageUtils.scale(image, scale, scale, in createThumbnail()
1160 double scale = getScale(screenWidth, screenHeight); in updateSize() local
1161 width = (int) (screenWidth * scale); in updateSize()
1162 height = (int) (screenHeight * scale); in updateSize()
DLayoutCanvas.java815 void setScale(double scale, boolean redraw) { in setScale() argument
816 if (scale <= 0.0) { in setScale()
817 scale = 1.0; in setScale()
820 if (scale == getScale()) { in setScale()
824 mHScale.setScale(scale); in setScale()
825 mVScale.setScale(scale); in setScale()
831 String zoomValue = (Math.abs(scale - 1.0) < 0.0001) ? null : Double.toString(scale); in setScale()
901 double scale = Math.min(hScale, vScale); in setFitScale() local
904 scale = Math.min(1.0, scale); in setFitScale()
907 if (!allowZoomIn && scale > getScale()) { in setFitScale()
[all …]
DLintOverlay.java92 int w = mHScale.scale(bounds.width); in paint()
93 int h = mVScale.scale(bounds.height); in paint()
DHoverOverlay.java150 int w = mHScale.scale(mHoverRect.width); in paint()
151 int h = mVScale.scale(mHoverRect.height); in paint()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/testdata/
Danimator1-expected-completion60.txt2 scaleX : scale of the view in the x direction.
3 scaleY : scale of the view in the y direction.
Danim1-expected-completion53.txt4 <scale />
Danim1-expected-completion54.txt4 <scale />
Ddrawable1-expected-completion47.txt10 <scale />
Ddrawable1-expected-completion50.txt10 <scale />
/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
245 int destWidth = (int) (scale * boundingBox.width); in drawRectangles()
246 int destHeight = (int) (scale * boundingBox.height); in drawRectangles()
257 dx1 *= scale; in drawRectangles()
258 dy1 *= scale; in drawRectangles()
259 dx2 *= scale; in drawRectangles()
260 dy2 *= scale; in drawRectangles()
329 BufferedImage scaled = ImageUtils.scale(image, 0.5, 0.5); in testScaleImage()
336 scaled = ImageUtils.scale(image, 2.0, 2.0); in testScaleImage()
344 scaled = ImageUtils.scale(image, 0.25, 0.25); in testScaleImage()
[all …]
DPointTestCases.java86 public TestCanvasTransform(ScrollBar scrollBar, float scale, float translate) { in TestCanvasTransform() argument
88 this.mScale = scale; in TestCanvasTransform()
DSwtUtilsTest.java234 double scale = 1.0; in testCrop1() local
240 scale, alpha); in testCrop1()
272 double scale = 1.0; in testCrop2() local
279 scale, alpha); in testCrop2()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/ui/
DResourcePreviewHelper.java158 double scale = Math.min(xScale, yScale); in updatePreview() local
159 image = ImageUtils.scale(image, scale, scale); in updatePreview()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/
DAbsoluteLayoutRule.java198 double scale = feedback.dipScale; in onDropped()
199 if (scale != 1.0) { in onDropped()
200 x *= scale; in onDropped()
201 y *= scale; in onDropped()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/properties/
DXmlPropertyEditor.java249 double scale = height / (double) imageHeight; in paint() local
250 int scaledWidth = (int) (imageWidth * scale); in paint()
252 scale = maxWidth / (double) imageWidth; in paint()
254 awtImage = ImageUtils.scale(awtImage, scale, in paint()
255 scale); in paint()

12