Home
last modified time | relevance | path

Searched refs:ascent (Results 1 – 8 of 8) sorted by relevance

/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/
DLabelMaker.java187 int ascent = 0; in add() local
192 ascent = (int) Math.ceil(-textPaint.ascent()); in add()
196 int textHeight = ascent + descent; in add()
234 int vBase = v + ascent; in add()
253 mLabels.add(new Label(width, height, ascent, in add()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DPolyToPoly.java58 float y = 64/2 - (mFontMetrics.ascent + mFontMetrics.descent)/2; in doDraw()
DAlphaBitmap.java57 c.drawText("Alpha", x/2, (y-fm.ascent)/2, p); in drawIntoBitmap()
DColorFilters.java91 mPaintTextOffset = (fm.descent + fm.ascent) * 0.5f; in SampleView()
DTouchPaint.java303 ((height-size)/2) - fm.ascent, mPaint); in text()
/development/samples/ApiDemos/src/com/example/android/apis/view/
DLabelView.java168 mAscent = (int) mTextPaint.ascent(); in measureHeight()
DInternalSelectionView.java172 rectTop + 2 - (int) mTextPaint.ascent(), in onDraw()
/development/samples/SoftKeyboard/src/com/example/android/softkeyboard/
DCandidateView.java179 final int y = (int) (((height - mPaint.getTextSize()) / 2) - mPaint.ascent()); in onDraw()