ikbs.illustration.tools
Class ImageCreator

java.lang.Object
  extended by ikbs.illustration.tools.ImageCreator
All Implemented Interfaces:
java.lang.Runnable

public class ImageCreator
extends java.lang.Object
implements java.lang.Runnable

Permet de créer des images de taille différente à partir d'une illustration

Author:
David Grosser

Field Summary
protected  boolean forceThumb
           
protected  ImageButton ib
           
protected  IllustrationPicture illu
           
protected  int index
           
protected  Property property
           
protected  Ressources rl
           
 
Constructor Summary
ImageCreator(IllustrationPicture illu, ImageButton ib, Property property, boolean forceThumb, int index, Ressources rl)
           
 
Method Summary
 java.awt.Image chooseImage(int type)
          Choisir une image en fonction de son type
 boolean filtreThumb(Illustration illu)
          Filtre les ressources dont on doit tester s'il existe un Thumb
 java.lang.String getPathThumb(IllustrationPicture ip)
          Récupérer le nom d'accès au thumbnail
 java.lang.String getPathThumbGIF(IllustrationPicture ip)
          Récupérer le fichier thumbnail d'extension .gif
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

property

protected Property property

forceThumb

protected boolean forceThumb

illu

protected IllustrationPicture illu

ib

protected ImageButton ib

rl

protected Ressources rl

index

protected int index
Constructor Detail

ImageCreator

public ImageCreator(IllustrationPicture illu,
                    ImageButton ib,
                    Property property,
                    boolean forceThumb,
                    int index,
                    Ressources rl)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable

getPathThumb

public java.lang.String getPathThumb(IllustrationPicture ip)
Récupérer le nom d'accès au thumbnail


getPathThumbGIF

public java.lang.String getPathThumbGIF(IllustrationPicture ip)
Récupérer le fichier thumbnail d'extension .gif


filtreThumb

public boolean filtreThumb(Illustration illu)
Filtre les ressources dont on doit tester s'il existe un Thumb


chooseImage

public java.awt.Image chooseImage(int type)
Choisir une image en fonction de son type