com::google::scrollview::ui::SVImageHandler Class Reference

List of all members.

Static Public Member Functions

static void createImage (String name, int width, int height, int bitsPerPixel)
static void openImage (String location)
static PImage getImage (String name)
static void parseData (String inputLine)
static boolean getReadImageData ()
static int getMissingRemainingBytes ()

Static Package Attributes

static HashMap< String, PImage > images = new HashMap<String, PImage>()
static boolean readImageData = false
static String imageName = null
static int bytesRead = 0
static int bpp = 0
static int pictureArray []
static int bytePerPixel = 0
static int width = 0
static int height = 0

Detailed Description

The ScrollViewImageHandler is a helper class which takes care of image processing. It is used to construct an Image from the message-stream and basically consists of a number of utility functions to process the input stream.

Author:
wanke@google.com

Member Function Documentation

static void com::google::scrollview::ui::SVImageHandler::createImage ( String  name,
int  width,
int  height,
int  bitsPerPixel 
) [inline, static]

Starts creation of a new image.

static PImage com::google::scrollview::ui::SVImageHandler::getImage ( String  name  )  [inline, static]

Find the image corresponding to a given name

static int com::google::scrollview::ui::SVImageHandler::getMissingRemainingBytes (  )  [inline, static]

Computes how many bytes of the image data are still missing

static boolean com::google::scrollview::ui::SVImageHandler::getReadImageData (  )  [inline, static]

Returns whether we a currently reading image data or not

static void com::google::scrollview::ui::SVImageHandler::openImage ( String  location  )  [inline, static]

Opens an Image from location. This means the image does not have to be actually transfered over the network. Thus, it is a lot faster than using the createImage method.

Parameters:
location The (local) location from where to open the file. This is also the internal name associated with the image (if you want to draw it).
static void com::google::scrollview::ui::SVImageHandler::parseData ( String  inputLine  )  [inline, static]

Gets called while currently reading image data. Decides, how to process it (which image type, whether all data is there).


Member Data Documentation

These are all values belonging to the image which is currently being read

HashMap<String, PImage> com::google::scrollview::ui::SVImageHandler::images = new HashMap<String, PImage>() [static, package]

Stores a mapping from the name of the string to its actual image. It enables us to re-use images without having to load or transmit them again

A global flag stating whether we are currently expecting Image data


The documentation for this class was generated from the following file:
Generated on Sun Jul 18 17:11:19 2010 for Tesseract by  doxygen 1.6.3