|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnextapp.echo.AbstractImageReference
nextapp.echo.StreamImageReference
echopoint.image.URLImageReference
public class URLImageReference
URLImageReference
provides an ImageReference
that gets its image data from an java.net.URL
.
Field Summary |
---|
Fields inherited from class nextapp.echo.AbstractImageReference |
---|
listenerList |
Fields inherited from interface nextapp.echo.ImageReference |
---|
SIZE_UNKNOWN |
Constructor Summary | |
---|---|
URLImageReference(java.net.URL imageURL)
Creates an URLImageReference retrieved from the provided URL. |
|
URLImageReference(java.net.URL imageURL,
int width,
int height)
Creates an URLImageReference retrieved from the provided URL
with the specified width and height. |
|
URLImageReference(java.net.URL imageURL,
java.lang.String contentType)
Creates an URLImageReference retrieved from the provided URL
and the specified content type. |
|
URLImageReference(java.net.URL imageURL,
java.lang.String contentType,
int width,
int height)
Creates an URLImageReference retrieved from the provided URL
with the specified content type, width and height. |
Method Summary | |
---|---|
void |
addImageUpdateListener(ImageUpdateListener l)
Not supported. |
java.lang.String |
getContentType()
Returns the valid RFC 1521 image content type (image/png, image/jpeg, image/gif, etc) of the image. |
int |
getHeight()
Returns the height of the image. |
int |
getWidth()
Returns the width of the image. |
void |
removeImageUpdateListener(ImageUpdateListener l)
Not supported. |
void |
render(java.io.OutputStream out)
Sends a byte representation of the image in its native format out the given output stream. |
void |
update()
Not supported. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public URLImageReference(java.net.URL imageURL)
URLImageReference
retrieved from the provided URL.
The content type of the image will be determined based on the extension of the URLs external form.
public URLImageReference(java.net.URL imageURL, java.lang.String contentType)
URLImageReference
retrieved from the provided URL
and the specified content type.
public URLImageReference(java.net.URL imageURL, int width, int height)
URLImageReference
retrieved from the provided URL
with the specified width and height.
The content type of the image will be determined based on the extension of the URLs external form.
public URLImageReference(java.net.URL imageURL, java.lang.String contentType, int width, int height)
URLImageReference
retrieved from the provided URL
with the specified content type, width and height.
Method Detail |
---|
public void addImageUpdateListener(ImageUpdateListener l)
addImageUpdateListener
in interface ImageReference
addImageUpdateListener
in class AbstractImageReference
l
- The ImageUpdateListener
to add.ImageReference.addImageUpdateListener(ImageUpdateListener)
public java.lang.String getContentType()
StreamImageReference
getContentType
in class StreamImageReference
StreamImageReference.getContentType()
public int getHeight()
ImageReference
getHeight
in interface ImageReference
getHeight
in class StreamImageReference
ImageReference.getHeight()
public int getWidth()
ImageReference
getWidth
in interface ImageReference
getWidth
in class StreamImageReference
ImageReference.getWidth()
public void removeImageUpdateListener(ImageUpdateListener l)
removeImageUpdateListener
in interface ImageReference
removeImageUpdateListener
in class AbstractImageReference
l
- The ImageUpdateListener
to remove.ImageReference.removeImageUpdateListener(ImageUpdateListener)
public void update()
update
in interface ImageReference
update
in class AbstractImageReference
ImageReference.update()
public void render(java.io.OutputStream out) throws java.io.IOException
StreamImageReference
render
in class StreamImageReference
out
- The output stream to write the image.
java.io.IOException
StreamImageReference.render(OutputStream)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |