public class RotationRequest extends Object
| Constructor and Description |
|---|
RotationRequest(BigDecimal rotation,
boolean mirror)
Create a new rotation request.
|
RotationRequest(int rotation) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static RotationRequest |
fromString(String str)
Parse a rotation request from an IIIF Image API compliant rotation string.
|
double |
getRotation() |
int |
hashCode() |
boolean |
isMirror() |
String |
toString()
Create an IIIF Image API compatible rotation string.
|
public RotationRequest(int rotation)
throws ResolvingException
ResolvingExceptionpublic RotationRequest(BigDecimal rotation, boolean mirror) throws ResolvingException
Create a new rotation request.
rotation - Rotation in degrees. Must be between 0 and 360mirror - Mirror the image when rotatingResolvingException - if the rotation degrees are not between 0 and 360public static RotationRequest fromString(String str) throws ResolvingException
Parse a rotation request from an IIIF Image API compliant rotation string.
ResolvingException - if the rotation string is malformedpublic double getRotation()
public boolean isMirror()
public String toString()
Create an IIIF Image API compatible rotation string.
Copyright © 2018. All rights reserved.