I did all this stuff and life is happy. However, I have one problem that seems to affect the ruler for picas, cm, and mm. If an integer or equivalent double is sent into the getTickResolutionIndex method, it always returns the last element in the tickResolution array.
Labels are in the right places, but the tick size is wrong.
Just got it narrowed down this morning. Thought I'd share. OKAY, sorry about the lack of comments in MiRuler. Hope that helps. OKAY, sorry about the lack of comments in MiRuler.