public S hasStrokeJoin(Paint.Join join) { isNotNull(); Paint.Join actualJoin = actual.getStrokeJoin(); assertThat(actualJoin) // .overridingErrorMessage("Expected stroke join <%s> but was <%s>.", join, actualJoin) // .isEqualTo(join); return myself; }
/** * Return the paint's stroke join type. * * @return the paint's Join. */ public Paint.Join getStrokeJoin() { return mPaint.getStrokeJoin(); }
/** * Return the paint's stroke join type. * * @return the paint's Join. */ public Paint.Join getStrokeJoin() { return mPaint.getStrokeJoin(); }
/** * Return the paint's stroke join type. * * @return the paint's Join. */ public Paint.Join getStrokeJoin() { return mPaint.getStrokeJoin(); }
@Override public LineJoin getLineJoin() { switch(this.paint.getStrokeJoin()) { case BEVEL: return LineJoin.BEVEL; case MITER: return LineJoin.MITER; case ROUND: return LineJoin.ROUND; default: throw new IllegalStateException(); } }
/** * Set the paint's Join. * * @param join set the paint's Join, used whenever the paint's style is * Stroke or StrokeAndFill. */ public void setStrokeJoin(Paint.Join join) { if (mPaint.getStrokeJoin() == join) return; mPaint.setStrokeJoin(join); invalidateSelf(); }
/** * Set the paint's Join. * * @param join set the paint's Join, used whenever the paint's style is * Stroke or StrokeAndFill. */ public void setStrokeJoin(Paint.Join join) { if (mPaint.getStrokeJoin() == join) return; mPaint.setStrokeJoin(join); invalidateSelf(); }
/** * Set the paint's Join. * * @param join set the paint's Join, used whenever the paint's style is * Stroke or StrokeAndFill. */ public void setStrokeJoin(Paint.Join join) { if (mPaint.getStrokeJoin() == join) return; mPaint.setStrokeJoin(join); if (mProvider != null) invalidateSelf(); }
public S hasStrokeJoin(Paint.Join join) { isNotNull(); Paint.Join actualJoin = actual.getStrokeJoin(); assertThat(actualJoin) // .overridingErrorMessage("Expected stroke join <%s> but was <%s>.", join, actualJoin) // .isEqualTo(join); return myself; }
void setPaintColor(@ColorInt int color) { BITMAP_PAINT.setColor(color); if (Color.alpha(color) == 0) { CANVAS_PAINT.reset(); CANVAS_PAINT.setStyle(BITMAP_PAINT.getStyle()); CANVAS_PAINT.setStrokeJoin(BITMAP_PAINT.getStrokeJoin()); CANVAS_PAINT.setStrokeCap(BITMAP_PAINT.getStrokeCap()); CANVAS_PAINT.setStrokeWidth(BITMAP_PAINT.getStrokeWidth()); CANVAS_PAINT.setShader(checkeredPattern.getShader()); CANVAS_PAINT.setColor(Color.BLACK); CANVAS_PAINT.setAlpha(0); BITMAP_PAINT.setXfermode(eraseXfermode); BITMAP_PAINT.setAlpha(0); } else { BITMAP_PAINT.setXfermode(null); CANVAS_PAINT.set(BITMAP_PAINT); } }
appendClassName("Shader", paint.getShader(), data); data.put("StrokeCap", paint.getStrokeCap().name()); data.put("StrokeJoin", paint.getStrokeJoin().name()); data.put("StrokeMiter", paint.getStrokeMiter()); data.put("StrokeWidth", paint.getStrokeWidth());