==========================
Grafito README
==========================

Grafito v0.2 (C)2000 Howard Kistler
App/Applet for creating simple grafitti-board images.


ABOUT
--------------------------

Grafito is a grafitti board application, which allows simple drawings to be made
and saved in JPEG, GIF, and BMP format. The applet version allows for the image 
to be saved to the server using the included servlet. Color choices and
background images can be easily specified in the PARAM tags of the web page
containing the applet.

Updates to this and other hexidec.com projects can be found here:

http://www.hexidec.com/

Please feel free to share any enhancements or bug reports with me at:

howard@hexidec.com


REQUIREMENTS
--------------------------

Grafito requires the following software:
    - Java 2 (Sun JDK 1.3 or compatible variant)
    - Swing Library (standard with Java 2)

GrafitoApplet requires the following software:
    - Browser with Java Plug-in 1.3
    - Server capable of running Java servlets (for image saving)

Sun JDK 1.3 available here : http://java.sun.com/j2se/1.3/


CLASSES
--------------------------

These are the .class files that make up the Grafito distributions.

Grafito

    Grafito.class
    Grafito$Canvas.class
    BitFile.class
    GIFSave.class
    LZWCompressor.class
    LZWStringTable.class

GrafitoApplet

    GrafitoApplet.class
    GrafitoApplet$GrafitoCanvas.class
    Constants.class


SOURCES
--------------------------

These are the source and ancillary files that are included with the standard
Grafito source distribution.

MakeGrafito.bat       - Batch file to (re)build the grafito.jar file
MakeGrafitoApplet.bat - Batch file to (re)build the grafitoapplet.jar file
RunGrafito.bat        - Batch file for launching Grafito under Windows
GrafitoDemo.html      - Example web page using Grafito
GrafitoDemoAlt.html   - Example web page for browsers unable to use the default
readme.txt            - This document
gpl.txt               - Copy of the GNU Public License

The "source" folder contains these files for editing and building Grafito.

Grafito.java       - Source for Grafito application
GrafitoApplet.java - Source for GrafitoApplet
ImageServlet.java  - Source for the Image Servlet for saving images
grafito.manifest   - Jar manifest file for grafito.jar


COMPILATION (OPTIONAL)
--------------------------

If you modify the included .java files, or need to recreate the .class files,
use the following commands within the "source" folder to build them.

Windows users may double-click the MakeGrafito.bat and MakeGrafitoApplet.bat
batch files, or execute them from the command line.

You may manually compile Grafito with the following command:

    javac Grafito.java

You may manually compile GrafitoApplet with the following command:

    javac GrafitoApplet.java

Grafito takes no special arguments during compile. The above command assumes
your Java development environment is configured according to minimal standards
and can locate the relevant Java core files properly.

You may build the grafito.jar executable archive with the following command:

	jar cmf com\hexidec\grafito\grafito.manifest grafito.jar com\hexidec\grafito\*.class

You may build the grafitoapplet.jar executable archive with the following command:

	jar cf grafitoapplet.jar com\hexidec\grafito\*.class


EXECUTION (APP)
--------------------------

Windows users may launch Grafito by double-clicking the batch file
"RunGrafito.bat".

You may manually execute Grafito from the command line with the following
command from within the directory containing the grafito.jar file:

    java -jar grafito.jar Grafito

Note that your CLASSPATH settings should include the "current directory"
specifier "." for this to work.


EXECUTION (APPLET)
--------------------------

Embed the Grafito applet in a web page and view in an appropriate browser.
The jar file should be included in the folder with the web page and be
"visible" to the web server.

The included "GrafitoDemo.html" page contains the code necessary to
view the applet properly. You may use this as the basis for including
Grafito in your own web pages.


VERSION HISTORY
--------------------------

Grafito

0.1  (09/14/2000)
	- initial creation (09/14/2000)
0.2  (11/03/2000)
	- added GrafitoCanvas to better control painting
	- added background image chooser
	- implemented MediaTracker to make sure images preload (more important than it seems)

GrafitoApplet

0.1  (09/14/2000)
	- initial creation (09/14/2000)
0.2  (10/20/2000)
	- added GrafitoCanvas to better control painting
	- added background image chooser
	- implemented MediaTracker to make sure images preload (more important than it seems)
0.3  (02/06/2001)
	- works with ImageServlet to write out a GIF on the server
