public class CanvasImpl extends AbstractIiifResourceImpl implements Canvas
attribution, id, license, logo, related, seeAlso, service, type, within| Constructor and Description |
|---|
CanvasImpl() |
CanvasImpl(String id,
String label,
int height,
int width) |
CanvasImpl(String id,
String label,
int height,
int width,
Thumbnail thumbnail) |
CanvasImpl(URI id,
String label,
int height,
int width) |
CanvasImpl(URI id,
String label,
int height,
int width,
Thumbnail thumbnail) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription() |
int |
getHeight() |
List<Image> |
getImages() |
String |
getLabel() |
List<Metadata> |
getMetadata() |
Thumbnail |
getThumbnail() |
String |
getViewingHint() |
int |
getWidth() |
void |
setDescription(String description) |
void |
setHeight(int height) |
void |
setImages(List<Image> images) |
void |
setLabel(String label) |
void |
setMetadata(List<Metadata> metadata) |
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(String id, String label, int height, int width) throws URISyntaxException
URISyntaxExceptionpublic CanvasImpl(URI id, String 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, String label, int height, int width, Thumbnail thumbnail) throws URISyntaxException
URISyntaxExceptionpublic String getDescription()
getDescription in interface Canvaspublic void setDescription(String description)
setDescription in interface Canvaspublic 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 CanvasCopyright © 2016. All rights reserved.