Back to project page Sketcher-Tab.
The source code is released under:
Apache License
If you think the Android project Sketcher-Tab listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.sketchertab.style; //from ww w .j av a 2s . c om import android.graphics.Paint; import org.sketchertab.Style; /** * Abstract class for brush */ public abstract class StyleBrush implements Style { protected Paint paint = new Paint(); protected int opacity; public void setOpacity(int opacity) { this.opacity = opacity; paint.setAlpha(opacity); } public void setStrokeWidth(float width) { paint.setStrokeWidth(width); } public void setColor(int color) { paint.setColor(color); } }