public interface ImageAgent
Modifier and Type | Field and Description |
---|---|
static SpecialistType<ImageAgent> |
TYPE
Agent providing image containers.
|
Modifier and Type | Method and Description |
---|---|
Image<Icon> |
getImageFromIcon(Icon icon)
Creates an
Image container based on the given icon object. |
Image<Media> |
getImageFromMedia(Media media)
Creates an
Image container based on the given media object. |
Image<String> |
getImageFromUrl(String url)
Creates an
Image container based on the given url pointing to some image. |
static final SpecialistType<ImageAgent> TYPE
@Contract(value="null -> null; !null -> !null") @Nullable Image<String> getImageFromUrl(@Nullable String url)
Image
container based on the given url pointing to some image. The image URL should be absolute.
Non-absolute URLs will be resolved relative to the application directory of the respective client.url
- The URL pointing to an image.null
, if url is null
.UnsupportedOperationException
- if the agent's context does not support url based images.@Contract(value="null -> null; !null -> !null") @Nullable Image<Icon> getImageFromIcon(@Nullable Icon icon)
Image
container based on the given icon object.icon
- The icon.null
, if icon is null
.UnsupportedOperationException
- if the agent's context does not support icon based images.@Contract(value="null -> null; !null -> !null") @Nullable Image<Media> getImageFromMedia(@Nullable Media media)
Image
container based on the given media object.media
- The media.null
, if media is null
.Copyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210