Mimicking Zoom bar from Office 2007 in Java (Modified JSlider)?

I believe you can get all of this behavior with a custom BoundedRangeModel. The key is to make the model report a normal type of range of values but treat it differently when you want your zoom factor.

I believe you can get all of this behavior with a custom BoundedRangeModel. The key is to make the model report a normal type of range of values but treat it differently when you want your zoom factor. So for example if you let your range run from 0 - 100, you'd treat 0-50 one way and 50-100 another way (10-100% and 100-500% respectively).

To get the snap behavior, I'm pretty sure you can just override setValue() to snap the range you want. So using 0-100 as the value range, if setValue() is called with 47-53 then just snap the value to 50.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions