public class HttpImageReference extends java.lang.Object implements ImageReference
| Constructor and Description |
|---|
HttpImageReference(java.lang.String uri)
Creates a reference to an image at the specified URI of unknown size.
|
HttpImageReference(java.lang.String uri,
Extent width,
Extent height)
Creates a reference to an image at the specified URI of the given width
and height.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
Extent |
getHeight()
Returns the height of the image, or null if the size is unknown.
|
java.lang.String |
getRenderId()
Returns an identifier that is unique within the
ApplicationInstance with which the implementor will be
used. |
java.lang.String |
getUri()
Returns the URI from which the image may be obtained.
|
Extent |
getWidth()
Returns the width of the image, or null if the size is unknown.
|
public HttpImageReference(java.lang.String uri)
uri - a URI from which the image data may be obtainedpublic HttpImageReference(java.lang.String uri,
Extent width,
Extent height)
uri - a URI from which the image data may be obtainedwidth - The width at which to render the imageheight - The height at which to render the imagepublic boolean equals(java.lang.Object o)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public Extent getHeight()
ImageReferencegetHeight in interface ImageReferenceImageReference.getHeight()public java.lang.String getRenderId()
RenderIdSupportApplicationInstance with which the implementor will be
used.getRenderId in interface RenderIdSupportRenderIdSupport.getRenderId()public java.lang.String getUri()
public Extent getWidth()
ImageReferencegetWidth in interface ImageReferenceImageReference.getWidth()