Home
last modified time | relevance | path

Searched refs:mScale (Results 1 – 6 of 6) sorted by relevance

/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DCanvasTransform.java56 private double mScale; field in CanvasTransform
64 mScale = 1.0; in CanvasTransform()
83 if (mScale != scale) { in setScale()
84 mScale = scale; in setScale()
100 return mScale; in getScale()
118 return (int) (mImgSize * mScale); in getScaledImgSize()
139 int sx = (int) (mScale * mFullSize); in resizeScrollbar()
201 return mMargin - mTranslate + (int) (mScale * canvasX); in translate()
205 return (int) (mScale * canwasW); in scale()
209 return (int) ((screenX - mMargin + mTranslate) / mScale); in inverseTranslate()
[all …]
DImageControl.java52 private float mScale = 1.0f; field in ImageControl
98 mScale = 1.0f; in fitToWidth()
102 mScale = width / (float) imageWidth; in fitToWidth()
107 mScale = scale; in setScale()
111 return mScale; in getScale()
153 if (mScale != 1.0f) { in computeSize()
154 e.x += mScale * r.width; in computeSize()
155 e.y += mScale * r.height; in computeSize()
190 if (mScale != 1.0f) { in onPaint()
191 destWidth = (int) (mScale * destWidth); in onPaint()
[all …]
DRenderPreview.java164 private double mScale = 1.0; field in RenderPreview
236 return mScale; in getScale()
246 mScale = scale; in setScale()
756 return (int) (mWidth * mScale * RenderPreviewManager.getScale()); in getWidth()
765 return (int) (mHeight * mScale * RenderPreviewManager.getScale()); in getHeight()
788 mScale = mScale * (1 / 0.5); in click()
789 if (Math.abs(mScale-1.0) < 0.0001) { in click()
790 mScale = 1.0; in click()
801 mScale = mScale * (0.5 / 1); in click()
802 if (Math.abs(mScale-1.0) < 0.0001) { in click()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DPointTestCases.java82 float mScale; field in PointTestCases.TestCanvasTransform
88 this.mScale = scale; in TestCanvasTransform()
94 return (int) ((value - mTranslate) / mScale); in translate()
99 return (int) (value * mScale + mTranslate); in inverseTranslate()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/draw9patch/ui/
DStretchesViewer.java68 private int mScale = 2; field in StretchesViewer
119 setScale(mScale); in updatePreview()
145 mScale = scale; in setScale()
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/editors/
DDurationMinimap.java435 private final double mScale; field in DurationMinimap.PositionHelper
445 mScale = (double) maxDurationLength / maxDuration; in PositionHelper()
470 int w = (int) (duration * mScale); in getDurationBounds()