public class CanvasImpl extends AbstractIiifResourceImpl implements Canvas
attribution, id, license, logo, related, seeAlso, service, type, within| Constructor and Description |
|---|
CanvasImpl() |
CanvasImpl(String id,
PropertyValue label,
int height,
int width) |
CanvasImpl(String id,
PropertyValue label,
int height,
int width,
Thumbnail thumbnail) |
CanvasImpl(URI id,
PropertyValue label,
int height,
int width) |
CanvasImpl(URI id,
PropertyValue label,
int height,
int width,
Thumbnail thumbnail) |
| Modifier and Type | Method and Description |
|---|---|
PropertyValue |
getDescription() |
int |
getHeight() |
List<Image> |
getImages() |
PropertyValue |
getLabel() |
List<Metadata> |
getMetadata() |
List<IiifReference> |
getOtherContent() |
Thumbnail |
getThumbnail() |
String |
getViewingHint() |
int |
getWidth() |
void |
setDescription(PropertyValue description) |
void |
setHeight(int height) |
void |
setImages(List<Image> images) |
void |
setLabel(PropertyValue label) |
void |
setMetadata(List<Metadata> metadata) |
void |
setOtherContent(List<IiifReference> iiifReferences) |
void |
setThumbnail(Thumbnail thumbnail) |
void |
setViewingHint(String viewingHint) |
void |
setWidth(int width) |
getAttribution, getId, getLicense, getLogo, getRelated, getSeeAlso, getService, getType, getWithin, setAttribution, setId, setId, setLicense, setLogo, setRelated, setSeeAlso, setService, setWithinclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttribution, getId, getLicense, getLogo, getRelated, getSeeAlso, getService, getType, getWithin, setAttribution, setId, setId, setLicense, setLogo, setRelated, setSeeAlso, setService, setWithinpublic CanvasImpl()
public CanvasImpl(URI id, PropertyValue label, int height, int width)
public CanvasImpl(String id, PropertyValue label, int height, int width) throws URISyntaxException
URISyntaxExceptionpublic CanvasImpl(URI id, PropertyValue label, int height, int width, Thumbnail thumbnail)
id - A canvas must have an id, and it must be an http(s) URI. The canvas’s JSON representation should be
published at that URI.label - A canvas must have a label, and it should be the page or view label such as “p. 1”, “front”, or “north
view”.height - The height of a canvas or image resource. For images, this is in pixels. No particular units are
required for canvases, as the dimensions provide an aspect ratio for the resources to be located within rather than
measuring any physical property of the object. A canvas must have a height, which does not have a unit type. It
merely conveys, along with width, an aspect ratio.width - The width of a canvas or image resource. For images, this is in pixels. No particular units are
required for canvases. A canvas must have a height, which does not have a unit type. It merely conveys, along with
width, an aspect ratio.thumbnail - A canvas may have a thumbnail and should have a thumbnail if there are multiple images or
resources that make up the representation.public CanvasImpl(String id, PropertyValue label, int height, int width, Thumbnail thumbnail) throws URISyntaxException
URISyntaxExceptionpublic PropertyValue getDescription()
getDescription in interface Canvaspublic void setDescription(PropertyValue description)
setDescription in interface Canvaspublic PropertyValue getLabel()
public void setLabel(PropertyValue label)
public List<Metadata> getMetadata()
getMetadata in interface Canvaspublic void setMetadata(List<Metadata> metadata)
setMetadata in interface Canvaspublic Thumbnail getThumbnail()
getThumbnail in interface Canvaspublic void setThumbnail(Thumbnail thumbnail)
setThumbnail in interface Canvaspublic String getViewingHint()
getViewingHint in interface Canvaspublic void setViewingHint(String viewingHint)
setViewingHint in interface Canvaspublic List<IiifReference> getOtherContent()
getOtherContent in interface Canvaspublic void setOtherContent(List<IiifReference> iiifReferences)
setOtherContent in interface CanvasCopyright © 2016. All rights reserved.