Code example for AtomicBoolean

0
 * View. 
 *  
 * @author Justin Wetherell <phishman3579@gmail.com> 
 */ 
public class RotatableImageView extends View {
    private static final AtomicBoolean drawing = new AtomicBoolean(false);
    private static final Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG);
 
    private static int parentWidth = 0;
    private static int parentHeight = 0;
    private static Matrix matrix = null;
    private static Bitmap bitmap = null;
    private int rotationValue;
    private boolean isCompassEnabled;
 
    public RotatableImageView(Context context) {
        super(context);
 
        initialize(); 
    }