APIdia Launch Partner
Top Description Inners Constructors Methods
javafx.css.converter

public final Class ColorConverter

extends StyleConverter<String, Color>
Class Inheritance
Imports
javafx.css.ParsedValue, .StyleConverter, javafx.scene.paint.Color, javafx.scene.text.Font

Converter to convert a String to a 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<String, Color> value, Font font)

Overrides javafx.css.StyleConverter.convert.

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

public static StyleConverter<String, Color>

Returns:

the ColorConverter instance
getInstance
()

Gets the ColorConverter instance.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from javafx.css.StyleConverter:
cacheValueclearCacheconvertgetBooleanConvertergetCachedValuegetColorConvertergetDurationConvertergetEffectConvertergetEnumConvertergetFontConvertergetInsetsConvertergetPaintConvertergetSizeConvertergetStringConvertergetUrlConverterreadBinarywriteBinary

Constructor Detail

ColorConverterback to summary
private ColorConverter()

Method Detail

convertback to summary
public Color convert(ParsedValue<String, 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.

Annotations
@Override
getInstanceback to summary
public static StyleConverter<String, Color> getInstance()

Gets the ColorConverter instance.

Returns:StyleConverter<String, Color>

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

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv static final ColorConverter

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

COLOR_INSTANCEback to summary
pack-priv static final ColorConverter COLOR_INSTANCE

Constructor Detail

Holderback to summary
private Holder()