// Path: progressviewslib/src/main/java/com/natasa/progressviews/utils/OnProgressViewListener.java
// public interface OnProgressViewListener {
// 	public void onFinish();
// 
// 	public void onProgressUpdate(float progress);
// 
// 	void setProgress(float prog);
// 
// 	int getprogress();
// }
// 
// Path: progressviewslib/src/main/java/com/natasa/progressviews/utils/ProgressShape.java
// public interface ProgressShape {
// 	public ShapeType setType(ShapeType type);
// }
// 
// 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;
// 	}
// }


import android.view.ViewGroup;
import android.view.animation.DecelerateInterpolator;
import com.natasa.progressviews.utils.OnProgressViewListener;
import com.natasa.progressviews.utils.ProgressShape;
import com.natasa.progressviews.utils.ProgressStartPoint;
import android.animation.ObjectAnimator;
import android.animation.ValueAnimator;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.os.Build;
import android.util.AttributeSet;
import android.view.View;
/*
 * ProgressViews
 * Copyright (c) 2015  Natasa Misic
 *
 *
 *     This program is free software: you can redistribute it and/or modify
 *     it under the terms of the GNU General Public License as published by
 *     the Free Software Foundation, either version 3 of the License, or
 *     (at your option) any later version.
 *
 *     This program is distributed in the hope that it will be useful,
 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *     GNU General Public License for more details.
 *
 *     You should have received a copy of the GNU General Public License
 *     along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

package com.natasa.progressviews;



abstract class ProgressView extends View implements ProgressShape {

    protected float progress = 0;
    protected float strokeWidth = getResources().getDimension(
            R.dimen.default_stroke_width);
    protected float backgroundStrokeWidth = getResources().getDimension(
            R.dimen.default_background_stroke_width);
    protected int backgroundColor = getResources().getColor(R.color.background_color);
    protected int color = getResources().getColor(R.color.progress_color);
    protected int height;
    protected int width;
    protected int min;
    protected Paint backgroundPaint;
    protected Paint foregroundPaint;
    private String PROGRESS = getResources().getString(R.string.progress);
// Path: progressviewslib/src/main/java/com/natasa/progressviews/utils/OnProgressViewListener.java
// public interface OnProgressViewListener {
// 	public void onFinish();
// 
// 	public void onProgressUpdate(float progress);
// 
// 	void setProgress(float prog);
// 
// 	int getprogress();
// }
// 
// Path: progressviewslib/src/main/java/com/natasa/progressviews/utils/ProgressShape.java
// public interface ProgressShape {
// 	public ShapeType setType(ShapeType type);
// }
// 
// 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/ProgressView.java
import android.view.ViewGroup;
import android.view.animation.DecelerateInterpolator;
import com.natasa.progressviews.utils.OnProgressViewListener;
import com.natasa.progressviews.utils.ProgressShape;
import com.natasa.progressviews.utils.ProgressStartPoint;
import android.animation.ObjectAnimator;
import android.animation.ValueAnimator;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.os.Build;
import android.util.AttributeSet;
import android.view.View;

/*
 * ProgressViews
 * Copyright (c) 2015  Natasa Misic
 *
 *
 *     This program is free software: you can redistribute it and/or modify
 *     it under the terms of the GNU General Public License as published by
 *     the Free Software Foundation, either version 3 of the License, or
 *     (at your option) any later version.
 *
 *     This program is distributed in the hope that it will be useful,
 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *     GNU General Public License for more details.
 *
 *     You should have received a copy of the GNU General Public License
 *     along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

package com.natasa.progressviews;



abstract class ProgressView extends View implements ProgressShape {

    protected float progress = 0;
    protected float strokeWidth = getResources().getDimension(
            R.dimen.default_stroke_width);
    protected float backgroundStrokeWidth = getResources().getDimension(
            R.dimen.default_background_stroke_width);
    protected int backgroundColor = getResources().getColor(R.color.background_color);
    protected int color = getResources().getColor(R.color.progress_color);
    protected int height;
    protected int width;
    protected int min;
    protected Paint backgroundPaint;
    protected Paint foregroundPaint;
    private String PROGRESS = getResources().getString(R.string.progress);
    protected int startPosInDegrees = ProgressStartPoint.DEFAULT.ordinal();