I am writing a SpreadSheet application and I would like to implement
printing in my application in such a way that the background is set to
white and the foreground is set to black. i'd rather the user didn't
have to see the cell flash colors when this happens, and not have to
worry about timing issues, so the way i'd like to do this would be to
print a clone of the current cell. unfortunately, SSCells don't
implement clone(). what's my best bet for achieving this end?
-john
Bill Hibbard wrote:
>
> Hi Igor,
>
> > is it possible to print the content of a Display into a graphics file or on
> > a printer.
>
> You can use the DisplayImpl.getImage() method to get a
> BufferedImage of the display contents, then create a JPEG
> as in visad.ss.BasicSSCell.captureImage(). Note that if
> you do this from a GUI callback, you need to wrap the code
> in its own Thread, as in visad.ss.FancySSCell.captureDialog().
>
> To print display contents, see the javadoc comments to
> visad.DisplayImpl.getPrintable().
>
> Good luck,
> Bill
> ----------------------------------------------------------
> Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI 53706
> hibbard@xxxxxxxxxxxxxxxxx 608-263-4427 fax: 608-263-6738
> http://www.ssec.wisc.edu/~billh/vis.html
--
John Brecht Software Engineer
650-859-2325(voice) Center for Technology in Learning, SRI Int'l
650-859-3673(fax) 333 Ravenswood Avenue
john.brecht@xxxxxxx Menlo Park, CA 94025