Home
last modified time | relevance | path

Searched refs:labelPaint (Results 1 – 14 of 14) 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.cpp120 SkPaint labelPaint; in onDraw() local
121 sk_tool_utils::set_portable_typeface(&labelPaint); in onDraw()
122 labelPaint.setAntiAlias(true); in onDraw()
123 labelPaint.setTextSize(10.f); in onDraw()
136 labelPaint.measureText(inputLabel.c_str(), inputLabel.size(), in onDraw()
140 -inputLabelBounds.fTop, labelPaint); in onDraw()
145 labelPaint.measureText(procLabel.c_str(), procLabel.size(), in onDraw()
150 labelPaint); in onDraw()
154 labelPaint.setStrokeWidth(0); in onDraw()
155 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->drawText(kLabelLabel, strlen(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()
138 labelPaint); in onDraw()
142 labelPaint); in onDraw()
146 labelPaint); in onDraw()
274 SkPaint labelPaint; in onDraw() local
275 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()
131 labelPaint); in draw()
135 labelPaint); in draw()
139 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()
250 labelPaint); in onDraw()
254 labelPaint); in onDraw()
258 labelPaint); in onDraw()
387 SkPaint labelPaint; in onDraw() local
388 labelPaint.setColor(color); in onDraw()
[all …]
Dlightingshaderbevel.cpp144 SkPaint labelPaint; in onDraw() local
145 labelPaint.setTypeface(sk_tool_utils::create_portable_typeface("sans-serif", in onDraw()
147 labelPaint.setAntiAlias(true); in onDraw()
148 labelPaint.setTextSize(LABEL_SIZE); in onDraw()
185 canvas->drawText(label.c_str(), label.size(), 0.0f, 0.0f, labelPaint); in onDraw()
191 canvas->drawText(label.c_str(), label.size(), 0.0f, 0.0f, labelPaint); in onDraw()
221 canvas->drawText(label.c_str(), label.size(), 0.0f, 0.0f, labelPaint); in onDraw()
227 canvas->drawText(label.c_str(), label.size(), 0.0f, 0.0f, labelPaint); in onDraw()
233 canvas->drawText(label.c_str(), label.size(), 0.0f, 0.0f, labelPaint); in onDraw()
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()
115 labelPaint); in onDraw()
119 labelPaint); in onDraw()
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()
357 labelPaint); in onDraw()
361 labelPaint); in onDraw()
365 labelPaint); in onDraw()
369 labelPaint); in onDraw()
373 labelPaint); in onDraw()
[all …]
Dlightingshader2.cpp142 SkPaint labelPaint; in onDraw() local
143 labelPaint.setTypeface(sk_tool_utils::create_portable_typeface("sans-serif", in onDraw()
145 labelPaint.setAntiAlias(true); in onDraw()
146 labelPaint.setTextSize(LABEL_SIZE); in onDraw()
174 canvas->drawText(label.c_str(), label.size(), 0.0f, 0.0f, labelPaint); in onDraw()
180 canvas->drawText(label.c_str(), label.size(), 0.0f, 0.0f, labelPaint); in onDraw()
186 canvas->drawText(label.c_str(), label.size(), 0.0f, 0.0f, labelPaint); in onDraw()
192 canvas->drawText(label.c_str(), label.size(), 0.0f, 0.0f, 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()
/external/skia/samplecode/
DSampleBevel.cpp87 SkPaint labelPaint; in drawLabel() local
88 labelPaint.setTypeface(fLabelTypeface); in drawLabel()
89 labelPaint.setAntiAlias(true); in drawLabel()
90 labelPaint.setColor(0xFFFFFFFF); in drawLabel()
91 labelPaint.setTextSize(12.0f); in drawLabel()
93 canvas->drawText(label.c_str(), label.size(), 0, kLabelHeight - 6.0f, labelPaint); in drawLabel()