public class Range extends Resource
An ordered list of canvases, and/or further ranges.
Ranges allow canvases, or parts thereof, to be grouped together in some way. This could be for textual reasons, such as to distinguish books, chapters, verses, sections, non-content-bearing pages, the table of contents or similar. Equally, physical features might be important such as quires or gatherings, sections that have been added later and so forth.
| Constructor and Description |
|---|
Range(String identifier) |
Range(String identifier,
String label) |
| Modifier and Type | Method and Description |
|---|---|
Range |
addCanvas(Canvas first,
Canvas... rest) |
Range |
addCanvas(String idOfFirst,
String... idsOfRest) |
Range |
addMember(Resource first,
Resource... rest)
Adds one or more member resources.
|
Range |
addRange(Range first,
Range... rest) |
Range |
addRange(String first,
String... rest) |
List<Canvas> |
getCanvases() |
Layer |
getContentLayer() |
List<Resource> |
getMembers() |
List<Range> |
getRanges() |
URI |
getStartCanvas() |
Set<ViewingHint.Type> |
getSupportedViewingHintTypes() |
String |
getType() |
ViewingDirection |
getViewingDirection() |
void |
setCanvases(List<Canvas> canvases) |
void |
setContentLayer(Layer contentLayer) |
void |
setContentLayer(String identifier) |
void |
setMembers(List<Resource> members)
Sets the member resources.
|
void |
setRanges(List<Range> ranges) |
void |
setStartCanvas(URI startCanvas) |
void |
setViewingDirection(ViewingDirection viewingDirection) |
addAttribution, addDescription, addLabel, addLicense, addLogo, addLogo, addMetadata, addMetadata, addRelated, addRendering, addSeeAlso, addService, addThumbnail, addViewingHint, addWithin, getAttribution, getAttributionString, getDescription, getDescriptionString, getFirstLicense, getIdentifier, getLabel, getLabelString, getLicenses, getLogos, getLogoUri, getMetadata, getRelated, getRenderings, getSeeAlso, getServices, getThumbnail, getThumbnails, getViewingHints, getWithin, setAttribution, setDescription, setIdentifier, setLabel, setLicenses, setLogos, setRelated, setRenderings, setSeeAlso, setServices, setThumbnails, setViewingHints, setWithin, toString, verifyRenderingpublic static final String TYPE
public Range(String identifier)
public ViewingDirection getViewingDirection()
public void setViewingDirection(ViewingDirection viewingDirection)
public Set<ViewingHint.Type> getSupportedViewingHintTypes()
getSupportedViewingHintTypes in class Resourcepublic URI getStartCanvas()
public void setStartCanvas(URI startCanvas)
public Layer getContentLayer()
public void setContentLayer(Layer contentLayer)
public void setContentLayer(String identifier)
public void setMembers(List<Resource> members)
Sets the member resources. Must be either instances of Range or Canvas. All members must have an identifier and a label.
IllegalArgumentException - if at least one member is not a Range or Canvas or does not have an identifier and a label;public Range addMember(Resource first, Resource... rest) throws IllegalArgumentException
Adds one or more member resources. Must be either instances of Range or Canvas. All members must have an identifier and a label.
IllegalArgumentException - if at least one member is not a Range or Canvas or does not have an identifier and a label;Copyright © 2018. All rights reserved.