public class ImageResourcePrototype extends Object implements ImageResource
Modifier and Type | Class and Description |
---|---|
static class |
ImageResourcePrototype.Bundle
Marker class for bundled
ImageResourcePrototype . |
ImageResource.ImageOptions, ImageResource.RepeatStyle
Constructor and Description |
---|
ImageResourcePrototype(String name,
SafeUri url,
int left,
int top,
int width,
int height,
boolean animated,
boolean lossy)
Only called by generated code.
|
Modifier and Type | Method and Description |
---|---|
int |
getHeight()
Exists for testing purposes, not part of the ImageResource interface.
|
int |
getLeft()
Exists for testing purposes, not part of the ImageResource interface.
|
String |
getName()
Returns the name of the function within the ClientBundle used to create the
ResourcePrototype.
|
SafeUri |
getSafeUri()
Returns the URL for the composite image that contains the ImageResource.
|
int |
getTop()
Returns the vertical position of the image within the composite image.
|
String |
getURL()
Returns the URL for the composite image that contains the ImageResource.
|
int |
getWidth()
Exists for testing purposes, not part of the ImageResource interface.
|
boolean |
isAnimated()
Return
true if the image contains multiple frames. |
boolean |
isLossy()
Exists for testing purposes, not part of the ImageResource interface.
|
public int getHeight()
getHeight
in interface ImageResource
public int getLeft()
getLeft
in interface ImageResource
public String getName()
ResourcePrototype
getName
in interface ResourcePrototype
public SafeUri getSafeUri()
ImageResource
getSafeUri
in interface ImageResource
public int getTop()
ImageResource
getTop
in interface ImageResource
public String getURL()
ImageResource
getURL
in interface ImageResource
public int getWidth()
getWidth
in interface ImageResource
public boolean isAnimated()
ImageResource
true
if the image contains multiple frames.isAnimated
in interface ImageResource
public boolean isLossy()
Copyright © 2018. All rights reserved.