Top Description Inners Constructors Methods
javafx.css.converter

public final Class SizeConverter

extends StyleConverter<ParsedValue<?, Size>, Number>
Class Inheritance
Imports
javafx.css.Size, .ParsedValue, .StyleConverter, javafx.scene.text.Font

Converter to convert a Size to a Number.
Since
9

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
public static class
SizeConverter.SequenceConverter

Converter to convert a sequence of sizes to an array of Number.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Number
convert(ParsedValue<ParsedValue<?, Size>, Number>
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<?, Size>, Number>

Returns:

the SizeConverter instance
getInstance
()

Gets the SizeConverter instance.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from javafx.css.StyleConverter:
cacheValueclearCacheconvertgetBooleanConvertergetCachedValuegetColorConvertergetDurationConvertergetEffectConvertergetEnumConvertergetFontConvertergetInsetsConvertergetPaintConvertergetSizeConvertergetStringConvertergetUrlConverterreadBinarywriteBinary

Constructor Detail

SizeConverterback to summary
private SizeConverter()

Method Detail

convertback to summary
public Number convert(ParsedValue<ParsedValue<?, Size>, Number> 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<?, Size>, Number>

The ParsedValue to convert

font:Font

The Font to use when converting a relative value.

Returns:Number

the converted target property type

Annotations
@Override
getInstanceback to summary
public static StyleConverter<ParsedValue<?, Size>, Number> getInstance()

Gets the SizeConverter instance.

Returns:StyleConverter<ParsedValue<?, Size>, Number>

the SizeConverter 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 SizeConverter.Holder

extends Object
Class Inheritance

Field Summary

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

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

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

Constructor Detail

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

public final Class SizeConverter.SequenceConverter

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

Converter to convert a sequence of sizes to an array of Number.
Since
9

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Number[]
convert(ParsedValue<ParsedValue<V, T>[], Number[]>
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 SizeConverter.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 Number[] convert(ParsedValue<ParsedValue<V, T>[], Number[]> 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>[], Number[]>

The ParsedValue to convert

font:Font

The Font to use when converting a relative value.

Returns:Number[]

the converted target property type

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

Gets the SequenceConverter instance.

Returns:SizeConverter.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