APIdia Launch Partner
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
public static class
DurationConverter.SequenceConverter

Converts a sequence of parsed values to an array of Duration instances.

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

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.

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
pack-priv static final DurationConverter.SequenceConverter

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
SEQUENCE_INSTANCEback to summary
pack-priv static final DurationConverter.SequenceConverter SEQUENCE_INSTANCE

Constructor Detail

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

public final Class DurationConverter.SequenceConverter

extends StyleConverter<ParsedValue<ParsedValue<?, Size>, Duration>[], Duration[]>
Class Inheritance

Converts a sequence of parsed values to an array of Duration instances.
Since
23

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Duration[]
convert(ParsedValue<ParsedValue<ParsedValue<?, Size>, Duration>[], Duration[]> value, Font font)

Overrides javafx.css.StyleConverter.convert.

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

public static DurationConverter.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 Duration[] convert(ParsedValue<ParsedValue<ParsedValue<?, Size>, Duration>[], 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.

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

Gets the SequenceConverter instance.

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

Annotations
@Override