You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Stephan Zuiderwijk <st...@technolution.nl> on 2006/03/07 10:01:19 UTC

Overide PanInteractor

Hi,
 
Is there a way to override the PanInteractor of a JSVGCanvas?  
 
Thanks in advance,
 
Stephan Zuiderwijk

 

Re: Overide PanInteractor

Posted by André Ávila <as...@nextech.com.br>.
Hello Stephan,

Yes, you can override the PanInteractor (or any other interactor, for that matter). Just subclass AbstractPanInteractor and implement the behavior you want. 

To use it you must disable the default interactor by calling setEnablePanInteractor(false) in your JSVGCanvas, and then register your custom interactor by calling svgCanvas.getInteractors().add(customPanInteractor).

Hope this helps.

André
  ----- Original Message ----- 
  From: Stephan Zuiderwijk 
  To: batik-users@xmlgraphics.apache.org 
  Sent: Tuesday, March 07, 2006 6:01 AM
  Subject: Overide PanInteractor


  Hi,

  Is there a way to override the PanInteractor of a JSVGCanvas?  

  Thanks in advance,

  Stephan Zuiderwijk





------------------------------------------------------------------------------


  No virus found in this incoming message.
  Checked by AVG Free Edition.
  Version: 7.1.375 / Virus Database: 268.2.0/275 - Release Date: 6/3/2006