Top Description Inners Constructors Methods
javafx.css.converter

public final Class InsetsConverter

extends StyleConverter<ParsedValue<V, T>[], Insets>
Class Inheritance
Imports
javafx.css.Size, .ParsedValue, .StyleConverter, javafx.geometry.Insets, javafx.scene.text.Font

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 and Inner Type Summary

Modifier and TypeClass and Description
private static class
public static 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.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Insets
convert(ParsedValue<ParsedValue<V, T>[], Insets>
The ParsedValue to convert
value
,
Font
The Font to use when converting a relative value.
font
)

Overrides javafx.css.StyleConverter.convert.

Convert from the parsed CSS value to the target property type.

public static StyleConverter<ParsedValue<V, T>[], Insets>

Returns:

the InsetsConverter instance
getInstance
()

Gets the InsetsConverter instance.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from javafx.css.StyleConverter:
cacheValueclearCacheconvertgetBooleanConvertergetCachedValuegetColorConvertergetDurationConvertergetEffectConvertergetEnumConvertergetFontConvertergetInsetsConvertergetPaintConvertergetSizeConvertergetStringConvertergetUrlConverterreadBinarywriteBinary

Constructor Detail

InsetsConverterback to summary
private InsetsConverter()

Method Detail

convertback to summary
public Insets convert(ParsedValue<ParsedValue<V, T>[], Insets> value, Font font)

Overrides javafx.css.StyleConverter.convert.

Doc from javafx.css.StyleConverter.convert.

Convert from the parsed CSS value to the target property type.

Parameters
value:ParsedValue<ParsedValue<V, T>[], Insets>

The ParsedValue to convert

font:Font

The Font to use when converting a relative value.

Returns:Insets

the converted target property type

Annotations
@Override
getInstanceback to summary
public static StyleConverter<ParsedValue<V, T>[], Insets> getInstance()

Gets the InsetsConverter instance.

Returns:StyleConverter<ParsedValue<V, T>[], Insets>

the InsetsConverter instance

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override
javafx.css.converter back to summary

private Class InsetsConverter.Holder

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv static final InsetsConverter
pack-priv static final InsetsConverter.SequenceConverter

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
pack-priv static final InsetsConverter INSTANCE
SEQUENCE_INSTANCEback to summary
pack-priv static final InsetsConverter.SequenceConverter SEQUENCE_INSTANCE

Constructor Detail

Holderback to summary
private Holder()
javafx.css.converter back to summary

public final Class InsetsConverter.SequenceConverter

extends StyleConverter<ParsedValue<ParsedValue<V, T>[], Insets>[], Insets[]>
Class Inheritance

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.
Since
9

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Insets[]
convert(ParsedValue<ParsedValue<ParsedValue<V, T>[], Insets>[], Insets[]>
The ParsedValue to convert
value
,
Font
The Font to use when converting a relative value.
font
)

Overrides javafx.css.StyleConverter.convert.

Convert from the parsed CSS value to the target property type.

public static InsetsConverter.SequenceConverter

Returns:

the SequenceConverter instance
getInstance
()

Gets the SequenceConverter instance.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from javafx.css.StyleConverter:
cacheValueclearCacheconvertgetBooleanConvertergetCachedValuegetColorConvertergetDurationConvertergetEffectConvertergetEnumConvertergetFontConvertergetInsetsConvertergetPaintConvertergetSizeConvertergetStringConvertergetUrlConverterreadBinarywriteBinary

Constructor Detail

SequenceConverterback to summary
private SequenceConverter()

Method Detail

convertback to summary
public Insets[] convert(ParsedValue<ParsedValue<ParsedValue<V, T>[], Insets>[], Insets[]> value, Font font)

Overrides javafx.css.StyleConverter.convert.

Doc from javafx.css.StyleConverter.convert.

Convert from the parsed CSS value to the target property type.

Parameters
value:ParsedValue<ParsedValue<ParsedValue<V, T>[], Insets>[], Insets[]>

The ParsedValue to convert

font:Font

The Font to use when converting a relative value.

Returns:Insets[]

the converted target property type

Annotations
@Override
getInstanceback to summary
public static InsetsConverter.SequenceConverter getInstance()

Gets the SequenceConverter instance.

Returns:InsetsConverter.SequenceConverter

the SequenceConverter instance

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override