Uploaded image for project: 'Batik'
  1. Batik
  2. BATIK-955

Allow disabling key-based canvas interactors (or disable them together with mouse-based interactors)

    XMLWordPrintableJSON

    Details

      Description

      The JSVGCanvas class [1] supports several canvas interactors [2], key-based and mouse-based (both often using key modifiers). The mouse-based can be disabled, using the setEnable*Interactor() [1][2]; the key-based ones currently cannot be disabled without extending the class.

      There's a good description of the problem [3] and a proposed workaround [4] (through extending the class).

      The idea would be either:
      1. Implement more setEnable*Interactor() methods to allow disabling key-based interactors: cursor keys, zoom in/out as well and maybe the reset transform as well;
      2. Adjust the setEnable*Interactor() methods to disable the key-based interaction as well. So, for example, "setEnablePanInteractor" method would disable the cursor key interaction as well (including the shift key modifier).

      This can be seen either as an enhancement or a minor bug report (in the sense that currently there's already functionality for disabling mouse-based canvas interactors).

      [1] http://xmlgraphics.apache.org/batik/javadoc/org/apache/batik/swing/JSVGCanvas.html
      [2] http://wiki.apache.org/xmlgraphics-batik/CanvasInteractors
      [3] http://mail-archives.apache.org/mod_mbox/xmlgraphics-batik-users/201008.mbox/browser#msg-21
      [4] http://mail-archives.apache.org/mod_mbox/xmlgraphics-batik-users/201008.mbox/browser#msg-22

        Attachments

          Activity

            People

            • Assignee:
              batik-dev@xmlgraphics.apache.org Batik Developer's Mailing list
              Reporter:
              helder.magalhaes@gmail.com Helder Magalhães
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: