/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/ui/widget/ |
D | TextLabelWidget.java | 28 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/ |
D | constcolorprocessor.cpp | 120 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 …]
|
D | shadertext2.cpp | 99 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 …]
|
D | quadpaths.cpp | 130 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 …]
|
D | pixelsnap.cpp | 45 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()
|
D | linepaths.cpp | 123 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()
|
D | cubicpaths.cpp | 242 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 …]
|
D | lightingshaderbevel.cpp | 144 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()
|
D | emptypath.cpp | 107 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()
|
D | degeneratesegments.cpp | 349 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 …]
|
D | lightingshader2.cpp | 142 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/ |
D | SegmentFormatter.java | 38 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/ |
D | XYGraphWidget.java | 413 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/ |
D | SampleBevel.cpp | 87 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()
|