Package 

Class Decoration

  • All Implemented Interfaces:
    android.os.Parcelable , org.readium.r2.shared.JSONable

    
    public final class Decoration
     implements JSONable, Parcelable
                        

    A decoration is a user interface element drawn on top of a publication. It associates a style to be rendered with a discrete locator in the publication.

    For example, decorations can be used to draw highlights, images or buttons.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public interface Decoration.Style

      The Decoration Style determines the look and feel of a decoration once rendered by a Navigator.

      It is media type agnostic, meaning that each Navigator will translate the style into a set of rendering instructions which makes sense for the resource type.

    • Method Summary

      Modifier and Type Method Description
      final String getId()
      final Locator getLocator()
      final Decoration.Style getStyle()
      final Map<String, Object> getExtras()
      JSONObject toJSON()
      • Methods inherited from class org.readium.r2.navigator.Decoration

        describeContents, writeToParcel
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait