Swing is a UI toolkit and generating CGM is beyond its scope.

I don't know of any solution currently.
As you are perhaps hinting at and someone else suggested if you
can select a postscript printer and print to a file then you may
be able to find a converter from PS to CGM. This is ugly however
and made more so by the lack of an API to silently specify printing to a file
(currently it can only be specified through user interaction)

Saving 2D graphics to some kind of metafile may be supported in
the future, quite possibly based on the W3C's SVG standard under
development. Converters will likely exist between the SVG standard
and CGM. However that's a long way in the future and won't help you now.

-Phil.

>
> I have an application that renders a bunch of graphics into
> a JScrollPane.
>
> In the industry I work in most people use big electrostatic
> plotters.  Typically they rasterize these huge CGM plot
> files and then send the output to the plotters.
>
> Postscript rasterizers do exist but are not common.
>
> Is there a way I can output CGM from Swing components?
>
> Thanks for any suggestions,

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to