Logarithmic BoundedRangeModel extension anyone?
843807Oct 21 2009 — edited Apr 22 2010I have searched here and everywhere else for how to customize a BoundedRangeModel so it is Logarithmic. That is, I have a min of 0, a max of 10000000 or some other large value, but have the ranges between the "ticks" increase as the scale moves right such that moving the slider 1 tick from 0 doesn't change the value to 300000, but to 100 (or whatever the math works out to for the range).
My coding experiments have not proved fruitful. I created a duplicate of DefaultBoundedRangeModel with simple System.out.printlns everywhere, but, for some unknown reason the thing calls getMaximum about a billion times in a row.
I even tried making sense of the FollowerRangeModel and the ConverterRangeModel examples here, but I've got some kind of mental block for what's going on.
Please, has anyone mastered the BoundedRangeModel so they can explain it to me in a way so I can willfully customize them? I'll settle for a pre-coded Logarithmic model for now, but I'm aiming for a mapped range model, so I can say that 0=0, 1000=1000, but when the slider is at 500, the model says it is 100, or something similar.