fr.esrf.tangoatk.widget.image
Class BWRaster

java.lang.Object
  extended by fr.esrf.tangoatk.widget.image.BWRaster
All Implemented Interfaces:
IRasterConverter

public class BWRaster
extends java.lang.Object
implements IRasterConverter


Constructor Summary
BWRaster()
           
 
Method Summary
 java.awt.image.BufferedImage convertRaster(double[][] raster)
          convertRaster is called from the IImageViewer.
 void roiChanged(int startx, int endx, int starty, int endy)
           
 void setImageViewer(IImageViewer viewer)
          setImageViewer is called by the IImageViewer that this IRasterConverter controls.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BWRaster

public BWRaster()
Method Detail

setImageViewer

public void setImageViewer(IImageViewer viewer)
Description copied from interface: IRasterConverter
setImageViewer is called by the IImageViewer that this IRasterConverter controls. It is called so that the class implementing IRasterConverter can gain access to its IImageViewer.

Specified by:
setImageViewer in interface IRasterConverter
Parameters:
viewer - an IImageViewer value

convertRaster

public java.awt.image.BufferedImage convertRaster(double[][] raster)
Description copied from interface: IRasterConverter
convertRaster is called from the IImageViewer. It is responsible for changing a double[][] into a BufferedImage Oh, and by the way, the first dimension is the y-axis, and the second is the x-axis: double point;
for (int y = 0; y < raster.length; y++)
for (int x = 0; x < raster[y].length; x++)
point = raster[y][x];

Specified by:
convertRaster in interface IRasterConverter
Parameters:
raster - a double[][] value

roiChanged

public void roiChanged(int startx,
                       int endx,
                       int starty,
                       int endy)