cds.aladin
Class GreyMemory

java.lang.Object
  extended by cds.aladin.GreyMemory
All Implemented Interfaces:
java.awt.image.ImageConsumer

public class GreyMemory
extends java.lang.Object
implements java.awt.image.ImageConsumer

Implemente un PixelGraber adapte aux besoins d'Aladin Java

Version:
1.1 : (28 mai 00) ReToilettage du code, 1.0 : (5 mai 99) Toilettage du code, 0.9 : (??) creation
Author:
Pierre Fernique [CDS]

Field Summary
 
8BFields inherited from interface java.awt.image.ImageConsumer
COMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT
 
Method Summary
 void imageComplete(int status)
           
 void setColorModel(java.awt.image.ColorModel model)
           
 void setDimensions(int width, int height)
           
 void setHints(int status)
           
 void setPixels(int x, int y, int w, int h, java.awt.image.ColorModel model, byte[] pixels, int off, int scansize)
           
 void setPixels(int x, int y, int w, int h, java.awt.image.ColorModel model, int[] pixels, int off, int scansize)
          Recuperation des pixels couleurs.
 void setProperties(java.util.Hashtable props)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

imageComplete

public void imageComplete(int status)
Specified by:
imageComplete in interface java.awt.image.ImageConsumer

setColorModel

public void setColorModel(java.awt.image.ColorModel model)
Specified by:
setColorModel in interface java.awt.image.ImageConsumer

setProperties

public void setProperties(java.util.Hashtable props)
Specified by:
setProperties in interface java.awt.image.ImageConsumer

setDimensions

public void setDimensions(int width,
                          int height)
Specified by:
setDimensions in interface java.awt.image.ImageConsumer

setHints

public void setHints(int status)
Specified by:
setHints in interface java.awt.image.ImageConsumer

setPixels

public void setPixels(int x,
                      int y,
                      int w,
                      int h,
                      java.awt.image.ColorModel model,
                      byte[] pixels,
                      int off,
                      int scansize)
Specified by:
setPixels in interface java.awt.image.ImageConsumer

setPixels

public void setPixels(int x,
                      int y,
                      int w,
                      int h,
                      java.awt.image.ColorModel model,
                      int[] pixels,
                      int off,
                      int scansize)
Recuperation des pixels couleurs.
Rq : Les images en couleurs ne sont pas prises en compte par cette classe => genere imageComplete(ImageConsumer.IMAGEABORTED)

Specified by:
setPixels in interface java.awt.image.ImageConsumer


Copyright © 2009 UDS/CNRS