java.lang.Object
org.jhotdraw8.css.converter.AbstractCssConverter<Path2D.Double>
org.jhotdraw8.draw.css.converter.AwtPathCssConverter
- All Implemented Interfaces:
org.jhotdraw8.base.converter.Converter<Path2D.Double>,CssConverter<Path2D.Double>
Converts an SVG path to a AWT path.
The null value will be converted to the CSS identifier "none".
- Author:
- Werner Randelshofer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparseNonNull(@NonNull CssTokenizer tt, @Nullable org.jhotdraw8.base.converter.IdResolver idResolver) protected <TT extends Path2D.Double>
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, fromStringNonNull, fromStringNonNull, fromStringNonNull, fromStringNonNull, needsIdResolver, toString, toStringMethods inherited from interface org.jhotdraw8.css.converter.CssConverter
fromString, fromString, getExamples, toString, toString, toString, toTokens
-
Constructor Details
-
AwtPathCssConverter
public AwtPathCssConverter(boolean nullable)
-
-
Method Details
-
parseNonNull
public @NonNull Path2D.Double parseNonNull(@NonNull CssTokenizer tt, @Nullable org.jhotdraw8.base.converter.IdResolver idResolver) throws ParseException, IOException - Specified by:
parseNonNullin interfaceCssConverter<Path2D.Double>- Specified by:
parseNonNullin classAbstractCssConverter<Path2D.Double>- Throws:
ParseExceptionIOException
-
produceTokensNonNull
protected <TT extends Path2D.Double> void produceTokensNonNull(@NonNull TT value, @Nullable org.jhotdraw8.base.converter.IdSupplier idSupplier, @NonNull Consumer<CssToken> out) - Specified by:
produceTokensNonNullin classAbstractCssConverter<Path2D.Double>
-
getHelpText
-
getDefaultValue
- Specified by:
getDefaultValuein interfaceorg.jhotdraw8.base.converter.Converter<Path2D.Double>- Overrides:
getDefaultValuein classAbstractCssConverter<Path2D.Double>
-