Overview of the Shape Tools download package libraries
The ShapeTools software divides into applications and libraries. Because not all applications require
all library capabilities, the library code is separated according to it's function. It is hoped that,
by this separation, each application need include only the library functions it requires.
- ArrayIO.jar - contains Java classes that read and write data arrays from a variety of file formats (current version has minimal contents).
- ImageJAdapter.jar - contains ImageJ plugins, and supporting code, that enables the NIH ImageJ viewer to display some of our file formats.
- ShapeToolsApps.jar - contains Java classes useful in creating user applications.
- ShapeToolsData.jar - contains Java classes that provide a common interface to reading and writing a variety of Java data sources and destinations.
- DXJava.jar - contains Java classes that read a subset of the OpenDX general file format.
- ShapeToolsCore.jar - contains the core data model of the ShapeTools library, and the ShapeTools math classes.
- ShapeToolsIO.jar - contains file format readers and writers.
If you prefer to link to a single library then the ShapeTools.jar library may be useful:
- ShapeTools.jar - a convenient collection of these libraries: DXJava, ArrayIO, ShapeToolsApps, ShapeToolsData, ShapeToolsCore, ShapeToolsIO.
Using the single ShapeTools library, a typical java compile command would look like this,
javac -classpath .:ShapeTools.jar MyClass.java
Or, with multiple libraries (for example, if your application needs only the ShapeToolsApps and ShapeToolsCore libraries):
javac -classpath .:ShapeToolsApps.jar:ShapeToolsCore.jar MyClass.java
The MyClass source code might look like this:
import edu.ucla.loni.ccb.shape.About;
/**
* A simple class illustrating the use of the ShapeTools library.
*/
public class MyClass
{
public static void main(String [] args)
{
System.out.println("Hello ShapeTools World.");
System.out.println("ShapeTools Version:" + About.version());
}
}
The above program would then be run via;
java -classpath .:ShapeTools.jar MyClass
and produces this output:
Hello ShapeTools World.
ShapeTools Version:1.3.5