Release Notes Version: $Revision: 10163 $.
The most recent version of this file is available at http://java.freehep.org/vectorgraphics/ReleaseNotes-2.1.html.
Release notes for all versions of the VectorGraphics package are available at http://java.freehep.org/vectorgraphics/ReleaseNotes.html.
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, and (Flash) SWF. The image formats include GIF, PNG, JPG, BMP, WBPM and PPM. All image formats included in the Java runtime, as well as any in the Java Advanced Imaging package (if installed) are also be available. A special JAVA export format will write a java file with all the calls your application makes to Graphics2D. This java file can help us debug any potential problems.
The formats CGM and LaTeX have not been released in version 2.1. They may be released at a later date/version.
The package uses the standard java.awt.Graphics2D class as its interface to the user program. Using this package from any Java GUI 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.
This version is binary compatible at the java.awt.Graphics2d level with version 2.0. However if you used classes/methods from the low-level format drivers or have used methods of the VectorGraphics class or its descendants you may have to adjust your code and recompile.
This version runs on Java 1.4.2 and up, but has only been tested mildly in Java 1.6.0.
Below the major changes in general and by format:
The following documentation is currently available:
To better understand the behaviour of the VectorGraphics package for different usage on different Operating Systems and with different JDK's we publish the test results (and a PNG reference) on our website: http://java.freehep.org/vectorgraphics.
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: firstname.lastname@example.org.
All distributions for the VectorGraphics package can be donwloaded from ftp://ftp.slac.stanford.edu/software/freehep/VectorGraphics/v2.1.
Download the binary distribution vectorgraphics-2.1-bin.tar.gz or the .zip file and unpack. It creates the following directory structure:
vectorgraphics-2.1 containing license and release notes vectorgraphics-2.1/bin empty vectorgraphics-2.1/examples containing examples vectorgraphics-2.1/lib containing jar files
You may optionally download the documentation distribution vectorgraphics-2.1-doc.tar.gz or the .zip file and unpack. It creates the following directory structure:
vectorgraphics-2.1/doc empty vectorgraphics-2.1/site containing a copy of the website, including these release notes.
The source distribution contain all source files and can be used for recompilation. Unless you wish to make modifications, you can just use the binary distribution.
To (re-)build the VectorGraphics package you need:
Get the source code in one of the following ways:
cd vectorgraphics-2.1 svn co svn://svn.freehep.org/svn/freehep/tags/vectorgraphics-2.1 src
cd vectorgraphics-2.1 svn co svn://svn.freehep.org/svn/freehep/trunk/vectorgraphics src
All of these will create a directory in which you will find all VectorGraphics modules:
vectorgraphics-2.1/src/freehep-graphics2d vectorgraphics-2.1/src/freehep-graphics3d (to be ignored) vectorgraphics-2.1/src/freehep-graphicsio vectorgraphics-2.1/src/freehep-graphicsio-cgm (not included in this release, but available for compilation) vectorgraphics-2.1/src/freehep-graphicsio-emf vectorgraphics-2.1/src/freehep-graphicsio-java vectorgraphics-2.1/src/freehep-graphicsio-latex (not included in this release, but available for compilation) vectorgraphics-2.1/src/freehep-graphicsio-pdf vectorgraphics-2.1/src/freehep-graphicsio-ps vectorgraphics-2.1/src/freehep-graphicsio-svg vectorgraphics-2.1/src/freehep-graphicsio-swf vectorgraphics-2.1/src/freehep-graphicsio-tests vectorgraphics-2.1/src/pom.xml vectorgraphics-2.1/src/site/... (the website and files for building the distributions) vectorgraphics-2.1/src/.. (other files)
To compile and run the tests type the following:
cd vectorgraphics-2.1/src mvn
To recreate the full distribution
cd vectorgraphics-2.1/src mvn javadoc:javadoc (creates aggregated apidoc) mvn site:site (creates top-level site, module-sites and module-apidoc) mvn install assembly:attached (compiles, runs tests and creates -bin, -doc and -src distributions)
For further instructions see the FreeHEP WebSite.
Add the following libraries to your CLASSPATH:
freehep-graphics2d-2.1.jar freehep-export-2.1.jar openide-lookup-1.9-patched-1.0.jar freehep-swing-2.0.2.jar freehep-util-2.0.2.jar
Add the following libraries to your CLASSPATH:
freehep-graphicsio-2.1.jar freehep-io-2.0.2.jar freehep-graphics2d-2.1.jar freehep-export-2.1.jar openide-lookup-1.9-patched-1.0.jar freehep-swing-2.0.2.jar freehep-util-2.0.2.jar
Then add any or all of the following jar files to your CLASSPATH to enable these vector format as output:
freehep-graphicsio-emf-2.1.jar jdom-1.0.jar (needed by freehep-graphicsio-emf for the EMF2SVG converter) freehep-graphicsio-pdf-2.1.jar freehep-graphicsio-ps-2.1.jar freehep-graphicsio-svg-2.1.jar freehep-xml-2.0.1.jar (needed by freehep-graphicsio-svg) freehep-graphicsio-swf-2.1.jar
To run any of the tests you must also add:
freehep-graphicsio-tests-2.1.jar jas-plotter-2.0.jar junit-3.8.2.jar
To debug and write out a java file add:
All of the jar files listed above, including the -javadoc and -source jar attachements are available from our maven servers:
The following limitations exist:
The VectorGraphics-version/examples directory contains: