Shamjith K V wrote:
I was trying the zooming of JSVGCanvas Horizontally. It has an inherited method
for for zooming using "Ctrl" + "LeftMouseClick and Drag".
Would you please suggest me to customize the zooming such way that
it will zoom the canvas only Horizontally.

  You will have to disable the current zoomInteractor
(JSVGCanvas.setEnableZoomInteractor(false)) and
replace it with a custom subclass of
batik.swing.gvt.AbstractZoomInteractor,  most importantly
you will want to replace the mouseReleased function so it
only applies the scaleX, xStart.  You could also modify the
way the overlay is painted so it is more representative.


I have tried to override the method "ZoomAction(double scalex, double scaley)", but its being a constructor, it didnot work.
Would you please suggest me to customize the zooming such way that
it will zoom the canvas only Horizontally.

    There are some 'zoom actions' which are bound to keys, and
the tool bar buttons you could also replace those actions in the
JSVGCanvas's action map.

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

Reply via email to