AI Java Exporter v0.0b01 ************************ Welcome to Java Class exporter for Adobe Illustrator. This plug-in along with the AIClass.java file allows you to easily add vector-based graphics to your Java projects. Installation ************ Just put the plugin "JavaClass" into your "File Formats" folder in your "Plug Ins" folder in your Illustrator Folder and you will be able to "Save As" Java Class. The Class name is always "ArtClass" right now, but I will soon make it the same as the file name. Then, in your java project, add the resulting java source file into your project along with the file called "AIClass.java". Then, you just declare a variable as type ArtClass and create an instance of it. Example: ArtClass myGraphic; myGraphic = new ArtClass(); Then, in your paint method, just put the command myGraphic.draw(g); where g is the Graphic Class variable you use in your paint method. There are a few instance variables you can adjust in the ArtClass class definition for positioning and scaling your graphic: float xOffSet = 40; float yOffSet = 40; float xScale = 150; float yScale = 150; Limitations: ************ This plug-in is Power Mac compatible only! (so far) This plug-in should export Java Code for simple and compound paths in Illustrator with black/black tint, CMYK, and custom/custom tint colors for both fill or stroke. It will not export text items or gradient or pattern fills. To export text items, you must first convert them to outlines. Also, I have noticed that Illustrator makes all characters it outlines to compound paths. You should probably "release" the compound path on characters that don't have "holes" in them. For gradient fills, you will need to construct them manually with the blend tool or some other way that results in plain old objects. Clipping paths are not supported. Strokes are always drawn as 1 point paths in Java. If you want a thicker line, you have to make the stroke thicker in Illustrator, and then convert it with the Filter "Object/Outline Path" to a compound path.
Example
*******
For an example of a Java applet utilizing this plug-in see
http://www.ps.missouri.edu/rickspage/gridpuzzle/gridpuzzle.html
Have fun!
If you have any questions...
DownLoad latest version (v0.0b02) Feb 24, 1997 of AI JavaClass exporter.)
Please contact me at rickr@www.ps.missouri.edu and visit my homepage.
This page has been accessed times since February 23th, 1997.