Package fr.esrf.tangoatk.widget.image

This package contains a simple image viewing facility.

See: Description

Package fr.esrf.tangoatk.widget.image Description

This package contains a simple image viewing facility. It is represented by certain interfaces, and some of these are implemented to treat the simplest of cases.

There are three concepts to this package:

  1. the viewer represented by the interface IImageViewer
  2. the raster-controller, represented by the interface IRasterControl
  3. the image-manipulator, represented by the interface IImageManipulator (and its subinterface IImageManipulatorPanel)

The image viewer

The concept of the imageviewer is to be the one that distributes information. Basically it's given an image produced by someone, normally a IRasterControl, through its image property. This image is passed along to all its IImageManipulator's which can treat this image in any way they want before it's drawn in the viewer.

The raster conversion

The IRasterConverter interface is provided so that an IImageViewer can take a raster, basically an double [][], and make it into an BufferedImage. convertRaster(double [][] raster) in IRasterConverter is called each time the image-viewers setRaster(double [][]) is called.

The image manipulators

The IImageManipulator interface is provided so that an image that is to be drawn by an IImageViewer can be manipulated. IImageManipulator's can be added to the IImageViewer via the addImageManipulator(IImageManipulator) call. One can have image-manipulators which take input from a user, for this, the interface IImageManipulatorPanel is used. When an object implementing this interface is passed to an IImageViewers addImageManipulator method, it is expected that the object implementing IImageViewer adds it to its control-panel, if such functionality is supported.
Erik Assum