You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-commits@xmlgraphics.apache.org by Apache Wiki <wi...@apache.org> on 2012/06/22 16:12:48 UTC
[Xmlgraphics-batik Wiki] Trivial Update of "DragTutorial" by drool
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Xmlgraphics-batik Wiki" for change notification.
The "DragTutorial" page has been changed by drool:
http://wiki.apache.org/xmlgraphics-batik/DragTutorial?action=diff&rev1=3&rev2=4
Comment:
display java code with syntax highlighting
The code provided is a snippet with suggestions, on how to implement a drag operation in a JSVGCanvas. It is identical as the post I submitted in the Batik Mail list. A more detailed drag tutorial is in the works, with explanations about how to handle draggable <g> elements and the transform/translate attribute.
=== The Post ===
- {{{
+ {{{#!java
You need to implement listeners for the mouseevents:
public void registerListeners() {