java.lang.Object
org.jhotdraw8.css.converter.AbstractCssConverter<CssInsets>
org.jhotdraw8.draw.css.converter.InsetsCssConverter
- All Implemented Interfaces:
org.jhotdraw8.base.converter.Converter<CssInsets>,CssConverter<CssInsets>
Converts a
CssInsets object into a String and vice
versa.
List of four sizes in the sequence top, right, bottom, left. If left is omitted, it is the same as right. If bottom is omitted, it is the same as top. If right is omitted it is the same as top.
insets = top-right-bottom-left ; insets = top-bottom, right-left ; insets = top , right , bottom, left ;*
- Author:
- Werner Randelshofer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparseNonNull(@NonNull CssTokenizer tt, @Nullable org.jhotdraw8.base.converter.IdResolver idResolver) protected <TT extends CssInsets>
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, getExamples, toString, toString, toString, toTokens
-
Constructor Details
-
InsetsCssConverter
public InsetsCssConverter(boolean nullable)
-
-
Method Details
-
parseNonNull
public @NonNull CssInsets parseNonNull(@NonNull CssTokenizer tt, @Nullable org.jhotdraw8.base.converter.IdResolver idResolver) throws ParseException, IOException - Specified by:
parseNonNullin interfaceCssConverter<CssInsets>- Specified by:
parseNonNullin classAbstractCssConverter<CssInsets>- Throws:
ParseExceptionIOException
-
getHelpText
-
produceTokensNonNull
protected <TT extends CssInsets> void produceTokensNonNull(@NonNull TT value, @Nullable org.jhotdraw8.base.converter.IdSupplier idSupplier, @NonNull Consumer<CssToken> out) - Specified by:
produceTokensNonNullin classAbstractCssConverter<CssInsets>
-