Top Description Inners Fields Constructors Methods
com.sun.javafx.css

public Class InterpolatorConverter

extends StyleConverter<Object, Interpolator>
Class Inheritance
Imports
javafx.animation.Interpolator, .Interpolator.StepPosition, javafx.css.ParsedValue, .StyleConverter, javafx.scene.text.Font, java.util.LinkedHashMap, .List, .Map

Converts a parsed value to an Interpolator.

If the value is a ParsedValue, its value represents one of the singleton instances:

  1. linear
  2. ease, ease-in, ease-out, ease-in-out
  3. step-start, step-end

If the value is a ParsedValue array, the first element represents the name of the function (cubic-bezier or steps), and the second element contains a list of arguments.

Nested and Inner Type Summary

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

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

Field Summary

Modifier and TypeField and Description
private static final Map<ParsedValue<?, ?>, Interpolator>
public static final Interpolator
public static final Interpolator
public static final Interpolator
public static final Interpolator

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private <T> List<T>
arguments(ParsedValue<?, ?> value)

public Interpolator
convert(ParsedValue<Object, Interpolator>
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<Object, Interpolator>
Inherited from javafx.css.StyleConverter:
cacheValueclearCacheconvertgetBooleanConvertergetCachedValuegetColorConvertergetDurationConvertergetEffectConvertergetEnumConvertergetFontConvertergetInsetsConvertergetPaintConvertergetSizeConvertergetStringConvertergetUrlConverterreadBinarywriteBinary

Field Detail

CACHEback to summary
private static final Map<ParsedValue<?, ?>, Interpolator> CACHE
CSS_EASEback to summary
public static final Interpolator CSS_EASE
CSS_EASE_INback to summary
public static final Interpolator CSS_EASE_IN
CSS_EASE_IN_OUTback to summary
public static final Interpolator CSS_EASE_IN_OUT
CSS_EASE_OUTback to summary
public static final Interpolator CSS_EASE_OUT

Constructor Detail

InterpolatorConverterback to summary
private InterpolatorConverter()

Method Detail

argumentsback to summary
private <T> List<T> arguments(ParsedValue<?, ?> value)
Annotations
@SuppressWarnings:unchecked
convertback to summary
public Interpolator convert(ParsedValue<Object, Interpolator> 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<Object, Interpolator>

The ParsedValue to convert

font:Font

The Font to use when converting a relative value.

Returns:Interpolator

the converted target property type

Annotations
@Override
getInstanceback to summary
public static StyleConverter<Object, Interpolator> getInstance()
com.sun.javafx.css back to summary

private Class InterpolatorConverter.Holder

extends Object
Class Inheritance

Field Summary

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

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

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

Constructor Detail

Holderback to summary
private Holder()
com.sun.javafx.css back to summary

public final Class InterpolatorConverter.SequenceConverter

extends StyleConverter<ParsedValue<?, Interpolator>[], Interpolator[]>
Class Inheritance

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

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Interpolator[]
convert(ParsedValue<ParsedValue<?, Interpolator>[], Interpolator[]>
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 InterpolatorConverter.SequenceConverter
Inherited from javafx.css.StyleConverter:
cacheValueclearCacheconvertgetBooleanConvertergetCachedValuegetColorConvertergetDurationConvertergetEffectConvertergetEnumConvertergetFontConvertergetInsetsConvertergetPaintConvertergetSizeConvertergetStringConvertergetUrlConverterreadBinarywriteBinary

Constructor Detail

SequenceConverterback to summary
private SequenceConverter()

Method Detail

convertback to summary
public Interpolator[] convert(ParsedValue<ParsedValue<?, Interpolator>[], Interpolator[]> 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<?, Interpolator>[], Interpolator[]>

The ParsedValue to convert

font:Font

The Font to use when converting a relative value.

Returns:Interpolator[]

the converted target property type

Annotations
@Override
@SuppressWarnings:unchecked, rawtypes
getInstanceback to summary
public static InterpolatorConverter.SequenceConverter getInstance()