java.lang.Object
org.jhotdraw8.css.converter.AbstractCssConverter<javafx.geometry.Insets>
org.jhotdraw8.draw.css.converter.InsetsConverter
- All Implemented Interfaces:
org.jhotdraw8.base.converter.Converter<javafx.geometry.Insets>,CssConverter<javafx.geometry.Insets>
Converts a
Insets 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 TypeMethodDescription@Nullable Stringjavafx.geometry.InsetsparseNonNull(CssTokenizer tt, @Nullable org.jhotdraw8.base.converter.IdResolver idResolver) protected <TT extends javafx.geometry.Insets>
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, getExamples, toString, toString, toString, toTokens
-
Constructor Details
-
InsetsConverter
public InsetsConverter(boolean nullable)
-
-
Method Details
-
parseNonNull
public javafx.geometry.Insets parseNonNull(CssTokenizer tt, @Nullable org.jhotdraw8.base.converter.IdResolver idResolver) throws ParseException, IOException - Specified by:
parseNonNullin interfaceCssConverter<javafx.geometry.Insets>- Specified by:
parseNonNullin classAbstractCssConverter<javafx.geometry.Insets>- Throws:
ParseExceptionIOException
-
getHelpText
-
produceTokensNonNull
protected <TT extends javafx.geometry.Insets> void produceTokensNonNull(TT value, @Nullable org.jhotdraw8.base.converter.IdSupplier idSupplier, Consumer<CssToken> out) - Specified by:
produceTokensNonNullin classAbstractCssConverter<javafx.geometry.Insets>
-