net.xoetrope.optional.svg.tinyline
Class PPSVGBitmap

java.lang.Object
  extended by com.tinyline.tiny2d.TinyBitmap
      extended by net.xoetrope.optional.svg.tinyline.PPSVGBitmap
All Implemented Interfaces:
java.awt.image.ImageObserver

public class PPSVGBitmap
extends com.tinyline.tiny2d.TinyBitmap
implements java.awt.image.ImageObserver

The PPSVGBitmap represents the TinyBitmap for the J2ME Personal Profile. The process of creating a raster image is different for different platforms and JVMs. That is why the derived class from the TinyBitmap class is needed.


Field Summary
 
Fields inherited from class com.tinyline.tiny2d.TinyBitmap
height, loaded, pixels32, width
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
PPSVGBitmap(java.awt.MediaTracker tracker, byte[] imageData, int imageOffset, int imageLength)
          Create a new PPSVGBitmap which gets pixel data from the given array of bytes.
PPSVGBitmap(java.awt.MediaTracker tracker, java.net.URL imgUrl)
          Create a new PPSVGBitmap which gets pixel data from the base URL and the path.
 
Method Summary
 boolean imageUpdate(java.awt.Image img, int infoflags, int x, int y, int width, int height)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PPSVGBitmap

public PPSVGBitmap(java.awt.MediaTracker tracker,
                   java.net.URL imgUrl)
Create a new PPSVGBitmap which gets pixel data from the base URL and the path.

Parameters:
imgUrl - the String representation of the URL to use in fetching the pixel data.

PPSVGBitmap

public PPSVGBitmap(java.awt.MediaTracker tracker,
                   byte[] imageData,
                   int imageOffset,
                   int imageLength)
Create a new PPSVGBitmap which gets pixel data from the given array of bytes.

Parameters:
imageData - an array of bytes, representing image data in a supported image format.
imageOffset - the offset of the beginning of the data in the array.
imageLength - the length of the data in the array.
Method Detail

imageUpdate

public boolean imageUpdate(java.awt.Image img,
                           int infoflags,
                           int x,
                           int y,
                           int width,
                           int height)
Specified by:
imageUpdate in interface java.awt.image.ImageObserver