You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
daviddiana11 edited this page Jul 20, 2023
·
2 revisions
Introduction
jcgm is an open source Java implementation to interpret and render Computer Graphics Metafile (CGM) graphics files.
If is distributed as two packages, a core package release under the Cougaar Open Source License and an image package released under a BSD license.
The core package provides the basic interpretation and rendering functionality and the image package implements an ImageIO plugin for reading CGM files and an XML Graphics loader for displaying CGM graphics in a PDF file by using FOP.
Thread-safety
JCGM is thread-safe as of v1.0.0.
However, beware:
do not share a CGM class instance between several threads. There might still be concurrency issues
if you use the jcgm-image API, do not share the ImageReader instance between threads neither. Indeed, it is repainting the image and could lead to concurrency issues. Sharing such an instance should not happen because a PDF should only be printed in a single thread anyway; but just in case.