Release Notes Version: $Revision: 1.4 $.
The most recent version of this file is available here. Release notes for all versions of the VectorGraphics package are available here.
The VectorGraphics package of FreeHEP Java Library enables any Java program to export to a variety of vector graphics formats as well as bitmap image formats. Among the vector formats are PostScript, PDF, EMF, SVF, SWF and CGM, while the image formats include GIF, PNG, JPG and PPM.
The package uses the standard java.awt.Graphics2D class as its interface to the user program. Coupling this package to a standard Java program is therefore quite easy. It also comes with a dialog box which allows you to choose between all the formats mentioned above and set specific parameters for them.
The following documentation is currently available:
The VectorGraphics package is part of the FreeHEP Java Library, an "Open Source" library distributed under the terms of the LGPL. If you have questions about the licensing please send a mail to: developers@freehep.org.
Download VectorGraphics and unpack. The distribution creates the following directory structure:
VectorGraphics-version containing license and release notes VectorGraphics-version/examples containing examples VectorGraphics-version/lib containing jar files
The current distribution does not contain source files.
To (re-)build the VectorGraphics package you need to get VectorGraphics-1.2.2-src.zip or .tar.gz file from the ftp://ftp.slac.stanford.edu/software/freehep/VectorGraphics/v1.2.2/ directory.
To compile it, follow the general instructions for Building the Java FreeHEP Library and compile only the VectorGraphics jar files using the commands:
ant -Djar=graphics2d ant -Djar=graphicsio ant -Djar=graphicsio-cgm ant -Djar=graphicsio-emf ant -Djar=graphicsio-gif ant -Djar=graphicsio-java ant -Djar=graphicsio-pdf ant -Djar=graphicsio-ppm ant -Djar=graphicsio-ps ant -Djar=graphicsio-svg ant -Djar=graphicsio-swf
To build the distribution kit:
cd org/freehep/graphicsio gmake dist
Add the following libraries to your CLASSPATH:
freehep-graphics2d.jar freehep-base.jar
Add the following libraries to your CLASSPATH:
freehep-graphicsio.jar freehep-graphics2d.jar freehep-base.jar
Then add any of the following jar files to your CLASSPATH to enable that format for output:
freehep-graphicsio-cgm.jar freehep-graphicsio-emf.jar freehep-graphicsio-gif.jar freehep-graphicsio-java.jar freehep-graphicsio-pdf.jar freehep-graphicsio-ppm.jar freehep-graphicsio-ps.jar freehep-graphicsio-svg.jar freehep-graphicsio-swf.jar
The following limitations exist:
To report bugs or request enhancements you may use the FreeHEP bug database, component VectorGraphics.
The VectorGraphics/examples directory contains: