Class FontShorthandResolver

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private java.util.List<java.lang.String> getFontProperties​(java.lang.String shorthandExpression)
      Gets the font properties.
      java.util.List<CssDeclaration> resolveShorthand​(java.lang.String shorthandExpression)
      Resolves a shorthand expression.
      • Methods inherited from class java.lang.Object

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

      • UNSUPPORTED_VALUES_OF_FONT_SHORTHAND

        private static final java.util.Set<java.lang.String> UNSUPPORTED_VALUES_OF_FONT_SHORTHAND
        Unsupported shorthand values.
      • FONT_WEIGHT_NOT_DEFAULT_VALUES

        private static final java.util.Set<java.lang.String> FONT_WEIGHT_NOT_DEFAULT_VALUES
        Font weight values.
      • FONT_SIZE_VALUES

        private static final java.util.Set<java.lang.String> FONT_SIZE_VALUES
        Font size values.
    • Constructor Detail

      • FontShorthandResolver

        public FontShorthandResolver()
    • Method Detail

      • resolveShorthand

        public java.util.List<CssDeclaration> resolveShorthand​(java.lang.String shorthandExpression)
        Description copied from interface: IShorthandResolver
        Resolves a shorthand expression.
        Specified by:
        resolveShorthand in interface IShorthandResolver
        Parameters:
        shorthandExpression - the shorthand expression
        Returns:
        a list of CSS declaration
      • getFontProperties

        private java.util.List<java.lang.String> getFontProperties​(java.lang.String shorthandExpression)
        Gets the font properties.
        Parameters:
        shorthandExpression - the shorthand expression
        Returns:
        the font properties