Package 

Class PdfiumPreferencesEditor

  • All Implemented Interfaces:
    org.readium.r2.navigator.preferences.PreferencesEditor

    
    public final class PdfiumPreferencesEditor
     implements PreferencesEditor<PdfiumPreferences>
                        

    Editor for a set of PdfiumPreferences.

    Use PdfiumPreferencesEditor 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.

    • Method Summary

      Modifier and Type Method Description
      PdfiumPreferences getPreferences()
      final EnumPreference<Fit> getFit() Indicates how pages should be laid out within the viewport.
      final RangePreference<Double> getPageSpacing() Space between pages in dp.
      final EnumPreference<ReadingProgression> getReadingProgression() Direction of the horizontal progression across pages.
      final EnumPreference<Axis> getScrollAxis() Indicates the axis along which pages should be laid out in scroll mode.
      Unit clear() Reset all preferences.
      • Methods inherited from class java.lang.Object

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

      • getFit

         final EnumPreference<Fit> getFit()

        Indicates how pages should be laid out within the viewport.

      • getReadingProgression

         final EnumPreference<ReadingProgression> getReadingProgression()

        Direction of the horizontal progression across pages.

      • getScrollAxis

         final EnumPreference<Axis> getScrollAxis()

        Indicates the axis along which pages should be laid out in scroll mode.