-
- All Implemented Interfaces:
-
org.readium.r2.shared.publication.services.content.Content.AttributesHolder,org.readium.r2.shared.publication.services.content.Content.Element,org.readium.r2.shared.publication.services.content.Content.EmbeddedElement,org.readium.r2.shared.publication.services.content.Content.TextualElement
public final class Content.ImageElement implements Content.EmbeddedElement, Content.TextualElement
A bitmap image.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringtextprivate final Locatorlocatorprivate final LinkembeddedLinkprivate final Stringcaptionprivate final List<Content.Attribute<?>>attributesprivate final Languagelanguageprivate final StringaccessibilityLabel
-
Constructor Summary
Constructors Constructor Description Content.ImageElement(Locator locator, Link embeddedLink, String caption, List<Content.Attribute<?>> attributes)
-
Method Summary
Modifier and Type Method Description StringgetText()LocatorgetLocator()Locator targeting this element in the Publication. LinkgetEmbeddedLink()Referenced resource in the publication. final StringgetCaption()List<Content.Attribute<?>>getAttributes()Associated list of attributes. -
-
Constructor Detail
-
Content.ImageElement
Content.ImageElement(Locator locator, Link embeddedLink, String caption, List<Content.Attribute<?>> attributes)
- Parameters:
caption- Short piece of text associated with the image.
-
-
Method Detail
-
getLocator
Locator getLocator()
Locator targeting this element in the Publication.
-
getEmbeddedLink
Link getEmbeddedLink()
Referenced resource in the publication.
-
getCaption
final String getCaption()
-
getAttributes
List<Content.Attribute<?>> getAttributes()
Associated list of attributes.
-
-
-
-