com.google.gwt.resources.client.impl
Class ImageResourcePrototype

java.lang.Object
  extended by com.google.gwt.resources.client.impl.ImageResourcePrototype
All Implemented Interfaces:
ImageResource, ResourcePrototype

public class ImageResourcePrototype
extends java.lang.Object
implements ImageResource

This is part of an implementation of the ImageBundle optimization implemented with ClientBundle.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.google.gwt.resources.client.ImageResource
ImageResource.ImageOptions, ImageResource.RepeatStyle
 
Constructor Summary
ImageResourcePrototype(java.lang.String name, java.lang.String url, int left, int top, int width, int height, boolean animated, boolean lossy)
          Only called by generated code.
 
Method Summary
 int getHeight()
          Exists for testing purposes, not part of the ImageResource interface.
 int getLeft()
          Exists for testing purposes, not part of the ImageResource interface.
 java.lang.String getName()
          Returns the name of the function within the ClientBundle used to create the ResourcePrototype.
 int getTop()
          Exists for testing purposes, not part of the ImageResource interface.
 java.lang.String getURL()
          Exists for testing purposes, not part of the ImageResource interface.
 int getWidth()
          Exists for testing purposes, not part of the ImageResource interface.
 boolean isAnimated()
          Return true if the image contains multiple frames.
 boolean isLossy()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageResourcePrototype

public ImageResourcePrototype(java.lang.String name,
                              java.lang.String url,
                              int left,
                              int top,
                              int width,
                              int height,
                              boolean animated,
                              boolean lossy)
Only called by generated code.

Method Detail

getHeight

public int getHeight()
Exists for testing purposes, not part of the ImageResource interface.

Specified by:
getHeight in interface ImageResource

getLeft

public int getLeft()
Exists for testing purposes, not part of the ImageResource interface.

Specified by:
getLeft in interface ImageResource

getName

public java.lang.String getName()
Description copied from interface: ResourcePrototype
Returns the name of the function within the ClientBundle used to create the ResourcePrototype.

Specified by:
getName in interface ResourcePrototype
Returns:
the name of the function within the ClientBundle used to create the ResourcePrototype

getTop

public int getTop()
Exists for testing purposes, not part of the ImageResource interface.

Specified by:
getTop in interface ImageResource

getURL

public java.lang.String getURL()
Exists for testing purposes, not part of the ImageResource interface.

Specified by:
getURL in interface ImageResource

getWidth

public int getWidth()
Exists for testing purposes, not part of the ImageResource interface.

Specified by:
getWidth in interface ImageResource

isAnimated

public boolean isAnimated()
Description copied from interface: ImageResource
Return true if the image contains multiple frames.

Specified by:
isAnimated in interface ImageResource

isLossy

public boolean isLossy()