Class BWRaster

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

public class BWRaster extends Object implements IRasterConverter
  • Constructor Details

    • BWRaster

      public BWRaster()
  • Method Details

    • 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 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
      Returns:
      Image
    • roiChanged

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