// Path: progressviewslib/src/main/java/com/natasa/progressviews/utils/ProgressStartPoint.java
// public enum ProgressStartPoint {
// 	
// 	DEFAULT(-90), LEFT(180), RIGHT(0), BOTTOM(90);
// 	int value;
// 	private ProgressStartPoint(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.graphics.Path;
import android.graphics.RectF;
import android.util.AttributeSet;
import com.natasa.progressviews.utils.ProgressStartPoint;
import com.natasa.progressviews.utils.ShapeType;
        this.startPosInDegrees = position.getValue();
    }


    private void drawGradientColor() {
        if (isGradientColor)
            setLinearGradientProgress(gradColors);
    }

    public void setLinearGradientProgress(boolean isGradientColor) {
        this.isGradientColor = isGradientColor;
    }

    public void setLinearGradientProgress(boolean isGradientColor, int[] colors) {
        this.isGradientColor = isGradientColor;
        gradColors = colors;

    }

    private void setLinearGradientProgress(int[] gradColors) {
        if (gradColors != null)
            colorHelper.setGradientPaint(foregroundPaint, left, top, right, bottom, gradColors);
        else
            colorHelper.setGradientPaint(foregroundPaint, left, top, right, bottom);

    }

    @Override
    public ShapeType setType(ShapeType type) {
        // TODO Auto-generated method stub
// Path: progressviewslib/src/main/java/com/natasa/progressviews/utils/ProgressStartPoint.java
// public enum ProgressStartPoint {
// 	
// 	DEFAULT(-90), LEFT(180), RIGHT(0), BOTTOM(90);
// 	int value;
// 	private ProgressStartPoint(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/CircleSegmentBar.java
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Path;
import android.graphics.RectF;
import android.util.AttributeSet;
import com.natasa.progressviews.utils.ProgressStartPoint;
import com.natasa.progressviews.utils.ShapeType;

        this.startPosInDegrees = position.getValue();
    }


    private void drawGradientColor() {
        if (isGradientColor)
            setLinearGradientProgress(gradColors);
    }

    public void setLinearGradientProgress(boolean isGradientColor) {
        this.isGradientColor = isGradientColor;
    }

    public void setLinearGradientProgress(boolean isGradientColor, int[] colors) {
        this.isGradientColor = isGradientColor;
        gradColors = colors;

    }

    private void setLinearGradientProgress(int[] gradColors) {
        if (gradColors != null)
            colorHelper.setGradientPaint(foregroundPaint, left, top, right, bottom, gradColors);
        else
            colorHelper.setGradientPaint(foregroundPaint, left, top, right, bottom);

    }

    @Override
    public ShapeType setType(ShapeType type) {
        // TODO Auto-generated method stub
        return ShapeType.SEGMENT_CIRCLE;