Top Description Inners Constructors Methods
javafx.css.converter

public final Class PaintConverter

extends StyleConverter<ParsedValue<?, Paint>, Paint>
Class Inheritance
Imports
javafx.css.Size, .SizeUnits, .ParsedValue, .StyleConverter, com.sun.javafx.css.StyleManager, javafx.scene.image.Image, javafx.scene.paint.CycleMethod, .ImagePattern, .LinearGradient, .Paint, .RadialGradient, .Stop, javafx.scene.text.Font

Converter to convert a parsed representation of a Paint to a Paint.
Since
9

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
public static class
PaintConverter.ImagePatternConverter

Converter to convert image pattern parsed values to a Paint object.

public static class
PaintConverter.LinearGradientConverter

Converter to convert linear gradient parsed values to a Paint object.

public static class
PaintConverter.RadialGradientConverter

Converter to convert radial gradient parsed values to a Paint object.

public static class
PaintConverter.RepeatingImagePatternConverter

Converter to convert repeating image pattern parsed values to a Paint object.

public static class
PaintConverter.SequenceConverter

Converter to convert a sequence of parsed values to an array of Paint objects.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Paint
convert(ParsedValue<ParsedValue<?, Paint>, Paint> value, Font font)

Overrides javafx.css.StyleConverter.convert.

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

public static StyleConverter<ParsedValue<?, Paint>, Paint>

Returns:

the PaintConverter instance
getInstance
()

Gets the PaintConverter instance.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from javafx.css.StyleConverter:
cacheValueclearCacheconvertgetBooleanConvertergetCachedValuegetColorConvertergetDurationConvertergetEffectConvertergetEnumConvertergetFontConvertergetInsetsConvertergetPaintConvertergetSizeConvertergetStringConvertergetUrlConverterreadBinarywriteBinary

Constructor Detail

PaintConverterback to summary
private PaintConverter()

Method Detail

