-
- All Implemented Interfaces:
-
org.readium.r2.shared.publication.Publication.Service,org.readium.r2.shared.publication.services.LocatorService,org.readium.r2.shared.util.Closeable
public class DefaultLocatorService implements LocatorService
-
-
Field Summary
Fields Modifier and Type Field Description private final List<Link>readingOrderprivate final SuspendFunction0<List<List<Locator>>>positionsByReadingOrder
-
Constructor Summary
Constructors Constructor Description DefaultLocatorService(List<Link> readingOrder, PublicationServicesHolder services)DefaultLocatorService(List<Link> readingOrder, SuspendFunction0<List<List<Locator>>> positionsByReadingOrder)
-
Method Summary
Modifier and Type Method Description final List<Link>getReadingOrder()final SuspendFunction0<List<List<Locator>>>getPositionsByReadingOrder()Locatorlocate(Locator locator)Locates the target of the given locator. LocatorlocateProgression(Double totalProgression)Locates the target at the given totalProgression relative to the whole publication. -
-
Constructor Detail
-
DefaultLocatorService
DefaultLocatorService(List<Link> readingOrder, PublicationServicesHolder services)
-
-
Method Detail
-
getReadingOrder
final List<Link> getReadingOrder()
-
getPositionsByReadingOrder
final SuspendFunction0<List<List<Locator>>> getPositionsByReadingOrder()
-
locateProgression
Locator locateProgression(Double totalProgression)
Locates the target at the given totalProgression relative to the whole publication.
-
-
-
-