java.lang.Object
org.jhotdraw8.css.converter.AbstractCssConverter<CssStrokeStyle>
org.jhotdraw8.draw.css.converter.StrokeStyleCssConverter
- All Implemented Interfaces:
org.jhotdraw8.base.converter.Converter<CssStrokeStyle>,CssConverter<CssStrokeStyle>
Allows to set all stroke properties at once.
StrokeStyle := {Options};
Options = ( Type | Linecap | Linejoin | Miterlimit | Dashoffset | Dasharray );
Type = "type(" , ("inside"|"outside"|"centered"), ")";
Linecap = "linecap(",("square"|"butt"|"round"),")";
Linejoin = "linecap(",("miter"|"bevel"|"round"),")";
Miterlimit = "miterlimit(",Size,")";
Dashoffset = "dashoffset(",Size,")";
Dasharray = "dasharray(",Size,{Size},")";
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected @NonNull javafx.scene.shape.StrokeLineCapprotected @NonNull javafx.scene.shape.StrokeLineJoinparseNonNull(@NonNull CssTokenizer tt, @Nullable org.jhotdraw8.base.converter.IdResolver idResolver) protected @NonNull javafx.scene.shape.StrokeTypeprotected <TT extends CssStrokeStyle>
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, toString, toString, toString, toTokens
-
Field Details
-
INSIDE
- See Also:
-
OUTSIDE
- See Also:
-
CENTERED
- See Also:
-
BUTT
- See Also:
-
MITER
- See Also:
-
ROUND
- See Also:
-
BEVEL
- See Also:
-
SQUARE
- See Also:
-
TYPE
- See Also:
-
LINEJOIN
- See Also:
-
LINECAP
- See Also:
-
DASHOFFSET
- See Also:
-
DASHARRAY
- See Also:
-
MITERLIMIT
- See Also:
-
-
Constructor Details
-
StrokeStyleCssConverter
public StrokeStyleCssConverter(boolean nullable)
-
-
Method Details
-
parseNonNull
public @NonNull CssStrokeStyle parseNonNull(@NonNull CssTokenizer tt, @Nullable org.jhotdraw8.base.converter.IdResolver idResolver) throws ParseException, IOException - Specified by:
parseNonNullin interfaceCssConverter<CssStrokeStyle>- Specified by:
parseNonNullin classAbstractCssConverter<CssStrokeStyle>- Throws:
ParseExceptionIOException
-
parseLineJoin
protected @NonNull javafx.scene.shape.StrokeLineJoin parseLineJoin(@NonNull CssTokenizer tt) throws ParseException, IOException - Throws:
ParseExceptionIOException
-
parseLineCap
protected @NonNull javafx.scene.shape.StrokeLineCap parseLineCap(@NonNull CssTokenizer tt) throws ParseException, IOException - Throws:
ParseExceptionIOException
-
parseStrokeType
protected @NonNull javafx.scene.shape.StrokeType parseStrokeType(@NonNull CssTokenizer tt) throws ParseException, IOException - Throws:
ParseExceptionIOException
-
getHelpText
-
getExamples
-
produceTokensNonNull
protected <TT extends CssStrokeStyle> void produceTokensNonNull(@NonNull TT value, @Nullable org.jhotdraw8.base.converter.IdSupplier idSupplier, @NonNull Consumer<CssToken> out) - Specified by:
produceTokensNonNullin classAbstractCssConverter<CssStrokeStyle>
-