Re: printing three display components

Hi Rakesh,

I don't know that much about printing in Java, but looking at
the DisplayImpl.getPrintable() method, it appears you could
construct a Printable object in whose print() method you create
a BufferedImage consisting of a synthesis of the three displays
(in whatever orientation you desire).  Use DisplayImpl.getImage()
to grab a BufferedImage with the contents of a VisAD Display.
See DisplayImpl.getPrintable() for an example of using the
Printable interface to send BufferedImages to the printer.

There could be an easier way, but that's really more of a Java
programming question, rather than a VisAD question.

-Curtis

At 01:03 PM 7/24/2003, you wrote:
>Hi everyone,
>                   I have got three displays in an application.One is a 3D 
> graph and two others are 2D graphs. I was able to print each display 
> individually but i am not able to print all together.
>               my arrangement of displays is like this
> 
>******************************************************************************************************
>*                                                                 *
>*                                                                 *            
>      2D display
>*                                                                 *
>*                   3D display                               *
>*                                                                 
>************************************************
>*                                                                 *
>*                                                                 *            
>      2D display
>*                                                                 *
>*                                                                 *
>******************************************************************************************************
>              I would like to print as arranged in application
> 
>thanks,
>Rakesh
> 
>
>
>Do you Yahoo!?
><http://pa.yahoo.com/*http://rd.yahoo.com/evt=1207/*http://promo.yahoo.com/sbc/>SBC
> Yahoo! DSL - Now only $29.95 per month! 


  • 2003 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: