public class AnnotationImagesList
extends java.lang.Object
Annotation
.
add(String, URL)
to add a new mapping between an image key and the url of the image resource. The image key is used in
the image html tag img
to identify the image. By way of example we have a mapping that uses the image key img1
then
we have to used it in the image tag like the following: <img src="img1">
.Constructor and Description |
---|
AnnotationImagesList()
Creates a new empty images list.
|
public AnnotationImagesList()
public void add(java.lang.String imgKey, java.net.URL imgURL) throws java.lang.IllegalArgumentException
imgKey
- the image key that is used in the html img tag like <img src="img1">
imgURL
- the url of the image resource that should be displayedjava.lang.IllegalArgumentException
- public java.net.URL get(java.lang.String imgKey)
imgKey
- the key of the imagenull
if there is no image associated with the specified key