There are three concepts to this package:
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 IImageViewer
s addImageManipulator
method,
it is expected that the object implementing IImageViewer
adds it to its control-panel, if such functionality is supported.
Erik Assum