-
- All Implemented Interfaces:
-
org.readium.r2.navigator.preferences.Configurable.Preferences
@Serializable() public final class PsPdfKitPreferences implements Configurable.Preferences<PsPdfKitPreferences>
Preferences for the PDF navigator with the PSPDFKit adapter.
-
-
Field Summary
Fields Modifier and Type Field Description private final Fitfitprivate final BooleanoffsetFirstPageprivate final DoublepageSpacingprivate final ReadingProgressionreadingProgressionprivate final Booleanscrollprivate final AxisscrollAxisprivate final Spreadspread
-
Constructor Summary
Constructors Constructor Description PsPdfKitPreferences(Fit fit, Boolean offsetFirstPage, Double pageSpacing, ReadingProgression readingProgression, Boolean scroll, Axis scrollAxis, Spread spread)
-
Method Summary
Modifier and Type Method Description final FitgetFit()final BooleangetOffsetFirstPage()final DoublegetPageSpacing()final ReadingProgressiongetReadingProgression()final BooleangetScroll()final AxisgetScrollAxis()final SpreadgetSpread()PsPdfKitPreferencesplus(PsPdfKitPreferences other)-
-
Constructor Detail
-
PsPdfKitPreferences
PsPdfKitPreferences(Fit fit, Boolean offsetFirstPage, Double pageSpacing, ReadingProgression readingProgression, Boolean scroll, Axis scrollAxis, Spread spread)
- Parameters:
fit- Indicates how pages should be laid out within the viewport.offsetFirstPage- Indicates if the first page should be displayed in its own spread.pageSpacing- Space between pages in dp.readingProgression- Direction of the horizontal progression across pages.scroll- Indicates if pages should be handled using scrolling instead of pagination.scrollAxis- Indicates the axis along which pages should be laid out in scroll mode.spread- Indicates if the publication should be rendered with a synthetic spread (dual-page).
-
-
Method Detail
-
getFit
final Fit getFit()
-
getOffsetFirstPage
final Boolean getOffsetFirstPage()
-
getPageSpacing
final Double getPageSpacing()
-
getReadingProgression
final ReadingProgression getReadingProgression()
-
getScrollAxis
final Axis getScrollAxis()
-
getSpread
final Spread getSpread()
-
plus
PsPdfKitPreferences plus(PsPdfKitPreferences other)
-
-
-
-