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 a2 s . c o m*/ /** * Created by ween on 11/2/14. */ public class PenToolAttributes extends ToolAttributes { private boolean straight = false; private boolean lockAngles = false; private boolean antiAlias = false; private int thicknessLevel = MIN_THICKNESS; public PenToolAttributes() { super(); } public boolean isStraight() { return straight; } public void setStraight(boolean straight) { this.straight = straight; } public boolean isLockAngles() { return lockAngles; } public void setLockAngles(boolean lockAngles) { this.lockAngles = lockAngles; } 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; } }