java.lang.Object
org.jhotdraw8.css.converter.AbstractCssConverter<javafx.scene.shape.StrokeType>
org.jhotdraw8.svg.text.SvgStrokeAlignmentConverter
- All Implemented Interfaces:
Converter<javafx.scene.shape.StrokeType>,org.jhotdraw8.css.converter.CssConverter<javafx.scene.shape.StrokeType>
public class SvgStrokeAlignmentConverter
extends org.jhotdraw8.css.converter.AbstractCssConverter<javafx.scene.shape.StrokeType>
Converts SVG 2 stroke-alignment.
StrokeAlignment = "type(" , ("inner"|"outer"|"center"), ")";
References:
- SVG Strokes, § 2.2. Specifying stroke alignment: the ‘stroke-alignment’ property
- w3.org
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable Stringjavafx.scene.shape.StrokeTypeparseNonNull(org.jhotdraw8.css.parser.CssTokenizer tt, @Nullable IdResolver idResolver) protected <TT extends javafx.scene.shape.StrokeType>
voidproduceTokensNonNull(TT value, @Nullable IdSupplier idSupplier, Consumer<org.jhotdraw8.css.parser.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, fromStringNonNull, fromStringNonNull, fromStringNonNull, fromStringNonNull, needsIdResolver, toString, toStringMethods inherited from interface org.jhotdraw8.css.converter.CssConverter
fromString, fromString, getExamples, toString, toString, toString, toTokens
-
Field Details
-
INSIDE
- See Also:
-
OUTSIDE
- See Also:
-
CENTERED
- See Also:
-
-
Constructor Details
-
SvgStrokeAlignmentConverter
public SvgStrokeAlignmentConverter(boolean nullable)
-
-
Method Details
-
parseNonNull
public javafx.scene.shape.StrokeType parseNonNull(org.jhotdraw8.css.parser.CssTokenizer tt, @Nullable IdResolver idResolver) throws ParseException, IOException - Specified by:
parseNonNullin interfaceorg.jhotdraw8.css.converter.CssConverter<javafx.scene.shape.StrokeType>- Specified by:
parseNonNullin classorg.jhotdraw8.css.converter.AbstractCssConverter<javafx.scene.shape.StrokeType>- Throws:
ParseExceptionIOException
-
getHelpText
-
produceTokensNonNull
protected <TT extends javafx.scene.shape.StrokeType> void produceTokensNonNull(TT value, @Nullable IdSupplier idSupplier, Consumer<org.jhotdraw8.css.parser.CssToken> out) - Specified by:
produceTokensNonNullin classorg.jhotdraw8.css.converter.AbstractCssConverter<javafx.scene.shape.StrokeType>
-