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 TypeMethodDescription@Nullable Stringprotected javafx.scene.shape.StrokeLineCapprotected javafx.scene.shape.StrokeLineJoinparseNonNull(CssTokenizer tt, @Nullable org.jhotdraw8.base.converter.IdResolver idResolver) protected javafx.scene.shape.StrokeTypeprotected <TT extends CssStrokeStyle>
voidproduceTokensNonNull(TT value, @Nullable org.jhotdraw8.base.converter.IdSupplier idSupplier, 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, fromStringNonNull, fromStringNonNull, fromStringNonNull, fromStringNonNull, 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 CssStrokeStyle parseNonNull(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 javafx.scene.shape.StrokeLineJoin parseLineJoin(CssTokenizer tt) throws ParseException, IOException - Throws:
ParseExceptionIOException
-
parseLineCap
protected javafx.scene.shape.StrokeLineCap parseLineCap(CssTokenizer tt) throws ParseException, IOException - Throws:
ParseExceptionIOException
-
parseStrokeType
protected javafx.scene.shape.StrokeType parseStrokeType(CssTokenizer tt) throws ParseException, IOException - Throws:
ParseExceptionIOException
-
getHelpText
-
getExamples
-
produceTokensNonNull
protected <TT extends CssStrokeStyle> void produceTokensNonNull(TT value, @Nullable org.jhotdraw8.base.converter.IdSupplier idSupplier, Consumer<CssToken> out) - Specified by:
produceTokensNonNullin classAbstractCssConverter<CssStrokeStyle>
-