java.lang.Object
org.jhotdraw8.svg.io.SvgFontFamilyConverter
- All Implemented Interfaces:
Converter<ImmutableList<String>>,org.jhotdraw8.css.converter.CssConverter<ImmutableList<String>>
public class SvgFontFamilyConverter
extends Object
implements org.jhotdraw8.css.converter.CssConverter<ImmutableList<String>>
Parses a font family.
font-family = ( { family-name | generic-family , "," }
family-name | generic-family )
| "inherit" ;
family-name = STRING
| IDENT, { IDENT } ;
generic-family = 'serif' | 'sans-serif' | 'cursive' | 'fantasy' | 'monospace' ;
References:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanparse(@NonNull org.jhotdraw8.css.parser.CssTokenizer tt, @Nullable IdResolver idResolver) <TT extends ImmutableList<String>>
voidproduceTokens(@Nullable TT value, @Nullable IdSupplier idSupplier, @NonNull Consumer<org.jhotdraw8.css.parser.CssToken> out) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jhotdraw8.base.converter.Converter
fromString, fromString, fromStringNonNull, fromStringNonNull, fromStringNonNull, fromStringNonNull, needsIdResolver, toString, toStringMethods inherited from interface org.jhotdraw8.css.converter.CssConverter
fromString, fromString, getExamples, parseNonNull, toString, toString, toString, toTokens
-
Field Details
-
GENERIC_FONT_FAMILY_SERIF
- See Also:
-
GENERIC_FONT_FAMILY_SANS_SERIF
- See Also:
-
GENERIC_FONT_FAMILY_CURSIVE
- See Also:
-
GENERIC_FONT_FAMILY_FANTASY
- See Also:
-
GENERIC_FONT_FAMILY_MONOSPACE
- See Also:
-
-
Constructor Details
-
SvgFontFamilyConverter
public SvgFontFamilyConverter()
-
-
Method Details
-
parse
public @Nullable ImmutableList<String> parse(@NonNull org.jhotdraw8.css.parser.CssTokenizer tt, @Nullable IdResolver idResolver) throws ParseException, IOException - Specified by:
parsein interfaceorg.jhotdraw8.css.converter.CssConverter<ImmutableList<String>>- Throws:
ParseExceptionIOException
-
produceTokens
public <TT extends ImmutableList<String>> void produceTokens(@Nullable TT value, @Nullable IdSupplier idSupplier, @NonNull Consumer<org.jhotdraw8.css.parser.CssToken> out) - Specified by:
produceTokensin interfaceorg.jhotdraw8.css.converter.CssConverter<ImmutableList<String>>
-
getDefaultValue
- Specified by:
getDefaultValuein interfaceConverter<ImmutableList<String>>
-
getHelpText
- Specified by:
getHelpTextin interfaceConverter<ImmutableList<String>>- Specified by:
getHelpTextin interfaceorg.jhotdraw8.css.converter.CssConverter<ImmutableList<String>>
-
isNullable
public boolean isNullable()- Specified by:
isNullablein interfaceorg.jhotdraw8.css.converter.CssConverter<ImmutableList<String>>
-