Home
last modified time | relevance | path

Searched refs:canvasSize (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/
DStretchesViewer.java185 Point canvasSize = getSize(); in calcPaddings() local
187 mPadding.x = (canvasSize.x - width) / 2; in calcPaddings()
188 mPadding.y = (canvasSize.y - height) / 2; in calcPaddings()
DImageViewer.java385 Point canvasSize = getSize(); in calcPaddings() local
392 if (mPadding.width < canvasSize.x) { in calcPaddings()
393 mPadding.x = (canvasSize.x - mPadding.width) / 2; in calcPaddings()
398 if (mPadding.height < canvasSize.y) { in calcPaddings()
399 mPadding.y = (canvasSize.y - mPadding.height) / 2; in calcPaddings()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DLayoutCanvas.java857 Rectangle canvasSize = getClientArea(); in setFitScale() local
858 int canvasWidth = canvasSize.width; in setFitScale()
859 int canvasHeight = canvasSize.height; in setFitScale()