org.onemind.swingweb.image
Class BufferedByteImage

java.lang.Object
  extended byjava.awt.Image
      extended byorg.onemind.swingweb.image.AbstractImage
          extended byorg.onemind.swingweb.image.BufferedByteImage

public class BufferedByteImage
extends AbstractImage

A image that wrap an byte array

Author:
TiongHiang Lee (thlee@onemindsoft.org)

Field Summary
 
Fields inherited from class java.awt.Image
SCALE_AREA_AVERAGING, SCALE_DEFAULT, SCALE_FAST, SCALE_REPLICATE, SCALE_SMOOTH, UndefinedProperty
 
Constructor Summary
BufferedByteImage(java.awt.Graphics g, byte[] buffer, int offset, int length)
          Constructor
 
Method Summary
 byte[] getBytes()
          Get the bytes;
 int getLength()
          Return the length
 int getOffset()
          Return the offset
 java.lang.String getType()
          Return the type
 
Methods inherited from class org.onemind.swingweb.image.AbstractImage
flush, getGraphics, getHeight, getProperty, getSource, getWidth, setHeight, setWidth
 
Methods inherited from class java.awt.Image
getScaledInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BufferedByteImage

public BufferedByteImage(java.awt.Graphics g,
                         byte[] buffer,
                         int offset,
                         int length)
Constructor

Parameters:
g - the graphics
buffer - the buffer
offset - the offset
length - the length
Method Detail

getBytes

public byte[] getBytes()
Get the bytes;

Returns:
the bytes

getType

public java.lang.String getType()
Return the type

Returns:
the type;

getLength

public final int getLength()
Return the length

Returns:
the length.

getOffset

public final int getOffset()
Return the offset

Returns:
the offset.


Copyright © 2004-2007 . All Rights Reserved.