samsoffes/sstoolkit — pull request #132 by somethingkindawierd (2012-07-26 15:28:43+00:00)
Title: Arbitrary starting angle for PieView

I had a need for a pie view that started at an arbitrary angle. Furthermore, the pie represented 100% at an arbitrary max value < 1. Specifically the pie had to start at -153 degrees and represented a complete process at 85% arc.

I adjusted the PieView class to allow for an arbitrary starting angle, min, and max values, as well as adjusting the setProgress method to scale the progress value of 0.0 to 1.0 to fit within the user-defined min/max values, e.g. in my case it scales the max value of 1.0 to become .85.

I have made corresponding changes to the SSCatalog project to demonstrate the PieView changes.