©Pere-nono
copyright2001




contact

 

 

version française

Create an adaptator

His role :
How to create :
Examples :

If you write an adaptator, please send me on my list, or my mail and I diffuse it on my web-site and futur distributions. Write your name ( mail if possible, for the user that would contact you ), the library use and where I can get it.

His role

The adaptator is use to allow at Nonosee to use the library.
It have a function to get an image with a name, an other to save an image and others to know the usable formats and mode usables ( read/write ) ...

How to create

An adaptator is a java classe that extends the class noyau.Librairie ( source - doc ) and must override many functions and variables :

The variables read et write must be at true if the library can use to read and/or save image.
The functions:

  • boolean isValid() : test if the library is present and return true if it is present.
  • String[][] getExtension() : return usable file extensions
  • void putImage(Image image, String name) : save image with the name : name
  • Image getImage(String name) : get an image

Examples

Adaptator for the JRE library access ( source - doc )

Adaptator for the Jimi library access ( source - doc )

Adaptator for the Jiu library access (source - doc )

Adaptator for the Gwic library access (source - doc )

Adaptator for the Gif89Encoder library access ( source - doc )