java.lang.Object
org.jhotdraw8.css.converter.AbstractCssConverter<ImmutableList<javafx.scene.shape.PathElement>>
org.jhotdraw8.draw.css.converter.FXPathElementsCssConverter
- All Implemented Interfaces:
org.jhotdraw8.base.converter.Converter<ImmutableList<javafx.scene.shape.PathElement>>,CssConverter<ImmutableList<javafx.scene.shape.PathElement>>
public class FXPathElementsCssConverter
extends AbstractCssConverter<ImmutableList<javafx.scene.shape.PathElement>>
Converts an SVG path to a list of
PathElements.
The null value will be converted to the CSS identifier none.
- Author:
- Werner Randelshofer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable ImmutableList<javafx.scene.shape.PathElement> @NonNull ImmutableList<javafx.scene.shape.PathElement> parseNonNull(@NonNull CssTokenizer tt, @Nullable org.jhotdraw8.base.converter.IdResolver idResolver) protected <TT extends ImmutableList<javafx.scene.shape.PathElement>>
voidproduceTokensNonNull(@NonNull TT value, @Nullable org.jhotdraw8.base.converter.IdSupplier idSupplier, @NonNull Consumer<CssToken> out) Methods inherited from class org.jhotdraw8.css.converter.AbstractCssConverter
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
-
FXPathElementsCssConverter
public FXPathElementsCssConverter(boolean nullable)
-
-
Method Details
-
parseNonNull
public @NonNull ImmutableList<javafx.scene.shape.PathElement> parseNonNull(@NonNull CssTokenizer tt, @Nullable org.jhotdraw8.base.converter.IdResolver idResolver) throws ParseException, IOException - Specified by:
parseNonNullin interfaceCssConverter<ImmutableList<javafx.scene.shape.PathElement>>- Specified by:
parseNonNullin classAbstractCssConverter<ImmutableList<javafx.scene.shape.PathElement>>- Throws:
ParseExceptionIOException
-
produceTokensNonNull
protected <TT extends ImmutableList<javafx.scene.shape.PathElement>> void produceTokensNonNull(@NonNull TT value, @Nullable org.jhotdraw8.base.converter.IdSupplier idSupplier, @NonNull Consumer<CssToken> out) - Specified by:
produceTokensNonNullin classAbstractCssConverter<ImmutableList<javafx.scene.shape.PathElement>>
-
getHelpText
-
getDefaultValue
- Specified by:
getDefaultValuein interfaceorg.jhotdraw8.base.converter.Converter<ImmutableList<javafx.scene.shape.PathElement>>- Overrides:
getDefaultValuein classAbstractCssConverter<ImmutableList<javafx.scene.shape.PathElement>>
-