com::google::scrollview::ui::SVImageHandler Class Reference
List of all members.
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
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: