[kepler-dev] Kepler snapshot capability
Edward A. Lee
eal at eecs.berkeley.edu
Tue May 29 21:35:04 PDT 2007
I routinely print to PDF, using Adobe Acrobat.
Works well...
Edward
At 04:43 PM 5/29/2007, Lisong Sun wrote:
>Dear Kepler developers,
>
>Our project needs to generate a thumbnail kind of snapshot of current
>workflow so that people can have a preview of the workflow in our
>workflow organizer application before open it with Kepler. I found that
>the Print menu option can be used for export a ps file of current
>workflow window but it won't work for our case. I wonder if the snapshot
>generation/export capability or function is available anywhere? If not,
>is there any possible solution you can suggest?
>Thanks.
>
>Lisong Sun
>Pacific Northwest National Lab.
>
>======================================
>Print function from Top.java
> /** Print the contents. If this frame implements either the
> * Printable or Pageable then those interfaces are used to print
> * it.
> */
> protected void _print() {
> PrinterJob job = PrinterJob.getPrinterJob();
>
> if (this instanceof Pageable) {
> job.setPageable((Pageable) this);
> } else if (this instanceof Printable) {
> PageFormat format = job.pageDialog(job.defaultPage());
> job.setPrintable((Printable) this, format);
> } else {
> // Can't print it.
> return;
> }
>
> if (job.printDialog()) {
> try {
> job.print();
> } catch (Exception ex) {
> MessageHandler.error("Printing Failed", ex);
> }
> }
> }
>_______________________________________________
>Kepler-dev mailing list
>Kepler-dev at ecoinformatics.org
>http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-dev
------------
Edward A. Lee
Chair of EECS and Robert S. Pepper Distinguished Professor
231 Cory Hall, UC Berkeley, Berkeley, CA 94720-1770
phone: 510-642-0253, fax: 510-642-2845
eal at eecs.Berkeley.EDU, http://ptolemy.eecs.berkeley.edu/~eal
More information about the Kepler-dev
mailing list