Home
last modified time | relevance | path

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

/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/
DLabelMaker.java142 public int add(GL10 gl, String text, Paint textPaint) { in add() argument
143 return add(gl, null, text, textPaint); in add()
154 public int add(GL10 gl, Drawable background, String text, Paint textPaint) { in add() argument
155 return add(gl, background, text, textPaint, 0, 0); in add()
174 public int add(GL10 gl, Drawable background, String text, Paint textPaint, in add() argument
178 boolean drawText = (text != null) && (textPaint != null); in add()
192 ascent = (int) Math.ceil(-textPaint.ascent()); in add()
193 descent = (int) Math.ceil(textPaint.descent()); in add()
194 measuredTextWidth = (int) Math.ceil(textPaint.measureText(text)); in add()
246 textPaint); in add()