@Override public void draw(final Canvas canvas) { if (mShader != null) { final int count = canvas.save(); final DrawFilter org = canvas.getDrawFilter(); canvas.setDrawFilter(mDrawFilter); mPaint.setShader(mShader); canvas.drawPaint(mPaint); canvas.setDrawFilter(org); canvas.restoreToCount(count); } }
@Override public DrawFilter getDrawFilter() { return getWrappedCanvas().getDrawFilter(); }
@Override public void setDrawFilter(DrawFilter filter) { getWrappedCanvas().setDrawFilter(filter); }
@Override public DrawFilter getDrawFilter() { return this.delegate.getDrawFilter(); }
@Override public void setDrawFilter(DrawFilter filter) { this.delegate.setDrawFilter(filter); }
@Override public DrawFilter getDrawFilter() { return delegate.getDrawFilter(); }
@Override public void setDrawFilter(DrawFilter filter) { delegate.setDrawFilter(filter); }
public abstract DrawFilter getDrawFilter();
public abstract void setDrawFilter(DrawFilter filter);