-
- All Implemented Interfaces:
-
org.readium.r2.navigator.preferences.Configurable.Preferences
@Serializable() public final class EpubPreferences implements Configurable.Preferences<EpubPreferences>
Preferences for the EPUB navigator.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classEpubPreferences.Companion
-
Field Summary
Fields Modifier and Type Field Description private final ColorbackgroundColorprivate final ColumnCountcolumnCountprivate final FontFamilyfontFamilyprivate final DoublefontSizeprivate final DoublefontWeightprivate final Booleanhyphensprivate final ImageFilterimageFilterprivate final Languagelanguageprivate final DoubleletterSpacingprivate final Booleanligaturesprivate final DoublelineHeightprivate final DoublepageMarginsprivate final DoubleparagraphIndentprivate final DoubleparagraphSpacingprivate final BooleanpublisherStylesprivate final ReadingProgressionreadingProgressionprivate final Booleanscrollprivate final Spreadspreadprivate final TextAligntextAlignprivate final ColortextColorprivate final BooleantextNormalizationprivate final Themethemeprivate final DoubletypeScaleprivate final BooleanverticalTextprivate final DoublewordSpacing
-
Constructor Summary
Constructors Constructor Description EpubPreferences(Color backgroundColor, ColumnCount columnCount, FontFamily fontFamily, Double fontSize, Double fontWeight, Boolean hyphens, ImageFilter imageFilter, Language language, Double letterSpacing, Boolean ligatures, Double lineHeight, Double pageMargins, Double paragraphIndent, Double paragraphSpacing, Boolean publisherStyles, ReadingProgression readingProgression, Boolean scroll, Spread spread, TextAlign textAlign, Color textColor, Boolean textNormalization, Theme theme, Double typeScale, Boolean verticalText, Double wordSpacing)
-
Method Summary
Modifier and Type Method Description final ColorgetBackgroundColor()final ColumnCountgetColumnCount()final FontFamilygetFontFamily()final DoublegetFontSize()final DoublegetFontWeight()final BooleangetHyphens()final ImageFiltergetImageFilter()final LanguagegetLanguage()final DoublegetLetterSpacing()final BooleangetLigatures()final DoublegetLineHeight()final DoublegetPageMargins()final DoublegetParagraphIndent()final DoublegetParagraphSpacing()final BooleangetPublisherStyles()final ReadingProgressiongetReadingProgression()final BooleangetScroll()final SpreadgetSpread()final TextAligngetTextAlign()final ColorgetTextColor()final BooleangetTextNormalization()final ThemegetTheme()final DoublegetTypeScale()final BooleangetVerticalText()final DoublegetWordSpacing()EpubPreferencesplus(EpubPreferences other)Creates a new instance of P after merging the values of other. -
-
Constructor Detail
-
EpubPreferences
EpubPreferences(Color backgroundColor, ColumnCount columnCount, FontFamily fontFamily, Double fontSize, Double fontWeight, Boolean hyphens, ImageFilter imageFilter, Language language, Double letterSpacing, Boolean ligatures, Double lineHeight, Double pageMargins, Double paragraphIndent, Double paragraphSpacing, Boolean publisherStyles, ReadingProgression readingProgression, Boolean scroll, Spread spread, TextAlign textAlign, Color textColor, Boolean textNormalization, Theme theme, Double typeScale, Boolean verticalText, Double wordSpacing)
- Parameters:
backgroundColor- Default page background color.columnCount- Number of reflowable columns to display (one-page view or two-page spread).fontFamily- Default typeface for the text.fontSize- Base text font size.fontWeight- Default boldness for the text.hyphens- Enable hyphenation.imageFilter- Filter applied to images in dark theme.language- Language of the publication content.letterSpacing- Space between letters.ligatures- Enable ligatures in Arabic.lineHeight- Leading line height.pageMargins- Factor applied to horizontal margins.paragraphIndent- Text indentation for paragraphs.paragraphSpacing- Vertical margins for paragraphs.publisherStyles- Indicates whether the original publisher styles should be observed.readingProgression- Direction of the reading progression across resources.scroll- Indicates if the overflow of resources should be handled using scrolling instead of synthetic pagination.spread- Indicates if the fixed-layout publication should be rendered with a synthetic spread (dual-page).textAlign- Page text alignment.textColor- Default page text color.textNormalization- Normalize text styles to increase accessibility.theme- Reader theme.typeScale- Scale applied to all element font sizes.verticalText- Indicates whether the text should be laid out vertically.wordSpacing- Space between words.
-
-
Method Detail
-
getBackgroundColor
final Color getBackgroundColor()
-
getColumnCount
final ColumnCount getColumnCount()
-
getFontFamily
final FontFamily getFontFamily()
-
getFontSize
final Double getFontSize()
-
getFontWeight
final Double getFontWeight()
-
getHyphens
final Boolean getHyphens()
-
getImageFilter
final ImageFilter getImageFilter()
-
getLanguage
final Language getLanguage()
-
getLetterSpacing
final Double getLetterSpacing()
-
getLigatures
final Boolean getLigatures()
-
getLineHeight
final Double getLineHeight()
-
getPageMargins
final Double getPageMargins()
-
getParagraphIndent
final Double getParagraphIndent()
-
getParagraphSpacing
final Double getParagraphSpacing()
-
getPublisherStyles
final Boolean getPublisherStyles()
-
getReadingProgression
final ReadingProgression getReadingProgression()
-
getTextAlign
final TextAlign getTextAlign()
-
getTextColor
final Color getTextColor()
-
getTextNormalization
final Boolean getTextNormalization()
-
getTypeScale
final Double getTypeScale()
-
getVerticalText
final Boolean getVerticalText()
-
getWordSpacing
final Double getWordSpacing()
-
plus
EpubPreferences plus(EpubPreferences other)
-
-
-
-