Home
last modified time | relevance | path

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

/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/ui/widget/
DTextLabelWidget.java28 private Paint labelPaint; field in TextLabelWidget
35 labelPaint = new Paint();
36 labelPaint.setColor(Color.WHITE);
37 labelPaint.setAntiAlias(true);
38 labelPaint.setTextAlign(Paint.Align.CENTER);
110 float vOffset = labelPaint.getFontMetrics().descent; in doOnDraw()
133 canvas.drawText(text, 0, vOffset, labelPaint); in doOnDraw()
143 return labelPaint; in getLabelPaint()
146 public void setLabelPaint(Paint labelPaint) { in setLabelPaint() argument
147 this.labelPaint = labelPaint; in setLabelPaint()
/external/skia/gm/
Dconstcolorprocessor.cpp118 SkPaint labelPaint; in onDraw() local
119 sk_tool_utils::set_portable_typeface(&labelPaint); in onDraw()
120 labelPaint.setAntiAlias(true); in onDraw()
121 labelPaint.setTextSize(10.f); in onDraw()
134 labelPaint.measureText(inputLabel.c_str(), inputLabel.size(), in onDraw()
138 -inputLabelBounds.fTop, labelPaint); in onDraw()
143 labelPaint.measureText(procLabel.c_str(), procLabel.size(), in onDraw()
148 labelPaint); in onDraw()
152 labelPaint.setStrokeWidth(0); in onDraw()
153 labelPaint.setStyle(SkPaint::kStroke_Style); in onDraw()
[all …]
Dshadertext2.cpp99 SkPaint labelPaint; variable
100 labelPaint.setColor(0xff000000);
101 labelPaint.setAntiAlias(true);
102 sk_tool_utils::set_portable_typeface(&labelPaint);
103 labelPaint.setTextSize(12.f);
107 canvas->translate(0, bmp.height() + labelPaint.getTextSize() + 15.f);
110 canvas->drawString(kLabelLabel, 0, 0, labelPaint);
118 0, labelPaint.getTextSize() - 1, labelPaint);
119 SkScalar labelW = labelPaint.measureText(matrices[lm].fLabel,
136 0, labelPaint.getTextSize() - 1, labelPaint);
[all …]
Dquadpaths.cpp130 SkPaint labelPaint; in onDraw() local
131 labelPaint.setColor(color); in onDraw()
132 labelPaint.setAntiAlias(true); in onDraw()
133 sk_tool_utils::set_portable_typeface(&labelPaint); in onDraw()
134 labelPaint.setTextSize(10 * SK_Scalar1); in onDraw()
137 labelPaint); in onDraw()
140 labelPaint); in onDraw()
143 labelPaint); in onDraw()
271 SkPaint labelPaint; in onDraw() local
272 labelPaint.setColor(color); in onDraw()
[all …]
Dpixelsnap.cpp45 SkPaint labelPaint; in onDraw() local
46 labelPaint.setAntiAlias(true); in onDraw()
47 labelPaint.setColor(SK_ColorWHITE); in onDraw()
48 labelPaint.setTextSize(SkIntToScalar(kLabelTextSize)); in onDraw()
49 sk_tool_utils::set_portable_typeface(&labelPaint); in onDraw()
59 0, i * kTrans + labelPaint.getTextSize(), in onDraw()
60 labelPaint); in onDraw()
70 i * SkIntToScalar(kTrans), labelPaint.getTextSize(), in onDraw()
71 labelPaint); in onDraw()
Dlinepaths.cpp123 SkPaint labelPaint; in draw() local
124 labelPaint.setColor(color); in draw()
125 labelPaint.setAntiAlias(true); in draw()
126 sk_tool_utils::set_portable_typeface(&labelPaint); in draw()
127 labelPaint.setTextSize(10 * SK_Scalar1); in draw()
130 labelPaint); in draw()
133 labelPaint); in draw()
136 labelPaint); in draw()
Dcubicpaths.cpp242 SkPaint labelPaint; in onDraw() local
243 labelPaint.setColor(color); in onDraw()
244 labelPaint.setAntiAlias(true); in onDraw()
245 sk_tool_utils::set_portable_typeface(&labelPaint); in onDraw()
246 labelPaint.setTextSize(10 * SK_Scalar1); in onDraw()
249 labelPaint); in onDraw()
252 labelPaint); in onDraw()
255 labelPaint); in onDraw()
384 SkPaint labelPaint; in onDraw() local
385 labelPaint.setColor(color); in onDraw()
[all …]
Ddegeneratesegments.cpp349 SkPaint labelPaint; in onDraw() local
350 labelPaint.setColor(color); in onDraw()
351 labelPaint.setAntiAlias(true); in onDraw()
352 sk_tool_utils::set_portable_typeface(&labelPaint); in onDraw()
353 labelPaint.setTextSize(10 * SK_Scalar1); in onDraw()
356 labelPaint); in onDraw()
359 labelPaint); in onDraw()
362 labelPaint); in onDraw()
365 labelPaint); in onDraw()
368 labelPaint); in onDraw()
[all …]
Demptypath.cpp107 SkPaint labelPaint; in onDraw() local
108 labelPaint.setColor(color); in onDraw()
109 labelPaint.setAntiAlias(true); in onDraw()
110 sk_tool_utils::set_portable_typeface(&labelPaint); in onDraw()
111 labelPaint.setTextSize(12 * SK_Scalar1); in onDraw()
114 labelPaint); in onDraw()
117 labelPaint); in onDraw()
/external/skqp/gm/
Dconstcolorprocessor.cpp118 SkPaint labelPaint; in onDraw() local
119 sk_tool_utils::set_portable_typeface(&labelPaint); in onDraw()
120 labelPaint.setAntiAlias(true); in onDraw()
121 labelPaint.setTextSize(10.f); in onDraw()
134 labelPaint.measureText(inputLabel.c_str(), inputLabel.size(), in onDraw()
138 -inputLabelBounds.fTop, labelPaint); in onDraw()
143 labelPaint.measureText(procLabel.c_str(), procLabel.size(), in onDraw()
148 labelPaint); in onDraw()
152 labelPaint.setStrokeWidth(0); in onDraw()
153 labelPaint.setStyle(SkPaint::kStroke_Style); in onDraw()
[all …]
Dshadertext2.cpp99 SkPaint labelPaint; variable
100 labelPaint.setColor(0xff000000);
101 labelPaint.setAntiAlias(true);
102 sk_tool_utils::set_portable_typeface(&labelPaint);
103 labelPaint.setTextSize(12.f);
107 canvas->translate(0, bmp.height() + labelPaint.getTextSize() + 15.f);
110 canvas->drawString(kLabelLabel, 0, 0, labelPaint);
118 0, labelPaint.getTextSize() - 1, labelPaint);
119 SkScalar labelW = labelPaint.measureText(matrices[lm].fLabel,
136 0, labelPaint.getTextSize() - 1, labelPaint);
[all …]
Dquadpaths.cpp130 SkPaint labelPaint; in onDraw() local
131 labelPaint.setColor(color); in onDraw()
132 labelPaint.setAntiAlias(true); in onDraw()
133 sk_tool_utils::set_portable_typeface(&labelPaint); in onDraw()
134 labelPaint.setTextSize(10 * SK_Scalar1); in onDraw()
137 labelPaint); in onDraw()
140 labelPaint); in onDraw()
143 labelPaint); in onDraw()
271 SkPaint labelPaint; in onDraw() local
272 labelPaint.setColor(color); in onDraw()
[all …]
Dpixelsnap.cpp45 SkPaint labelPaint; in onDraw() local
46 labelPaint.setAntiAlias(true); in onDraw()
47 labelPaint.setColor(SK_ColorWHITE); in onDraw()
48 labelPaint.setTextSize(SkIntToScalar(kLabelTextSize)); in onDraw()
49 sk_tool_utils::set_portable_typeface(&labelPaint); in onDraw()
59 0, i * kTrans + labelPaint.getTextSize(), in onDraw()
60 labelPaint); in onDraw()
70 i * SkIntToScalar(kTrans), labelPaint.getTextSize(), in onDraw()
71 labelPaint); in onDraw()
Dlinepaths.cpp123 SkPaint labelPaint; in draw() local
124 labelPaint.setColor(color); in draw()
125 labelPaint.setAntiAlias(true); in draw()
126 sk_tool_utils::set_portable_typeface(&labelPaint); in draw()
127 labelPaint.setTextSize(10 * SK_Scalar1); in draw()
130 labelPaint); in draw()
133 labelPaint); in draw()
136 labelPaint); in draw()
Dcubicpaths.cpp242 SkPaint labelPaint; in onDraw() local
243 labelPaint.setColor(color); in onDraw()
244 labelPaint.setAntiAlias(true); in onDraw()
245 sk_tool_utils::set_portable_typeface(&labelPaint); in onDraw()
246 labelPaint.setTextSize(10 * SK_Scalar1); in onDraw()
249 labelPaint); in onDraw()
252 labelPaint); in onDraw()
255 labelPaint); in onDraw()
384 SkPaint labelPaint; in onDraw() local
385 labelPaint.setColor(color); in onDraw()
[all …]
Ddegeneratesegments.cpp349 SkPaint labelPaint; in onDraw() local
350 labelPaint.setColor(color); in onDraw()
351 labelPaint.setAntiAlias(true); in onDraw()
352 sk_tool_utils::set_portable_typeface(&labelPaint); in onDraw()
353 labelPaint.setTextSize(10 * SK_Scalar1); in onDraw()
356 labelPaint); in onDraw()
359 labelPaint); in onDraw()
362 labelPaint); in onDraw()
365 labelPaint); in onDraw()
368 labelPaint); in onDraw()
[all …]
Demptypath.cpp107 SkPaint labelPaint; in onDraw() local
108 labelPaint.setColor(color); in onDraw()
109 labelPaint.setAntiAlias(true); in onDraw()
110 sk_tool_utils::set_portable_typeface(&labelPaint); in onDraw()
111 labelPaint.setTextSize(12 * SK_Scalar1); in onDraw()
114 labelPaint); in onDraw()
117 labelPaint); in onDraw()
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/pie/
DSegmentFormatter.java38 private Paint labelPaint; field in SegmentFormatter
165 return labelPaint; in getLabelPaint()
168 public void setLabelPaint(Paint labelPaint) { in setLabelPaint() argument
169 this.labelPaint = labelPaint; in setLabelPaint()
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/xy/
DXYGraphWidget.java413 float xPix, float yPix, Paint labelPaint) { in drawTickText() argument
439 p = new Paint(labelPaint); in drawTickText()
443 p = labelPaint; in drawTickText()
452 Paint labelPaint, Paint linePaint, boolean drawLineOnly) { in drawDomainTick() argument
463 if (labelPaint != null) { in drawDomainTick()
464 float fontHeight = FontUtils.getFontHeight(labelPaint); in drawDomainTick()
474 labelPaint); in drawDomainTick()
485 Paint labelPaint, Paint linePaint, boolean drawLineOnly) { in drawRangeTick() argument
496 if (labelPaint != null) { in drawRangeTick()
506 labelPaint); in drawRangeTick()