I was wondering if there exists a library or an easy way to create plot areas (such as graphs) that can be dragged within the window. A typical graph is comprised of a lot of items such as the plot points, lines, axes, etc. I don't need anything advanced since I just want to make a static copy of a plot area and move it to a sandbox for the user to play around with.
I was thinking of using a library/tool within code to take a "screen shot" of a portion of the window (the plot area), save it as a png/jpg and make it pop up inside of the sandbox area and then have it be able to be dragged within that area.
Does something like this exist?
Edit 1: Alright, I have found the robot example (
http://www.rgagnon.com/javadetails/java-0489.html) to capture parts of the screen, however by using absolute coordinates, I am capturing parts of the screen that are not within the processing window. It looks like I can take in a JFrame object and capture parts from there but I'm not sure if processing uses JFrames. Also I don't think this method is going to work for things such as an internet applet.