JSci.instruments
Class Marlin

java.lang.Object
  extended by JSci.instruments.Marlin
All Implemented Interfaces:
javax.media.protocol.BufferTransferHandler, Control, Dimensions, ImageSource

public class Marlin
extends java.lang.Object
implements ImageSource, javax.media.protocol.BufferTransferHandler


Constructor Summary
Marlin()
           
 
Method Summary
 java.awt.Component getControlComponent()
           
 int getHeight()
           
 java.awt.Dimension getSize()
           
 int getWidth()
           
static void main(java.lang.String[] args)
           
 void setSink(ImageSink fs)
          set the object that must read the frames through receive() method.
 void transferData(javax.media.protocol.PushBufferStream stream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Marlin

public Marlin()
Method Detail

transferData

public void transferData(javax.media.protocol.PushBufferStream stream)
Specified by:
transferData in interface javax.media.protocol.BufferTransferHandler

setSink

public void setSink(ImageSink fs)
set the object that must read the frames through receive() method.

Specified by:
setSink in interface ImageSource
Parameters:
fs - the object that reads the frames

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 java.awt.Dimension getSize()
Specified by:
getSize in interface Dimensions
Returns:
the dimension of the image

getControlComponent

public java.awt.Component getControlComponent()
Specified by:
getControlComponent in interface Control
Returns:
the component that controls the object that implements this interface

main

public static void main(java.lang.String[] args)