Enum Class TargetSelector
- All Implemented Interfaces:
Serializable
,Comparable<TargetSelector>
,Constable
The TargetSelector determines which part of a source (usually a iiif manifest or other collection of iiif canvases) is the target for an annotation
generated by a
Question
- Author:
- florian
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionTarget is a rectangular area within the current canvas, described by a FragmentSelectorTarget is the canvas of the current pageTarget is the entire source, usually a iiif manifest -
Method Summary
Modifier and TypeMethodDescriptionstatic TargetSelector
Returns the enum constant of this class with the specified name.static TargetSelector[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WHOLE_SOURCE
Target is the entire source, usually a iiif manifest -
WHOLE_PAGE
Target is the canvas of the current page -
RECTANGLE
Target is a rectangular area within the current canvas, described by a FragmentSelector
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-