|
|
|
|
|
RollOffImage
Copyright Mandomartis Software Company 2000, all rights reserved |
|
INTRODUCTIONDisplay your images with this slideshow component bean. The bean will roll away an image on top of another using a 3D shading effect. After a pause, the procedure is repeated. The bean has the following features:
Before using this Java bean you must read the license agreement.
BEAN GENERAL INFORMATION
DEPENDENT FILESThe following file must be included with your project in order for this bean to function properly: rolloffimage.jar (or rolloffimageunregistered.jar)
ADDING THE JAVA BEAN TO YOUR PROJECTTo add this Java bean to your Java application project. Make sure this bean is in your classpath. If you want to make an applet. Make sure to add the jar file to the "ARCHIVE" HTML parameter in the applet head HTML code. This bean is part of the mandomartis.* package, so use this line to import the bean to your Java application or applet. Note that this applet is written for Java 1.1 and above and will only work in Java programming projects. Make sure to check that the Java Virtual Machine or the target browser supports this version of Java.
THE JAVA BEAN APIClass mandomartis.rolloffimage
Object
|
+----Component
|
+----Container
|
+----Panel
|
+----mandomartis.rolloffimage
Constuctors
public rolloffimage()
Methods
public boolean createEffect(Image[] images,
String[] descriptions,
int effectwidth,
Color descriptionbackgroundcolor,
Color descriptiontextcolor)
public int getAnimationStep()
public int getDelay()
public int getSleeptime()
public void setAnimationStep(int step)
public void setDelay(int delay)
public void setSleeptime(int sleeptime)
SETTING UP THE JAVA BEAN WITH IMAGES AND DESCRIPTIONSThe following example will setup the bean to use two images and descriptions (this example can be run if you try to run the bean as an application): rolloffimage rolloffimage1 = new rolloffimage(); Image images[]=new Image[2]; Add your images to the Image array and be sure to add the same number of description texts. If you do not want description texts, then specify "null" as the second parameter. Note that the only image formats supported are JPEG and GIF files. Do not use transparent GIF files in this bean. Also note that each image will be automatically resized to fit in the bean component area. Here is the screenshot of the bean running in an application:
|
© Copyright 2001 Mandomartis Software Company |