Top Description Inners Constructors Methods
javafx.css.converter

public final Class DurationConverter

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

Converter to Convert a Size to Duration.
Since
9

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Returns:

the DurationConverter instance
getInstance
()

Gets the DurationConverter instance.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from javafx.css.StyleConverter:
cacheValueclearCacheconvertgetBooleanConvertergetCachedValuegetColorConvertergetDurationConvertergetEffectConvertergetEnumConvertergetFontConvertergetInsetsConvertergetPaintConvertergetSizeConvertergetStringConvertergetUrlConverterreadBinarywriteBinary

Constructor Detail

DurationConverterback to summary
private DurationConverter()

Method Detail

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

The ParsedValue to convert

font:Font

The Font to use when converting a relative value.

Returns:Duration

the converted target property type

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

Gets the DurationConverter instance.

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

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

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv static final DurationConverter

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
pack-priv static final DurationConverter INSTANCE

Constructor Detail

Holderback to summary
private Holder()