public class ImageApiSelector extends Object implements Selector
A selector that describes a region on an IIIF Image API resource.
See http://iiif.io/api/annex/openannotation/#iiif-image-api-selector
| Modifier and Type | Field and Description |
|---|---|
static String |
CONTEXT |
static String |
TYPE |
| Constructor and Description |
|---|
ImageApiSelector() |
| Modifier and Type | Method and Description |
|---|---|
URI |
asImageApiUri(URI baseUri) |
static ImageApiSelector |
fromImageApiUri(URI imageApiUri) |
static ImageApiSelector |
fromString(String str) |
String |
getCanonicalForm(Dimension nativeSize,
ImageApiProfile profile,
ImageApiProfile.Quality defaultQuality)
Create the canonical of the Image API request.
|
String |
getContext() |
ImageApiProfile.Format |
getFormat() |
String |
getIdentifier() |
ImageApiProfile.Quality |
getQuality() |
RegionRequest |
getRegion() |
RotationRequest |
getRotation() |
SizeRequest |
getSize() |
String |
getType() |
void |
setFormat(ImageApiProfile.Format format) |
void |
setIdentifier(String identifier) |
void |
setQuality(ImageApiProfile.Quality quality) |
void |
setRegion(RegionRequest region) |
void |
setRegion(String region) |
void |
setRotation(RotationRequest rotation) |
void |
setRotation(String rotation) |
void |
setSize(SizeRequest size) |
void |
setSize(String size) |
String |
toString() |
public static String CONTEXT
public static final String TYPE
public String getContext()
public String getType()
public static ImageApiSelector fromImageApiUri(URI imageApiUri) throws ResolvingException
ResolvingExceptionpublic static ImageApiSelector fromString(String str) throws ResolvingException
ResolvingExceptionpublic String getCanonicalForm(Dimension nativeSize, ImageApiProfile profile, ImageApiProfile.Quality defaultQuality) throws ResolvingException
Create the canonical of the Image API request.
nativeSize - Native size of the image the selector is applied toprofile - Image API profile useddefaultQuality - The native/default quality of the image the selector is applied toResolvingExceptionpublic String getIdentifier()
public void setIdentifier(String identifier)
public RegionRequest getRegion()
public void setRegion(RegionRequest region)
public void setRegion(String region) throws ResolvingException
ResolvingExceptionpublic SizeRequest getSize()
public void setSize(SizeRequest size)
public void setSize(String size) throws ResolvingException
ResolvingExceptionpublic RotationRequest getRotation()
public void setRotation(RotationRequest rotation)
public void setRotation(String rotation) throws ResolvingException
ResolvingExceptionpublic ImageApiProfile.Quality getQuality()
public void setQuality(ImageApiProfile.Quality quality)
public ImageApiProfile.Format getFormat()
public void setFormat(ImageApiProfile.Format format)
Copyright © 2018. All rights reserved.