-
- All Implemented Interfaces:
-
org.readium.r2.navigator.epub.css.Cssable,org.readium.r2.navigator.epub.css.Properties
public final class RsProperties implements Properties
Reading System properties.
See https://readium.org/readium-css/docs/CSS19-api.html#reading-system-styles
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description RsProperties(Length colWidth, ColCount colCount, Length.Absolute colGap, Length.Absolute pageGutter, Length flowSpacing, Length paraSpacing, Length paraIndent, Length.Rem maxLineLength, Length maxMediaWidth, Length maxMediaHeight, BoxSizing boxSizingMedia, BoxSizing boxSizingTable, Color textColor, Color backgroundColor, Color selectionTextColor, Color selectionBackgroundColor, Color linkColor, Color visitedColor, Color primaryColor, Color secondaryColor, Double typeScale, List<String> baseFontFamily, Either<Length, Double> baseLineHeight, List<String> oldStyleTf, List<String> modernTf, List<String> sansTf, List<String> humanistTf, List<String> monospaceTf, List<String> serifJa, List<String> sansSerifJa, List<String> serifJaV, List<String> sansSerifJaV, List<String> compFontFamily, List<String> codeFontFamily, Map<String, String> overrides)
-
Method Summary
-
-
Constructor Detail
-
RsProperties
RsProperties(Length colWidth, ColCount colCount, Length.Absolute colGap, Length.Absolute pageGutter, Length flowSpacing, Length paraSpacing, Length paraIndent, Length.Rem maxLineLength, Length maxMediaWidth, Length maxMediaHeight, BoxSizing boxSizingMedia, BoxSizing boxSizingTable, Color textColor, Color backgroundColor, Color selectionTextColor, Color selectionBackgroundColor, Color linkColor, Color visitedColor, Color primaryColor, Color secondaryColor, Double typeScale, List<String> baseFontFamily, Either<Length, Double> baseLineHeight, List<String> oldStyleTf, List<String> modernTf, List<String> sansTf, List<String> humanistTf, List<String> monospaceTf, List<String> serifJa, List<String> sansSerifJa, List<String> serifJaV, List<String> sansSerifJaV, List<String> compFontFamily, List<String> codeFontFamily, Map<String, String> overrides)
- Parameters:
colWidth- The optimal column’s width.colCount- The optimal number of columns (depending on the columns’ width).colGap- The gap between columns.pageGutter- The horizontal page margins.flowSpacing- The default vertical margins for HTML5 flow content e.g.paraSpacing- The default vertical margins for paragraphs.paraIndent- The default text-indent for paragraphs.maxLineLength- The optimal line-length.maxMediaWidth- The max-width for media elements i.e.maxMediaHeight- The max-height for media elements i.e.boxSizingMedia- The box model (box-sizing) you want to use for media elements.boxSizingTable- The box model (box-sizing) you want to use for tables.textColor- The default color for body copy’s text.backgroundColor- The default background-color for pages.selectionTextColor- The color for selected text.selectionBackgroundColor- The background-color for selected text.linkColor- The default color for hyperlinks.visitedColor- The default color for visited hyperlinks.primaryColor- An optional primary accentuation color you could use for headings or any other element of your choice.secondaryColor- An optional secondary accentuation color you could use for any element of your choice.typeScale- The scale to be used for computing all elements’ font-size.baseFontFamily- The default typeface for body copy in case the ebook doesn’t have one declared.baseLineHeight- The default line-height for body copy in case the ebook doesn’t have one declared.oldStyleTf- An old style serif font-stack relying on pre-installed fonts.modernTf- A modern serif font-stack relying on pre-installed fonts.sansTf- A neutral sans-serif font-stack relying on pre-installed fonts.humanistTf- A humanist sans-serif font-stack relying on pre-installed fonts.monospaceTf- A monospace font-stack relying on pre-installed fonts.serifJa- A Mincho font-stack whose fonts with proportional latin characters are prioritized for horizontal writing.sansSerifJa- A Gothic font-stack whose fonts with proportional latin characters are prioritized for horizontal writing.serifJaV- A Mincho font-stack whose fonts with fixed-width latin characters are prioritized for vertical writing.sansSerifJaV- A Gothic font-stack whose fonts with fixed-width latin characters are prioritized for vertical writing.compFontFamily- The typeface for headings.codeFontFamily- The typeface for code snippets.
-
-
Method Detail
-
getColWidth
final Length getColWidth()
-
getColCount
final ColCount getColCount()
-
getColGap
final Length.Absolute getColGap()
-
getPageGutter
final Length.Absolute getPageGutter()
-
getFlowSpacing
final Length getFlowSpacing()
-
getParaSpacing
final Length getParaSpacing()
-
getParaIndent
final Length getParaIndent()
-
getMaxLineLength
final Length.Rem getMaxLineLength()
-
getMaxMediaWidth
final Length getMaxMediaWidth()
-
getMaxMediaHeight
final Length getMaxMediaHeight()
-
getBoxSizingMedia
final BoxSizing getBoxSizingMedia()
-
getBoxSizingTable
final BoxSizing getBoxSizingTable()
-
getTextColor
final Color getTextColor()
-
getBackgroundColor
final Color getBackgroundColor()
-
getSelectionTextColor
final Color getSelectionTextColor()
-
getSelectionBackgroundColor
final Color getSelectionBackgroundColor()
-
getLinkColor
final Color getLinkColor()
-
getVisitedColor
final Color getVisitedColor()
-
getPrimaryColor
final Color getPrimaryColor()
-
getSecondaryColor
final Color getSecondaryColor()
-
getTypeScale
final Double getTypeScale()
-
getBaseFontFamily
final List<String> getBaseFontFamily()
-
getBaseLineHeight
final Either<Length, Double> getBaseLineHeight()
-
getOldStyleTf
final List<String> getOldStyleTf()
-
getModernTf
final List<String> getModernTf()
-
getHumanistTf
final List<String> getHumanistTf()
-
getMonospaceTf
final List<String> getMonospaceTf()
-
getSerifJa
final List<String> getSerifJa()
-
getSansSerifJa
final List<String> getSansSerifJa()
-
getSerifJaV
final List<String> getSerifJaV()
-
getSansSerifJaV
final List<String> getSansSerifJaV()
-
getCompFontFamily
final List<String> getCompFontFamily()
-
getCodeFontFamily
final List<String> getCodeFontFamily()
-
getOverrides
final Map<String, String> getOverrides()
-
toCssProperties
Map<String, String> toCssProperties()
-
-
-
-