Top Description Inners Constructors Methods
javafx.css.converter

public final Class CursorConverter

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

Converter to convert a String to a Cursor.
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 Cursor
convert(ParsedValue<String, Cursor>
The ParsedValue to convert
value
,
Font
The Font to use when converting a relative value.
not_used
)

Overrides javafx.css.StyleConverter.convert.

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

public static StyleConverter<String, Cursor>

Returns:

the CursorConverter instance
getInstance
()

Gets the CursorConverter instance.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from javafx.css.StyleConverter:
cacheValueclearCacheconvertgetBooleanConvertergetCachedValuegetColorConvertergetDurationConvertergetEffectConvertergetEnumConvertergetFontConvertergetInsetsConvertergetPaintConvertergetSizeConvertergetStringConvertergetUrlConverterreadBinarywriteBinary

Constructor Detail

CursorConverterback to summary
private CursorConverter()

Method Detail

convertback to summary
public Cursor convert(ParsedValue<String, Cursor> value, Font not_used)

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<String, Cursor>

The ParsedValue to convert

not_used:Font

The Font to use when converting a relative value.

Returns:Cursor

the converted target property type

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

Gets the CursorConverter instance.

Returns:StyleConverter<String, Cursor>

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

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv static final CursorConverter

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
pack-priv static final CursorConverter INSTANCE

Constructor Detail

Holderback to summary
private Holder()