Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.77 KB | None | 0 0
  1. addSVGLoadEventDispatcherListener(new SVGLoadEventDispatcherAdapter() {
  2.  
  3.             public void svgLoadEventDispatchStarted(
  4.                     SVGLoadEventDispatcherEvent e) {
  5.                 // At this time the document is available...
  6.                 document = getSVGDocument();
  7.                 // ...and the window object too.
  8.                 window = getUpdateManager().
  9.                         getScriptingEnvironment().createWindow();
  10.  
  11.          window.setTimeout(new Runnable() {
  12.  
  13.              public void run() {
  14.                         document = getSVGDocument();
  15.                         Element elt = document.getElementById("idAguja1");
  16.                         elt.setAttributeNS(null, "transform", "rotate(45,10,260)");
  17.                  }
  18.                }, 10);
  19.             }
  20.         });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement