JSci.instruments
Class Image

java.lang.Object
  extended byJSci.instruments.Image
All Implemented Interfaces:
Dimensions

public abstract class Image
extends java.lang.Object
implements Dimensions

Describes a frame, that holds the informations to access an image


Constructor Summary
Image()
           
 
Method Summary
 void addOverlay(Overlay o)
          Images (poligons and text) can be overlaid onto the images
 void doOverlay(java.awt.Graphics g)
          Images (poligons and text) can be overlaid onto the images.
 java.awt.image.ColorModel getColorModel()
           
abstract  byte[] getData()
           
 int getHeight()
           
 int getOffset()
           
 int getScansize()
           
abstract  java.awt.Dimension getSize()
           
 Image getSubImage(java.awt.Rectangle r)
          Creates a new image, from a part of this.
 long getTimeStamp()
           
 int getWidth()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Image

public Image()
Method Detail

getWidth

public int getWidth()
Specified by:
getWidth in interface Dimensions
Returns:
the width of the image

getHeight

public int getHeight()
Specified by:
getHeight in interface Dimensions
Returns:
the height of the image

getSize

public abstract java.awt.Dimension getSize()
Specified by:
getSize in interface Dimensions
Returns:
the dimension of the image

getScansize

public int getScansize()
Returns:
the scansize of the image in the getData()

getOffset

public int getOffset()
Returns:
the offset of the image in the getData()

getColorModel

public java.awt.image.ColorModel getColorModel()
Returns:
the ColorModel

getData

public abstract byte[] getData()
Returns:
the data

getTimeStamp

public long getTimeStamp()
Returns:
the time in milliseconds

doOverlay

public void doOverlay(java.awt.Graphics g)
Images (poligons and text) can be overlaid onto the images. This method is called to actually paint the overlays.

Parameters:
g - the graphical environment on which we want to paint

addOverlay

public void addOverlay(Overlay o)
Images (poligons and text) can be overlaid onto the images

Parameters:
o - the objects that must be paint over the image

getSubImage

public Image getSubImage(java.awt.Rectangle r)
Creates a new image, from a part of this.

Parameters:
r - the part that we want to extract