Displaying "Interactive" Graphics?

So currently I have a simple java swing application that loads an externally created svg drawing, adds some listeners to certain IDs/elements of the image and then performs certain actions when they are clicked, like rotating them by n° depending on a certain value that is loaded from a database.

Now I want to add something similar to a web application that uses Vaadin, but I’m a bit lost as to what would be a good approach to realize that.

Hope somebody has an idea