Package 

Class InMemoryCoverService

  • All Implemented Interfaces:
    org.readium.r2.shared.publication.Publication.Service , org.readium.r2.shared.publication.services.CoverService , org.readium.r2.shared.util.Closeable

    
    public final class InMemoryCoverService
    extends GeneratedCoverService
                        

    A CoverService which uses a provided in-memory bitmap.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final List<Link> links
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Bitmap cover() Returns the publication cover as a Bitmap at its maximum size.
      • Methods inherited from class org.readium.r2.shared.publication.services.GeneratedCoverService

        get, getLinks
      • Methods inherited from class org.readium.r2.shared.publication.services.CoverService

        coverFitting
      • Methods inherited from class org.readium.r2.shared.publication.Publication.Service

        close
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • cover

         Bitmap cover()

        Returns the publication cover as a Bitmap at its maximum size.

        If the cover is not a bitmap format (e.g. SVG), it should be scaled down to fit the screen.