Package com.google.gwt.resources.client
Interface ImageResource
-
- All Superinterfaces:
ResourcePrototype
public interface ImageResource extends ResourcePrototype
Provides access to image resources at runtime.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceImageResource.ImageOptionsSpecifies additional options to control how an image is bundled.static classImageResource.RepeatStyleIndicates that an ImageResource should be bundled in such a way as to support horizontal or vertical repetition.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description intgetHeight()Returns the height of the image.intgetLeft()Returns the horizontal position of the image within the composite image.SafeUrigetSafeUri()Returns the URL for the composite image that contains the ImageResource.intgetTop()Returns the vertical position of the image within the composite image.java.lang.StringgetURL()Deprecated.UsegetSafeUri()instead.intgetWidth()Returns the width of the image.booleanisAnimated()Returntrueif the image contains multiple frames.-
Methods inherited from interface com.google.gwt.resources.client.ResourcePrototype
getName
-
-
-
-
Method Detail
-
getHeight
int getHeight()
Returns the height of the image.
-
getLeft
int getLeft()
Returns the horizontal position of the image within the composite image.
-
getSafeUri
SafeUri getSafeUri()
Returns the URL for the composite image that contains the ImageResource.
-
getTop
int getTop()
Returns the vertical position of the image within the composite image.
-
getURL
@Deprecated java.lang.String getURL()
Deprecated.UsegetSafeUri()instead.Returns the URL for the composite image that contains the ImageResource.
-
getWidth
int getWidth()
Returns the width of the image.
-
isAnimated
boolean isAnimated()
Returntrueif the image contains multiple frames.
-
-