How to export vector graphics files to the system clipboard?
I am using the freehep vector graphics package for java (available at java.freehep.org) and want to copy the information of an EMF file to the Windows system clipboard. I am pretty sure it is possible, since it is talked about in the description of class VectorGraphicsTransferable (http://java.freehep.org/doc/release/v1.2.2/doc/api/index.html), but I have found no description this far how to do it. I am somewhat familiar with clipboard use in Java and know how to copy jpg/gif/png files to the system clipboard. Using the freehep package it is also very easy to paint vector graphics directly from within a Java program to the clipboard:
VectorGraphicsTransferable imageSelection = new VectorGraphicsTransferable(frame);
But how to transfer the contents of a vector graphics *file* to the clipboard from within a Java program? Is there any simple way to do it or do you have to use a lot of "low level" code? Anyone knows??