Android Open Source - pixel-art Pen Tool Attributes

From Project

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.

Java Source Code

/*  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() {

    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) {
        this.antiAlias = antiAlias;

    public void setThicknessLevel(int thicknessLevel) {
        this.thicknessLevel = thicknessLevel;

    public int getThicknessLevel() {
        return thicknessLevel;


Java Source Code List