Bug 49762 - Allow disabling key-based canvas interactors (or disable them together with mouse-based interactors)
Summary: Allow disabling key-based canvas interactors (or disable them together with m...
Status: NEW
Alias: None
Product: Batik - Now in Jira
Classification: Unclassified
Component: SVG Viewer (show other bugs)
Version: 1.8
Hardware: All All
: P4 enhancement
Target Milestone: ---
Assignee: Batik Developer's Mailing list
URL: http://mail-archives.apache.org/mod_m...
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-17 09:25 UTC by Helder Magalhães
Modified: 2010-08-17 09:25 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Helder Magalhães 2010-08-17 09:25:19 UTC
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