-
- All Implemented Interfaces:
-
org.readium.r2.navigator.preferences.PreferencesEditor
public final class PsPdfKitPreferencesEditor implements PreferencesEditor<PsPdfKitPreferences>
Editor for a set of PsPdfKitPreferences.
Use PsPdfKitPreferencesEditor to assist you in building a preferences user interface or modifying existing preferences. It includes rules for adjusting preferences, such as the supported values or ranges.
-
-
Field Summary
Fields Modifier and Type Field Description private final PsPdfKitPreferencespreferencesprivate final EnumPreference<Fit>fitprivate final Preference<Boolean>offsetFirstPageprivate final RangePreference<Double>pageSpacingprivate final EnumPreference<ReadingProgression>readingProgressionprivate final Preference<Boolean>scrollprivate final EnumPreference<Axis>scrollAxisprivate final EnumPreference<Spread>spread
-
Method Summary
Modifier and Type Method Description PsPdfKitPreferencesgetPreferences()final EnumPreference<Fit>getFit()Indicates how pages should be laid out within the viewport. final Preference<Boolean>getOffsetFirstPage()Indicates if the first page should be displayed in its own spread. final RangePreference<Double>getPageSpacing()Space between pages in dp. final EnumPreference<ReadingProgression>getReadingProgression()Direction of the horizontal progression across pages. final Preference<Boolean>getScroll()Indicates if pages should be handled using scrolling instead of pagination. final EnumPreference<Axis>getScrollAxis()Indicates the axis along which pages should be laid out in scroll mode. final EnumPreference<Spread>getSpread()Indicates if the publication should be rendered with a synthetic spread (dual-page). Unitclear()Reset all preferences. -
-
Method Detail
-
getPreferences
PsPdfKitPreferences getPreferences()
-
getFit
final EnumPreference<Fit> getFit()
Indicates how pages should be laid out within the viewport.
-
getOffsetFirstPage
final Preference<Boolean> getOffsetFirstPage()
-
getPageSpacing
final RangePreference<Double> getPageSpacing()
Space between pages in dp.
-
getReadingProgression
final EnumPreference<ReadingProgression> getReadingProgression()
Direction of the horizontal progression across pages.
-
getScroll
final Preference<Boolean> getScroll()
Indicates if pages should be handled using scrolling instead of pagination.
-
getScrollAxis
final EnumPreference<Axis> getScrollAxis()
Indicates the axis along which pages should be laid out in scroll mode.
Only effective when scroll is on.
-
getSpread
final EnumPreference<Spread> getSpread()
Indicates if the publication should be rendered with a synthetic spread (dual-page).
Only effective when scroll is off.
-
-
-
-