Package de.digitalcollections.iiif.model
Class ImageContent
- java.lang.Object
-
- de.digitalcollections.iiif.model.sharedcanvas.Resource<ImageContent>
-
- de.digitalcollections.iiif.model.ImageContent
-
- All Implemented Interfaces:
Choice<ImageContent>
public class ImageContent extends Resource<ImageContent>
An image resource.This entity is what is contained in the "resource" field of annotations with motivation "sc:painting": http://iiif.io/api/presentation/2.1/#image-resources
-
-
Constructor Summary
Constructors Constructor Description ImageContent(ImageService service)ImageContent(String identifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MimeTypegetFormat()IntegergetHeight()URIgetProfile()StringgetType()IntegergetWidth()voidsetFormat(MimeType format)voidsetFormat(String format)voidsetHeight(Integer height)voidsetProfile(URI profile)voidsetWidth(Integer width)-
Methods inherited from class de.digitalcollections.iiif.model.sharedcanvas.Resource
addAttribution, addDescription, addLabel, addLicense, addLogo, addLogo, addMetadata, addMetadata, addRelated, addRendering, addSeeAlso, addService, addThumbnail, addViewingHint, addWithin, getAlternatives, getAttribution, getAttributionString, getDescription, getDescriptionString, getFirstLicense, getIdentifier, getLabel, getLabelString, getLicenses, getLogos, getLogoUri, getMetadata, getRelated, getRenderings, getSeeAlso, getServices, getSupportedViewingHintTypes, getThumbnail, getThumbnails, getViewingHints, getWithin, isDefaultChoice, setAlternatives, setAttribution, setDescription, setIdentifier, setIsDefaultChoice, setLabel, setLicenses, setLogos, setRelated, setRenderings, setSeeAlso, setServices, setThumbnails, setViewingHints, setWithin, toString, verifyRendering
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.digitalcollections.iiif.model.openannotation.Choice
addAlternative
-
-
-
-
Field Detail
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
_type
public String _type
-
-
Constructor Detail
-
ImageContent
public ImageContent(String identifier)
-
ImageContent
public ImageContent(ImageService service)
-
-
Method Detail
-
getType
public String getType()
- Overrides:
getTypein classResource<ImageContent>
-
getFormat
public MimeType getFormat()
-
setFormat
public void setFormat(MimeType format)
-
setFormat
public void setFormat(String format)
-
getWidth
public Integer getWidth()
-
setWidth
public void setWidth(Integer width)
-
getHeight
public Integer getHeight()
-
setHeight
public void setHeight(Integer height)
-
getProfile
public URI getProfile()
-
setProfile
public void setProfile(URI profile)
-
-