Class Index | File Index

Classes


Class R.resources.types.Image


Extends R.engine.PooledObject.
A wrapper class for images. Images contain a reference to their resource loader and the bitmap dimensions for the image. Additionally, the dimensions are used to determine the bounding box around the image.
Defined in: image.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
R.resources.types.Image(name, imageName, imageLoader)
Method Summary
Method Attributes Method Name and Description
 
Get the bounding box for the image.
 
Gets the class name of this object.
 
Get the HTML image object which contains the image.
 
Release the image back into the pool for reuse
Methods borrowed from class R.engine.PooledObject:
clearObjectDataModel, destroy, getId, getName, getObjectDataModel, getProperties, isDestroyed, setName, setObjectDataModel, toString, toXML
Class Detail
R.resources.types.Image(name, imageName, imageLoader)
Parameters:
name
{String} The name of the image object
imageName
{String} The name of the image container in the resource loader
imageLoader
{ImageLoader} The resource loader used to load the image
Method Detail
{R.math.Rectangle2D} getBoundingBox()
Get the bounding box for the image.
Returns:
{R.math.Rectangle2D} The bounding box which contains the entire image

{String} getClassName()
Gets the class name of this object.
Returns:
{String} The string "R.resources.types.Image"

{HTMLImage} getImage()
Get the HTML image object which contains the image.
Returns:
{HTMLImage}

release()
Release the image back into the pool for reuse

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Mar 18 2013 16:09:20 GMT-0400 (EDT)