Hi Mistercaste,

mistercaste <misterca...@gmail.com> wrote on 03/17/2010 02:07:56 PM:

> I need a feature similar to "
> http://old.nabble.com/Zoom-Out-Limit-to23942547.html#a26368841 zoom out
> limit ", but exactly the opposite.
> I need to bound my Swing application to stop it's zoom on a scalar
> constant value and, in case that a user keeps zooming inside it, the
> application returns the same rendering transform as before the zoom
> operation.

   I would suggest subclassing the canvas and overriding 
setRenderingTransform.  Then you can quick check if the new
transform's determinate is < than your limit if it is call 
super.setRenderingTransform otherwise simply return.

Reply via email to