public S hasStrokeMiter(float miter) { isNotNull(); float actualMiter = actual.getStrokeMiter(); assertThat(actualMiter) // .overridingErrorMessage("Expected stroke miter <%s> but was <%s>.", miter, actualMiter) // .isEqualTo(miter); return myself; }
/** * Return the paint's stroke miter value. Used to control the behavior * of miter joins when the joins angle is sharp. * * @return the paint's miter limit, used whenever the paint's style is * Stroke or StrokeAndFill. */ public float getStrokeMiter() { return mPaint.getStrokeMiter(); }
/** * Return the paint's stroke miter value. Used to control the behavior * of miter joins when the joins angle is sharp. * * @return the paint's miter limit, used whenever the paint's style is * Stroke or StrokeAndFill. */ public float getStrokeMiter() { return mPaint.getStrokeMiter(); }
/** * Return the paint's stroke miter value. Used to control the behavior * of miter joins when the joins angle is sharp. * * @return the paint's miter limit, used whenever the paint's style is * Stroke or StrokeAndFill. */ public float getStrokeMiter() { return mPaint.getStrokeMiter(); }
@Override public float getMiterLimit() { return this.paint.getStrokeMiter(); }
/** * Set the paint's stroke miter value. This is used to control the behavior * of miter joins when the joins angle is sharp. This value must be >= 0. * * @param miter set the miter limit on the paint, used whenever the paint's * style is Stroke or StrokeAndFill. */ public void setStrokeMiter(float miter) { if (mPaint.getStrokeMiter() == miter) return; mPaint.setStrokeMiter(miter); invalidateSelf(); }
/** * Set the paint's stroke miter value. This is used to control the behavior * of miter joins when the joins angle is sharp. This value must be >= 0. * * @param miter set the miter limit on the paint, used whenever the paint's * style is Stroke or StrokeAndFill. */ public void setStrokeMiter(float miter) { if (mPaint.getStrokeMiter() == miter) return; mPaint.setStrokeMiter(miter); invalidateSelf(); }
/** * Set the paint's stroke miter value. This is used to control the behavior * of miter joins when the joins angle is sharp. This value must be >= 0. * * @param miter set the miter limit on the paint, used whenever the paint's * style is Stroke or StrokeAndFill. */ public void setStrokeMiter(float miter) { if (mPaint.getStrokeMiter() == miter) return; mPaint.setStrokeMiter(miter); if (mProvider != null) invalidateSelf(); }
public S hasStrokeMiter(float miter) { isNotNull(); float actualMiter = actual.getStrokeMiter(); assertThat(actualMiter) // .overridingErrorMessage("Expected stroke miter <%s> but was <%s>.", miter, actualMiter) // .isEqualTo(miter); return myself; }
pen2.setStrokeMiter(pen.getStrokeMiter()*scale); pen2.setStrokeWidth(pen.getStrokeWidth()*scale);
rectLeft = -r - mPaint.getStrokeWidth() * 0.5f; rectTop = r + mPaint.getStrokeWidth() * 0.5f + mLinePaint.getStrokeMiter() * 0.5f + 15; rectRight = r + mPaint.getStrokeWidth() * 0.5f; rectBottom = rectTop + Util.dp2px(context, 30);
pen2.setStrokeMiter(paint.getStrokeMiter() * scale); pen2.setStrokeWidth(paint.getStrokeWidth() * scale);
rectLeft = -r - mPaint.getStrokeWidth() * 0.5f; rectTop = r + mPaint.getStrokeWidth() * 0.5f + mLinePaint.getStrokeMiter() * 0.5f + 15; rectRight = r + mPaint.getStrokeWidth() * 0.5f; rectBottom = rectTop + Util.dp2px(context, 30);
path.lineTo(this.x0 - paintLine.getStrokeMiter(), this.y0); path.lineTo(this.x3 + paintLine.getStrokeMiter(), getHeight());
data.put("StrokeCap", paint.getStrokeCap().name()); data.put("StrokeJoin", paint.getStrokeJoin().name()); data.put("StrokeMiter", paint.getStrokeMiter()); data.put("StrokeWidth", paint.getStrokeWidth()); data.put("Style", paint.getStyle().name());