Home
last modified time | relevance | path

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

12

/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/xy/
DValueMarker.java43 private Paint textPaint; field in ValueMarker
55 textPaint = new Paint();
56 textPaint.setAntiAlias(true);
57 textPaint.setColor(Color.RED);
78 …ker(Number value, String text, PositionMetricType textPosition, Paint linePaint, Paint textPaint) { in ValueMarker() argument
82 this.textPaint = textPaint; in ValueMarker()
86 …eMarker(Number value, String text, PositionMetricType textPosition, int linePaint, int textPaint) { in ValueMarker() argument
89 this.textPaint.setColor(textPaint); in ValueMarker()
109 return textPaint; in getTextPaint()
112 public void setTextPaint(Paint textPaint) { in setTextPaint() argument
[all …]
DXYLegendWidget.java49 private Paint textPaint; field in XYLegendWidget
60 textPaint = new Paint();
61 textPaint.setColor(Color.LTGRAY);
62 textPaint.setAntiAlias(true);
113 … float centeredTextOriginY = getRectCenterY(cellRect) + (FontUtils.getFontHeight(textPaint)/2); in finishDrawingCell()
114 canvas.drawText(text, iconRect.right + 2, centeredTextOriginY, textPaint); in finishDrawingCell()
209 return textPaint; in getTextPaint()
212 public void setTextPaint(Paint textPaint) { in setTextPaint() argument
213 this.textPaint = textPaint; in setTextPaint()
DPointLabelFormatter.java29 private Paint textPaint; field in PointLabelFormatter
56 return textPaint; in getTextPaint()
59 public void setTextPaint(Paint textPaint) { in setTextPaint() argument
60 this.textPaint = textPaint; in setTextPaint()
DXValueMarker.java42 …Marker(Number value, String text, YPositionMetric textPosition, Paint linePaint, Paint textPaint) { in XValueMarker() argument
43 super(value, text, textPosition, linePaint, textPaint); in XValueMarker()
55 …alueMarker(Number value, String text, YPositionMetric textPosition, int linePaint, int textPaint) { in XValueMarker() argument
56 super(value, text, textPosition, linePaint, textPaint); in XValueMarker()
DYValueMarker.java43 …Marker(Number value, String text, XPositionMetric textPosition, Paint linePaint, Paint textPaint) { in YValueMarker() argument
44 super(value, text, textPosition, linePaint, textPaint); in YValueMarker()
55 …alueMarker(Number value, String text, XPositionMetric textPosition, int linePaint, int textPaint) { in YValueMarker() argument
56 super(value, text, textPosition, linePaint, textPaint); in YValueMarker()
/external/skia/docs/examples/
DSkPath_cubicTo_example.cpp47 SkPaint textPaint; in draw() local
48 textPaint.setColor(SkColorSetARGB(255, 0, 255, 0)); in draw()
49 textPaint.setAntiAlias(true); in draw()
50 canvas->drawString("a", a.x(), a.y(), font, textPaint); in draw()
51 canvas->drawString("b", b.x(), b.y(), font, textPaint); in draw()
52 canvas->drawString("c", c.x() - 20, c.y(), font, textPaint); in draw()
53 canvas->drawString("d", d.x(), d.y(), font, textPaint); in draw()
DPath_FillType_b.cpp16 SkPaint textPaint;
17 textPaint.setAntiAlias(true);
19 canvas->drawPosTextH("01210", 5, textHPos, 48, textPaint);
20 textPaint.setTextSize(18);
23 canvas->drawString("inverse", 384, 150, textPaint);
32 canvas->drawString(fillType & 1 ? "even-odd" : "winding", 64, 170, textPaint);
DSkPath_cubicTo_example_parametric_animated.cpp75 SkPaint textPaint; in draw() local
76 textPaint.setColor(SkColorSetARGB(255, 0, 255, 0)); in draw()
77 textPaint.setAntiAlias(true); in draw()
80 canvas->drawString("a", a.x(), a.y(), font, textPaint); in draw()
81 canvas->drawString("b", b.x(), b.y(), font, textPaint); in draw()
82 canvas->drawString("c", c.x()-20, c.y(), font, textPaint); in draw()
83 canvas->drawString("d", d.x(), d.y(), font, textPaint); in draw()
85 textPaint.setColor(SkColorSetARGB(255, 204, 204, 204)); in draw()
86 canvas->drawString(msg.c_str(), 4, 36, font, textPaint); in draw()
DSkPath_cubicTo_example_parametric.cpp56 SkPaint textPaint; in draw() local
57 textPaint.setColor(SkColorSetARGB(255, 0, 255, 0)); in draw()
58 textPaint.setAntiAlias(true); in draw()
59 canvas->drawString("a", a.x(), a.y(), font, textPaint); in draw()
60 canvas->drawString("b", b.x(), b.y(), font, textPaint); in draw()
61 canvas->drawString("c", c.x() - 20, c.y(), font, textPaint); in draw()
62 canvas->drawString("d", d.x(), d.y(), font, textPaint); in draw()
DPath_arcTo_2_b.cpp10 SkPaint textPaint(tangentPaint);
34 canvas->drawString("(x0, y0)", pts[0].fX, pts[0].fY - 7, textPaint);
35 canvas->drawString("(x1, y1)", pts[1].fX + 5, pts[1].fY, textPaint);
36 canvas->drawString("(x2, y2)", pts[2].fX, pts[2].fY + 15, textPaint);
37 canvas->drawString("radius", center.fX + 15, center.fY + 25, textPaint);
38 canvas->drawString("radius", center.fX - 5, center.fY - 20, textPaint);
DPath_arcTo_2_a.cpp10 SkPaint textPaint(tangentPaint);
35 canvas->drawString("(x0, y0)", pts[0].fX - 5, pts[0].fY, textPaint);
36 canvas->drawString("(x1, y1)", pts[1].fX + 5, pts[1].fY, textPaint);
37 canvas->drawString("(x2, y2)", pts[2].fX, pts[2].fY + 15, textPaint);
38 canvas->drawString("radius", center.fX + 15, center.fY + 25, textPaint);
39 canvas->drawString("radius", center.fX - 3, center.fY - 16, textPaint);
DSkPath_quadTo_example.cpp31 SkPaint textPaint; in draw() local
32 textPaint.setAntiAlias(true); in draw()
33 canvas->drawString("a", a.x(), a.y(), font, textPaint); in draw()
34 canvas->drawString("b", b.x() + 20, b.y() + 20, font, textPaint); in draw()
35 canvas->drawString("c", c.x(), c.y(), font, textPaint); in draw()
DSkPath_quadTo_example_parametric.cpp48 SkPaint textPaint; in draw() local
49 textPaint.setAntiAlias(true); in draw()
50 canvas->drawString("a", a.x(), a.y(), font, textPaint); in draw()
51 canvas->drawString("b", b.x() + 20, b.y() + 20, font, textPaint); in draw()
52 canvas->drawString("c", c.x(), c.y(), font, textPaint); in draw()
DSkPath_quadTo_example_parametric_animated.cpp65 SkPaint textPaint; in draw() local
67 textPaint.setAntiAlias(true); in draw()
68 canvas->drawString("a", a.x(), a.y(), font, textPaint); in draw()
69 canvas->drawString("b", b.x()+20, b.y()+20, font, textPaint); in draw()
70 canvas->drawString("c", c.x(), c.y(), font, textPaint); in draw()
DPath_addOval_2.cpp12 SkPaint textPaint(ovalPaint);
25 canvas->drawText(&"0123"[start], 1, rect.centerX(), rect.centerY() + 5, textPaint);
30 128, 0, textPaint);
DPath_Direction.cpp12 SkPaint textPaint(rectPaint);
27 rect.centerY(), textPaint);
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/ui/src/main/java/com/google/android/exoplayer2/ui/
DSubtitlePainter.java61 private final TextPaint textPaint; field in SubtitlePainter
112 textPaint = new TextPaint(); in SubtitlePainter()
113 textPaint.setAntiAlias(true); in SubtitlePainter()
114 textPaint.setSubpixelText(true); in SubtitlePainter()
180 && Util.areEqual(this.textPaint.getTypeface(), style.typeface) in draw()
208 this.textPaint.setTypeface(style.typeface); in draw()
236 textPaint.setTextSize(defaultTextSizePx); in setupTextLayout()
288 cueText, textPaint, availableWidth, textAlignment, spacingMult, spacingAdd, true); in setupTextLayout()
362 cueText, textPaint, textWidth, textAlignment, spacingMult, spacingAdd, true); in setupTextLayout()
365 cueTextEdge, textPaint, textWidth, textAlignment, spacingMult, spacingAdd, true); in setupTextLayout()
[all …]
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/ui/src/main/java/com/google/android/exoplayer2/ui/
DSubtitlePainter.java61 private final TextPaint textPaint; field in SubtitlePainter
112 textPaint = new TextPaint(); in SubtitlePainter()
113 textPaint.setAntiAlias(true); in SubtitlePainter()
114 textPaint.setSubpixelText(true); in SubtitlePainter()
180 && Util.areEqual(this.textPaint.getTypeface(), style.typeface) in draw()
208 this.textPaint.setTypeface(style.typeface); in draw()
236 textPaint.setTextSize(defaultTextSizePx); in setupTextLayout()
288 cueText, textPaint, availableWidth, textAlignment, spacingMult, spacingAdd, true); in setupTextLayout()
362 cueText, textPaint, textWidth, textAlignment, spacingMult, spacingAdd, true); in setupTextLayout()
365 cueTextEdge, textPaint, textWidth, textAlignment, spacingMult, spacingAdd, true); in setupTextLayout()
[all …]
/external/skia/modules/canvaskit/tests/
Dfont_test.js306 const textPaint = new CanvasKit.Paint(); constant
309 canvas.drawText('Default', 5, 5, textPaint, annotationFont);
310 canvas.drawText('Alias', 5, 25, textPaint, annotationFont);
311 canvas.drawText('AntiAlias', 5, 45, textPaint, annotationFont);
312 canvas.drawText('Subpixel', 5, 65, textPaint, annotationFont);
316 canvas.drawText('SEA', 35, 15, textPaint, testFont);
318 canvas.drawText('SEA', 35, 35, textPaint, testFont);
320 canvas.drawText('SEA', 35, 55, textPaint, testFont);
322 canvas.drawText('SEA', 35, 75, textPaint, testFont);
324 textPaint.delete();
[all …]
/external/skia/modules/canvaskit/npm_build/
Dnode.example.js60 const textPaint = new CanvasKit.Paint();
61 textPaint.setColor(CanvasKit.Color(40, 0, 0));
62 textPaint.setAntiAlias(true);
78 canvas.drawText('Try Clicking!', 10, 280, textPaint, textFont);
100 textPaint.delete();
/external/skia/gm/
Dlcdoverlap.cpp72 SkPaint textPaint; in drawTestCase() local
73 textPaint.setColor(colors[i]); in drawTestCase()
74 textPaint.setBlendMode(i % 2 == 0 ? mode : mode2); in drawTestCase()
75 canvas->drawTextBlob(fBlob, 0, 0, textPaint); in drawTestCase()
Dbmpfilterqualityrepeat.cpp67 SkPaint textPaint; in drawAll() local
68 textPaint.setAntiAlias(true); in drawAll()
70 SkPaint bmpPaint(textPaint); in drawAll()
90 canvas->drawString(rec.name, 20, 40, font, textPaint); in drawAll()
Dimageblur.cpp30 SkPaint textPaint; in imageblurgm_draw() local
35 textPaint.setColor(ToolUtils::color_to_565(rand.nextBits(24) | 0xFF000000)); in imageblurgm_draw()
37 canvas->drawString(str, SkIntToScalar(x), SkIntToScalar(y), font, textPaint); in imageblurgm_draw()
Dscaledemoji_rendering.cpp70 SkPaint textPaint; in onDraw() local
71 textPaint.setColor(SK_ColorCYAN); in onDraw()
102 &bounds, &textPaint); in onDraw()
104 x, y, font, textPaint); in onDraw()
Dimageblur2.cpp54 SkPaint textPaint; in DEF_SIMPLE_GM() local
55 textPaint.setColor(ToolUtils::color_to_565(rand.nextBits(24) | 0xFF000000)); in DEF_SIMPLE_GM()
61 textPaint); in DEF_SIMPLE_GM()

12