java.lang.Object
org.jhotdraw8.css.converter.AbstractCssConverter<Paintable>
org.jhotdraw8.draw.css.converter.PaintableCssConverter
- All Implemented Interfaces:
org.jhotdraw8.base.converter.Converter<Paintable>,CssConverter<Paintable>
CssPaintableConverter.
Parses the following EBNF from the JavaFX CSS Reference Guide.
Paintable := (Color|LinearGradient|RadialGradient|ImagePattern|RepeatingImagePattern) ;
FIXME currently only parses the Color and the LinearGradient productions
- Author:
- Werner Randelshofer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparseNonNull(@NonNull CssTokenizer tt, @Nullable org.jhotdraw8.base.converter.IdResolver idResolver) protected <TT extends Paintable>
voidproduceTokensNonNull(@NonNull TT value, @Nullable org.jhotdraw8.base.converter.IdSupplier idSupplier, @NonNull Consumer<CssToken> out) Methods inherited from class org.jhotdraw8.css.converter.AbstractCssConverter
getDefaultValue, isNullable, parse, produceTokensMethods 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, needsIdResolver, toString, toStringMethods inherited from interface org.jhotdraw8.css.converter.CssConverter
fromString, fromString, getExamples, toString, toString, toString, toTokens
-
Constructor Details
-
PaintableCssConverter
public PaintableCssConverter(boolean nullable)
-
-
Method Details
-
getHelpText
-
parseNonNull
public @NonNull Paintable parseNonNull(@NonNull CssTokenizer tt, @Nullable org.jhotdraw8.base.converter.IdResolver idResolver) throws ParseException, IOException - Specified by:
parseNonNullin interfaceCssConverter<Paintable>- Specified by:
parseNonNullin classAbstractCssConverter<Paintable>- Throws:
ParseExceptionIOException
-
produceTokensNonNull
protected <TT extends Paintable> void produceTokensNonNull(@NonNull TT value, @Nullable org.jhotdraw8.base.converter.IdSupplier idSupplier, @NonNull Consumer<CssToken> out) throws IOException - Specified by:
produceTokensNonNullin classAbstractCssConverter<Paintable>- Throws:
IOException
-