Hi Thomas,
> Care to share your changes?
Sorry for my bad english - I'm not sure about the meaning of 'Care to'.
Do you mean if I want to publish my changes ?

I changed the instanciation of AbstractZoomInteractor() in JSVGCanvas. Where the startInteraction() method was overwritten, I add mouseReleased() to overwrite this method too. In the method implementation I only changed the line
if ((xCurrent - xStart) != 0 && (yCurrent - yStart) != 0) ...
to
if (Math.abs(xCurrent - xStart) > 10 && Math.abs(yCurrent - yStart) > 10)
to discard 'small mouse events' less than 10 pixels mouse movement

If you think, this is useful for all Batik users, we can change AbstractZoomInteractor.mouseReleased(), add a member for the pixel value and add a set() method to allow changing this member. Default could be 0, so we have no different standard behaviour...

Maik


Thomas DeWeese schrieb:
Hi Maik,

Maik Schürer wrote:


I want to check the size of the rectangle when I zoom in via mouse (Ctrl
+ left mouse button).
When the size of the rectangle is to small, I want discard this event.
What is the best way to do this ? Which class has the mouseReleased()
inside I'm looking for ?


   The class is 'org.apache.batik.swing.gvt.AbstractZoomInteractor'.

   Care to share your changes?


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to