Horus Doc || Java GUI Reference || Doxygen's quick Index  

CorbaBufferedImage Class Reference

A CorbaBufferedImage is a BufferedImage that obtains its image data from a Corba RgbSource object. More...

Inheritance diagram for CorbaBufferedImage::

CanvasCorbaSequence::SequenceBufferedImage List of all members.

Public Methods

 CorbaBufferedImage (HxCorba.RgbSourceOperations src, int width, int height, Object realSrc)
 This constructor takes two "sources". More...

 CorbaBufferedImage (HxCorba.RgbSourceOperations src, int width, int height)
void setSource (HxCorba.RgbSourceOperations src)
void refreshData ()
void refreshData (int offset)
int[] getPixelData ()

Detailed Description

A CorbaBufferedImage is a BufferedImage that obtains its image data from a Corba RgbSource object.

Transfer of image data is done via a RgbTransferManager.


Constructor & Destructor Documentation

CorbaBufferedImage::CorbaBufferedImage HxCorba.RgbSourceOperations    src,
int    width,
int    height,
Object    realSrc
[inline]
 

This constructor takes two "sources".

The first one has a well known interface: HxCorba.RgbSourceOperations. But, this object can be just a Java wrapper aroung a Corba object and not the Corba object itself. In this case, pass the Corba object as last parameter. CorbaMediator uses information from the Corba object to decide on the best transfer manager/strategy.

00030 {
00031     super(width, height, BufferedImage.TYPE_INT_RGB);
00032 
00033     DataBufferInt db = (DataBufferInt)getRaster().getDataBuffer();
00034     _data = db.getData(0);
00035     _mgr = CorbaMediator.instance().createRgbTxMgr(_data.length,
00036         getRealSource(realSrc));
00037 
00038     setSource(src);
00039 }

CorbaBufferedImage::CorbaBufferedImage HxCorba.RgbSourceOperations    src,
int    width,
int    height
[inline]
 

00042 {
00043     this(src, width, height, src);
00044 }


Member Function Documentation

void CorbaBufferedImage::setSource HxCorba.RgbSourceOperations    src [inline]
 

00047 {
00048     _source = src;
00049 }

void CorbaBufferedImage::refreshData   [inline]
 

00052 {
00053     refreshData(0);
00054 }

void CorbaBufferedImage::refreshData int    offset [inline]
 

00057 {
00058     _mgr.transferData(_source, _data, offset);
00059 }

int [] CorbaBufferedImage::getPixelData   [inline]
 

00062 {
00063     return _data;
00064 }


The documentation for this class was generated from the following file:
Generated on Mon Jan 27 15:11:17 2003 for JavaReference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001