ImgView 3.6b Java Applet
Copyright (C) 1998, 1999 Mihai Munteanu
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
You can contact me at:
* http://www.obs-us.com/people/mihai
* e-mail: munteanu_m@yahoo.com
* Mihai Munteanu
str. M.Eminescu 44
2200 Brasov, ROMANIA
* fax: +40 (0)68 410330
This fille contains a description about how to install and use the
ImgView applet.
CONTENTS:
1. FEATURES
1.1 Usage
1.2 Compatibility
1.3 Main Features
2. Package Content and Installation
2.1 Package Content
2.2 Installation
2.3 What You Would See after Installation
2.4 The APPLET Tag
2.4.1 APPLET Tag Example
2.4.2 The WIDTH, HEIGTH and CODEBASE Attributes
2.4.3 The Applet Parameters
3. The Configuration File
4. Compatibility
4.1 Applet Compatibility
4.2 Known Incompatibility Problems
5. History
IMPORTANT NOTES:
The applet is called Image View. The class file of this
applet is called ImgView.class. Sometimes in this document
the applet is called ImgView. The two names refer the same
applet.
1. FEATURES
Image View 3.6b is an image browser and viewer java
applet. It is fully customisable and has browsing and zoom
controls. Image View 3.6b is compatible with all java
enabled web browsers.
1.1 Usage
The applet was designed for web sites with many images such
as: image archives, on line exhibitions, photo albums, slide
shows and many more. It can be used in Internet Web sites,
intranet or off line for personal photo albums.
1.2 Compatibility
The Image View applet was tested in most of the common web
browsers and in many operating systems. It is created using
Sun’s java developer kit 1.02. It means that it is 100% pure
java and it is compatible with any java 1.02 or java 1.1
virtual machine implementation.
The Class file was tested using Sun's JavaPureCheck tool. It
obtains the 100% Pure Java Certification for both java 1.02
and java 1.1.
See section 4 for a complete list of browsers and operating
systems that I used to test the applet .
1.3 Main Features
The applet allows the user to browse through large photo
archives, using a list that contains the images captions,
and to display the chosen images.
By default the images are fitted in the display area, but
the applet has zoom controls that allow the user to explore
the details of the images.
The applet displays the images while loading.
It also displays a custom caption below each image.
The applet is widely customisable using the applet
parameters and a very simple configuration file. The
customisable items are:
- The size of the applet.
- The number of the images
- Images’ filenames, paths and captions
- Most of the colors
- The zoom in control
- The layout style
It works with both JPG and GIF image format. There are some
limitations with the animated and transparent GIFs. They are
not working in some browsers (see section 4.2).
There are no limitations for the images sizes. By default
the image is fitted in the display area.
The number of pictures is limited only by the java virtual
machine implementation. It should be up to at least few hundreds.
2. Package Content and Installation
2.1 Package Content
Unpack the zip file in an empty directory. Make sure you
preserve the same directory structure as presented below.
The imgview3.6b.zip archive contains the following files:
ImgView.README.txt this file
ImgView.class the main class file
ImgView.html contains the APPLET tag example
ImgView.java the source
ImgView.toc configuration file
error.jpg contains "Image not found" error message
gnu_gpl.txt GNU GENERAL PUBLIC LICENSE
pics/ subdirectory. Contains sample images
autumn.jpg
brasov.jpg
carpathians.jpg sample images
gentians.jpg
map.gif
mmmUtil/ subdirectory
ReadParam.class contains auxiliary
functions used by the applet
HelpWindow.class The class file of the help (info) window
2.2 Installation
Open ImgView.html in a java enabled web browser. See section
1.3 for more details about what you would see. The package
in the zip file contains all the files needed by the applet.
It works without editing any configuration file.
You can change latter the configuration file to place your
images in different directories (see section 3). To ensure
that the applet will work, the following files must be
always in the same directory:
IMPORTANT NOTES:
The applet can NOT work without ImgView.toc file. It
contains images' file names, paths and optionally a caption
for every image, displayed bellow the image.
error.jpg is a file with the image displayed when the applet
couldn't find an image on the server. If this file is not in
the same directory with the class file, when the applet
couldn't find an image, the applet will behave strange and
will not work any more!! You can replace it with any other
jpg image named error.jpg.
2.3 What You Would See after Installation
After loading the ImgView.html file in a java enabled
browser, you would see the applet. It has the following
regions:
The display area with its scroll bars - on the upper part.
The caption area - bellow the display area.
The browsing controls:
-Next and Previous picture buttons
-A list with all the captions
The zoom controls - there are 4 buttons placed on the bottom
side of the applet: 'Fit', '1 : 1', 'Zoom In' and 'Zoom Out'
buttons.
If you see the text:
‘Your browser can't run java applets...’ it means that your
browser do not run java applets or the java is disabled.
You should use Netscape or internet explorer version 3 or
newer, HotJava browser, or other java enabled browser or an
applet viewer.
2.4 The APPLET Tag
2.4.1 APPLET Tag Example
The applet tag in the ImgView.html file looks like:
2.4.2 The WIDTH, HEIGTH and CODEBASE Attributes
Depending on your web page design and on your pictures, you
can size the applet using the WIDTH and HEIGTH attributes.
There is a lower limit. The width of the applet has to be
bigger than 240 pixels and the height bigger than 180
pixels.
The components size and the display area are automatically
resized. If a new displayed image is bigger than the display
area, by default the image is fitted to the display area.
Add a CODEBASE attribute if the class file is in a different
directory than the HTML file that contain the APPLET tag.
2.4.3 The Applet Parameters
The