// Path: progressviewslib/src/main/java/com/natasa/progressviews/utils/ProgressLineOrientation.java
// public enum ProgressLineOrientation {
// 	HORIZONTAL(0), VERTICAL(1);
// 
// 	int value;
// 
// 	private ProgressLineOrientation(int value) {
// 		this.value = value;
// 	}
// 
// 	public int getValue() {
// 		return value;
// 	}
// 
// }
// 
// Path: progressviewslib/src/main/java/com/natasa/progressviews/utils/ShapeType.java
// public enum ShapeType {
// CIRCLE, ARC, LINE, SEGMENT_CIRCLE;
// }


import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;
import com.natasa.progressviews.utils.ProgressLineOrientation;
import com.natasa.progressviews.utils.ShapeType;

        canvas.drawLine(0, nMiddle, progressX, nMiddle, foregroundPaint);

    }


    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        super.onMeasure(widthMeasureSpec, heightMeasureSpec);
        height = getDefaultSize(getSuggestedMinimumHeight(), heightMeasureSpec);
        width = getDefaultSize(getSuggestedMinimumWidth(), widthMeasureSpec);
        setMeasuredDimension(width, height);

    }

    /****
     * @return int value for orientation. <li>
     * <i>HORIZONTAL=0   <li> VERTICAL=1</i></li>
     ***/
    public int getLineOrientation() {
        return lineOrientation;
    }

    /***
     * @param position ProgressLineOrientation value
     **/
    public void setLineOrientation(ProgressLineOrientation position) {
        this.lineOrientation = position.getValue();
    }

    @Override
// Path: progressviewslib/src/main/java/com/natasa/progressviews/utils/ProgressLineOrientation.java
// public enum ProgressLineOrientation {
// 	HORIZONTAL(0), VERTICAL(1);
// 
// 	int value;
// 
// 	private ProgressLineOrientation(int value) {
// 		this.value = value;
// 	}
// 
// 	public int getValue() {
// 		return value;
// 	}
// 
// }
// 
// Path: progressviewslib/src/main/java/com/natasa/progressviews/utils/ShapeType.java
// public enum ShapeType {
// CIRCLE, ARC, LINE, SEGMENT_CIRCLE;
// }


// Path: progressviewslib/src/main/java/com/natasa/progressviews/LineProgressBar.java
import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;
import com.natasa.progressviews.utils.ProgressLineOrientation;
import com.natasa.progressviews.utils.ShapeType;


        canvas.drawLine(0, nMiddle, progressX, nMiddle, foregroundPaint);

    }


    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        super.onMeasure(widthMeasureSpec, heightMeasureSpec);
        height = getDefaultSize(getSuggestedMinimumHeight(), heightMeasureSpec);
        width = getDefaultSize(getSuggestedMinimumWidth(), widthMeasureSpec);
        setMeasuredDimension(width, height);

    }

    /****
     * @return int value for orientation. <li>
     * <i>HORIZONTAL=0   <li> VERTICAL=1</i></li>
     ***/
    public int getLineOrientation() {
        return lineOrientation;
    }

    /***
     * @param position ProgressLineOrientation value
     **/
    public void setLineOrientation(ProgressLineOrientation position) {
        this.lineOrientation = position.getValue();
    }

    @Override
    public ShapeType setType(ShapeType type) {