convertback to summary
public Paint convert(ParsedValue<ParsedValue<?, Paint>, Paint> 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<?, Paint>, Paint> getInstance()

Gets the PaintConverter instance.

Returns:StyleConverter<ParsedValue<?, Paint>, Paint>

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

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv static final PaintConverter.ImagePatternConverter
pack-priv static final PaintConverter
pack-priv static final PaintConverter.LinearGradientConverter
pack-priv static final PaintConverter.RadialGradientConverter
pack-priv static final PaintConverter.RepeatingImagePatternConverter
pack-priv static final PaintConverter.SequenceConverter

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

IMAGE_PATTERN_INSTANCEback to summary
pack-priv static final PaintConverter.ImagePatternConverter IMAGE_PATTERN_INSTANCE
INSTANCEback to summary
pack-priv static final PaintConverter INSTANCE
LINEAR_GRADIENT_INSTANCEback to summary
pack-priv static final PaintConverter.LinearGradientConverter LINEAR_GRADIENT_INSTANCE
RADIAL_GRADIENT_INSTANCEback to summary
pack-priv static final PaintConverter.RadialGradientConverter RADIAL_GRADIENT_INSTANCE
REPEATING_IMAGE_PATTERN_INSTANCEback to summary
pack-priv static final PaintConverter.RepeatingImagePatternConverter REPEATING_IMAGE_PATTERN_INSTANCE
SEQUENCE_INSTANCEback to summary
pack-priv static final PaintConverter.SequenceConverter SEQUENCE_INSTANCE

Constructor Detail

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

public final Class PaintConverter.ImagePatternConverter

extends StyleConverter<ParsedValue<V, T>[], Paint>
Class Inheritance

Converter to convert image pattern parsed values to a Paint object.
Since
9

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Paint
convert(ParsedValue<ParsedValue<V, T>[], Paint> value, Font font)

Overrides javafx.css.StyleConverter.convert.

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

public static PaintConverter.ImagePatternConverter

Returns:

the ImagePatternConverter instance
getInstance
()

Gets the ImagePatternConverter instance.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from javafx.css.StyleConverter:
cacheValueclearCacheconvertgetBooleanConvertergetCachedValuegetColorConvertergetDurationConvertergetEffectConvertergetEnumConvertergetFontConvertergetInsetsConvertergetPaintConvertergetSizeConvertergetStringConvertergetUrlConverterreadBinarywriteBinary

Constructor Detail

ImagePatternConverterback to summary
private ImagePatternConverter()

Method Detail

convertback to summary
public Paint convert(ParsedValue<ParsedValue<V, T>[], Paint> 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 PaintConverter.ImagePatternConverter getInstance()

Gets the ImagePatternConverter instance.

Returns:PaintConverter.ImagePatternConverter

the ImagePatternConverter 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

public final Class PaintConverter.LinearGradientConverter

extends StyleConverter<ParsedValue<V, T>[], Paint>
Class Inheritance

Converter to convert linear gradient parsed values to a Paint object.
Since
9

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Paint
convert(ParsedValue<ParsedValue<V, T>[], Paint> value, Font font)

Overrides javafx.css.StyleConverter.convert.

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

public static PaintConverter.LinearGradientConverter

Returns:

the LinearGradientConverter instance
getInstance
()

Gets the LinearGradientConverter instance.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from javafx.css.StyleConverter:
cacheValueclearCacheconvertgetBooleanConvertergetCachedValuegetColorConvertergetDurationConvertergetEffectConvertergetEnumConvertergetFontConvertergetInsetsConvertergetPaintConvertergetSizeConvertergetStringConvertergetUrlConverterreadBinarywriteBinary

Constructor Detail

LinearGradientConverterback to summary
private LinearGradientConverter()

Method Detail

convertback to summary
public Paint convert(ParsedValue<ParsedValue<V, T>[], Paint> 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 PaintConverter.LinearGradientConverter getInstance()

Gets the LinearGradientConverter instance.

Returns:PaintConverter.LinearGradientConverter

the LinearGradientConverter 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

public final Class PaintConverter.RadialGradientConverter

extends StyleConverter<ParsedValue<V, T>[], Paint>
Class Inheritance

Converter to convert radial gradient parsed values to a Paint object.
Since
9

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Paint
convert(ParsedValue<ParsedValue<V, T>[], Paint> value, Font font)

Overrides javafx.css.StyleConverter.convert.

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

public static PaintConverter.RadialGradientConverter

Returns:

the RadialGradientConverter instance
getInstance
()

Gets the RadialGradientConverter instance.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from javafx.css.StyleConverter:
cacheValueclearCacheconvertgetBooleanConvertergetCachedValuegetColorConvertergetDurationConvertergetEffectConvertergetEnumConvertergetFontConvertergetInsetsConvertergetPaintConvertergetSizeConvertergetStringConvertergetUrlConverterreadBinarywriteBinary

Constructor Detail

RadialGradientConverterback to summary
private RadialGradientConverter()

Method Detail

convertback to summary
public Paint convert(ParsedValue<ParsedValue<V, T>[], Paint> 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 PaintConverter.RadialGradientConverter getInstance()

Gets the RadialGradientConverter instance.

Returns:PaintConverter.RadialGradientConverter

the RadialGradientConverter 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

public final Class PaintConverter.RepeatingImagePatternConverter

extends StyleConverter<ParsedValue<V, T>[], Paint>
Class Inheritance

Converter to convert repeating image pattern parsed values to a Paint object.
Since
9

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Paint
convert(ParsedValue<ParsedValue<V, T>[], Paint> value, Font font)

Overrides javafx.css.StyleConverter.convert.

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

public static PaintConverter.RepeatingImagePatternConverter

Returns:

the RepeatingImagePatternConverter instance
getInstance
()

Gets the RepeatingImagePatternConverter instance.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from javafx.css.StyleConverter:
cacheValueclearCacheconvertgetBooleanConvertergetCachedValuegetColorConvertergetDurationConvertergetEffectConvertergetEnumConvertergetFontConvertergetInsetsConvertergetPaintConvertergetSizeConvertergetStringConvertergetUrlConverterreadBinarywriteBinary

Constructor Detail

RepeatingImagePatternConverterback to summary
private RepeatingImagePatternConverter()

Method Detail

convertback to summary
public Paint convert(ParsedValue<ParsedValue<V, T>[], Paint> 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 PaintConverter.RepeatingImagePatternConverter getInstance()

Gets the RepeatingImagePatternConverter instance.

Returns:PaintConverter.RepeatingImagePatternConverter

the RepeatingImagePatternConverter 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

public final Class PaintConverter.SequenceConverter

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

Converter to convert a sequence of parsed values to an array of Paint objects.
Since
9

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Overrides javafx.css.StyleConverter.convert.

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

public static PaintConverter.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 Paint[] convert(ParsedValue<ParsedValue<?, Paint>[], Paint[]> 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 PaintConverter.SequenceConverter getInstance()

Gets the SequenceConverter instance.

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