Top Description Inners Constructors Methods
javafx.css.converter

public final Class DeriveColorConverter

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

Converter to convert a combination of color and brightness values to a derived Color.
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 Color
convert(ParsedValue<ParsedValue<V, T>[], Color>
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 DeriveColorConverter

Returns:

the DeriveColorConverter instance
getInstance
()

Gets the DeriveColorConverter instance.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from javafx.css.StyleConverter:
cacheValueclearCacheconvertgetBooleanConvertergetCachedValuegetColorConvertergetDurationConvertergetEffectConvertergetEnumConvertergetFontConvertergetInsetsConvertergetPaintConvertergetSizeConvertergetStringConvertergetUrlConverterreadBinarywriteBinary

Constructor Detail

DeriveColorConverterback to summary
private DeriveColorConverter()

Method Detail

convertback to summary
public Color convert(ParsedValue<ParsedValue<V, T>[], Color> 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>[], Color>

The ParsedValue to convert

font:Font

The Font to use when converting a relative value.

Returns:Color

the converted target property type

Annotations
@Override
getInstanceback to summary
public static DeriveColorConverter getInstance()

Gets the DeriveColorConverter instance.

Returns:DeriveColorConverter

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

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv static final DeriveColorConverter

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
pack-priv static final DeriveColorConverter INSTANCE

Constructor Detail

Holderback to summary
private Holder()