fr.castorflex.android.circularprogressbar
Class CircularProgressDrawable

java.lang.Object
  extended by android.graphics.drawable.Drawable
      extended by fr.castorflex.android.circularprogressbar.CircularProgressDrawable
All Implemented Interfaces:
android.graphics.drawable.Animatable

public class CircularProgressDrawable
extends android.graphics.drawable.Drawable
implements android.graphics.drawable.Animatable


Nested Class Summary
static class CircularProgressDrawable.Builder
           
static interface CircularProgressDrawable.OnEndListener
           
static class CircularProgressDrawable.Style
           
 
Nested classes/interfaces inherited from class android.graphics.drawable.Drawable
android.graphics.drawable.Drawable.Callback, android.graphics.drawable.Drawable.ConstantState
 
Field Summary
static android.view.animation.Interpolator END_INTERPOLATOR
           
 
Method Summary
 void draw(android.graphics.Canvas canvas)
           
 int getOpacity()
           
 boolean isRunning()
           
protected  void onBoundsChange(android.graphics.Rect bounds)
           
 void progressiveStop()
           
 void progressiveStop(CircularProgressDrawable.OnEndListener listener)
           
 void setAlpha(int alpha)
           
 void setColorFilter(android.graphics.ColorFilter cf)
           
 void setCurrentRotationAngle(float currentRotationAngle)
           
 void setCurrentSweepAngle(float currentSweepAngle)
           
 void start()
           
 void stop()
           
 
Methods inherited from class android.graphics.drawable.Drawable
clearColorFilter, copyBounds, copyBounds, createFromPath, createFromResourceStream, createFromResourceStream, createFromStream, createFromXml, createFromXmlInner, getAlpha, getBounds, getCallback, getChangingConfigurations, getConstantState, getCurrent, getIntrinsicHeight, getIntrinsicWidth, getLevel, getMinimumHeight, getMinimumWidth, getPadding, getState, getTransparentRegion, inflate, invalidateSelf, isAutoMirrored, isStateful, isVisible, jumpToCurrentState, mutate, onLevelChange, onStateChange, resolveOpacity, scheduleSelf, setAutoMirrored, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setDither, setFilterBitmap, setLevel, setState, setVisible, unscheduleSelf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

END_INTERPOLATOR

public static final android.view.animation.Interpolator END_INTERPOLATOR
Method Detail

draw

public void draw(android.graphics.Canvas canvas)
Specified by:
draw in class android.graphics.drawable.Drawable

setAlpha

public void setAlpha(int alpha)
Specified by:
setAlpha in class android.graphics.drawable.Drawable

setColorFilter

public void setColorFilter(android.graphics.ColorFilter cf)
Specified by:
setColorFilter in class android.graphics.drawable.Drawable

getOpacity

public int getOpacity()
Specified by:
getOpacity in class android.graphics.drawable.Drawable

onBoundsChange

protected void onBoundsChange(android.graphics.Rect bounds)
Overrides:
onBoundsChange in class android.graphics.drawable.Drawable

start

public void start()
Specified by:
start in interface android.graphics.drawable.Animatable

stop

public void stop()
Specified by:
stop in interface android.graphics.drawable.Animatable

progressiveStop

public void progressiveStop(CircularProgressDrawable.OnEndListener listener)

progressiveStop

public void progressiveStop()

isRunning

public boolean isRunning()
Specified by:
isRunning in interface android.graphics.drawable.Animatable

setCurrentRotationAngle

public void setCurrentRotationAngle(float currentRotationAngle)

setCurrentSweepAngle

public void setCurrentSweepAngle(float currentSweepAngle)