Home
last modified time | relevance | path

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

/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/draw9patch/ui/
DImageViewer.java109 private final Rectangle mPadding = new Rectangle(0, 0, 0, 0); field in ImageViewer
317 return Math.round((x - mPadding.x + mHorizontalScroll) / ((float) mZoom / 100)); in getLogicalPositionX()
321 return Math.round((y - mPadding.y + mVerticalScroll) / ((float) mZoom / 100)); in getLogicalPositionY()
387 mPadding.width = getZoomedPixelSize(width); in calcPaddings()
388 mPadding.height = getZoomedPixelSize(height); in calcPaddings()
392 if (mPadding.width < canvasSize.x) { in calcPaddings()
393 mPadding.x = (canvasSize.x - mPadding.width) / 2; in calcPaddings()
395 mPadding.x = margin; in calcPaddings()
398 if (mPadding.height < canvasSize.y) { in calcPaddings()
399 mPadding.y = (canvasSize.y - mPadding.height) / 2; in calcPaddings()
[all …]
DStretchesViewer.java165 private final Rectangle mPadding = new Rectangle(0, 0, 0, 0); field in StretchesViewer.StretchView
187 mPadding.x = (canvasSize.x - width) / 2; in calcPaddings()
188 mPadding.y = (canvasSize.y - height) / 2; in calcPaddings()
190 mPadding.width = width; in calcPaddings()
191 mPadding.height = height; in calcPaddings()
254 (mPadding.x + dest.x), (mPadding.y + dest.y), in paintControl()
260 (mPadding.x + dest.x), (mPadding.y + dest.y), in paintControl()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/
DExplodedRenderingHelper.java56 private final int[] mPadding = new int[] { 0, 0 }; field in ExplodedRenderingHelper
77 computePadding(root, mPadding); in ExplodedRenderingHelper()
90 computePadding(root, mPadding); in ExplodedRenderingHelper()
98 return mPadding[0]; in getWidthPadding()
106 return mPadding[1]; in getHeightPadding()