Class InsetsConverter
public final class InsetsConverter extends StyleConverter<ParsedValue[],Insets>
Converter to convert a parsed value array of 1 to 4 size components to an
Insets. The size values are interpreted as top, right, bottom, left. If only top is given, that value is used on all sides. If there is only top and right, then bottom is set to top and left is set to right. If top, right and bottom are given, then left is set to right.- Since:
- 9
Nested Class Summary
| Modifier and Type | Class | Description |
|---|---|---|
static final class |
InsetsConverter.SequenceConverter |
Converter to convert an array of parsed values, each of which is an array of 1 to 4 size components, to an array of Insets objects. |
Nested classes/interfaces declared in class javafx.css.StyleConverter
StyleConverter.StringStore
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
static StyleConverter<ParsedValue[], |
getInstance() |
Gets the InsetsConverter instance. |
Methods declared in class javafx.css.StyleConverter
cacheValue, clearCache, convert, convert, getBooleanConverter, getCachedValue, getColorConverter, getDurationConverter, getEffectConverter, getEnumConverter, getFontConverter, getInsetsConverter, getPaintConverter, getSizeConverter, getStringConverter, getUrlConverter, readBinary, writeBinary
Method Details
getInstance
public static StyleConverter<ParsedValue[],Insets> getInstance()
Gets the
InsetsConverter instance.- Returns:
- the
InsetsConverterinstance
© 2008, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from JavaFX API Documentation.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Java, JavaFX and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.