-
- All Implemented Interfaces:
-
android.os.Parcelable,org.readium.r2.shared.JSONable
public final class Decoration implements JSONable, Parcelable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceDecoration.StyleThe 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.
-
Constructor Summary
Constructors Constructor Description Decoration(String id, Locator locator, Decoration.Style style, Map<String, Object> extras)
-
Method Summary
Modifier and Type Method Description final StringgetId()final LocatorgetLocator()final Decoration.StylegetStyle()final Map<String, Object>getExtras()JSONObjecttoJSON()-
-
Constructor Detail
-
Decoration
Decoration(String id, Locator locator, Decoration.Style style, Map<String, Object> extras)
- Parameters:
id- An identifier for this decoration.locator- Location in the publication where the decoration will be rendered.style- Declares the look and feel of the decoration.extras- Additional context data specific to a reading app.
-
-
Method Detail
-
getLocator
final Locator getLocator()
-
getStyle
final Decoration.Style getStyle()
-
toJSON
JSONObject toJSON()
-
-
-
-