Back to project page pixel-art.
The source code is released under:
Apache License
If you think the Android project pixel-art 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 com.jaween.pixelart.tools.attributes; //ww w . j a v a 2s . c o m /** * Created by ween on 11/2/14. */ public class EraserToolAttributes extends ToolAttributes { private boolean antiAlias = false; private int thicknessLevel = MIN_THICKNESS; public EraserToolAttributes() { super(); } public boolean isAntiAlias() { return antiAlias; } public void setAntiAlias(boolean antiAlias) { paint.setAntiAlias(antiAlias); this.antiAlias = antiAlias; } public void setThicknessLevel(int thicknessLevel) { paint.setStrokeWidth(thicknessLevel); this.thicknessLevel = thicknessLevel; } public int getThicknessLevel() { return thicknessLevel; } }