Uses of Class
javafx.css.StyleConverter
Package
Description
Provides API for making properties styleable via CSS and for supporting
pseudo-class state.
Provides various
StyleConverter
classes
that convert CSS parsed values.-
Uses of StyleConverter in javafx.css
Modifier and TypeFieldDescriptionprotected final StyleConverter
<V, T> ParsedValue.converter
TheStyleConverter
which converts the parsed value to the type of theStyleableProperty
.Modifier and TypeMethodDescriptionstatic StyleConverter
<String, Boolean> StyleConverter.getBooleanConverter()
Return aStyleConverter
that converts "true" or "false" toBoolean
.static StyleConverter
<String, Color> StyleConverter.getColorConverter()
Return aStyleConverter
that converts a String representation of a web color to aColor
.final StyleConverter
<?, V> CssMetaData.getConverter()
Gets the CSS converter that handles conversion from a CSS value to a Java Object.final StyleConverter
<V, T> ParsedValue.getConverter()
AStyleConverter
converts the parsed value to the type of theStyleableProperty
.static StyleConverter
<?, Duration> StyleConverter.getDurationConverter()
Return aStyleConverter
that converts a String representation of a duration to aDuration
.static StyleConverter
<ParsedValue[], Effect> StyleConverter.getEffectConverter()
Return aStyleConverter
that converts a parsed representation of anEffect
to anEffect
static <E extends Enum<E>>
StyleConverter<String, E> StyleConverter.getEnumConverter
(Class<E> enumClass) Return aStyleConverter
that converts a String representation of anEnum
to anEnum
.static StyleConverter
<ParsedValue[], Font> StyleConverter.getFontConverter()
Return aStyleConverter
that converts a parsed representation of aFont
to anFont
.static StyleConverter
<ParsedValue[], Insets> StyleConverter.getInsetsConverter()
Return aStyleConverter
that converts a [<length> | <percentage>]{1,4} to anInsets
.static StyleConverter
<ParsedValue<?, Paint>, Paint> StyleConverter.getPaintConverter()
Return aStyleConverter
that converts a parsed representation of aPaint
to aPaint
.static StyleConverter
<?, Number> StyleConverter.getSizeConverter()
CSS length and number values are parsed into a Size object that is converted to a Number before the value is applied.static StyleConverter
<String, String> StyleConverter.getStringConverter()
A converter for quoted strings which may have embedded unicode characters.static StyleConverter
<ParsedValue[], String> StyleConverter.getUrlConverter()
A converter for URL strings.static StyleConverter
<?, ?> StyleConverter.readBinary
(DataInputStream is, String[] strings) Read binary data stream.ModifierConstructorDescriptionprotected
CssMetaData
(String property, StyleConverter<?, V> converter) Construct a CssMetaData with the given parameters, initialValue is null, inherit is set to false, and no sub-properties.protected
CssMetaData
(String property, StyleConverter<?, V> converter, V initialValue) Construct a CssMetaData with the given parameters, inherit set to false and no sub-properties.protected
CssMetaData
(String property, StyleConverter<?, V> converter, V initialValue, boolean inherits) Construct a CssMetaData with the given parameters and no sub-properties.protected
CssMetaData
(String property, StyleConverter<?, V> converter, V initialValue, boolean inherits, List<CssMetaData<? extends Styleable, ?>> subProperties) Construct a CssMetaData with the given parameters and no sub-properties.protected
ParsedValue
(V value, StyleConverter<V, T> converter) Create an instance of ParsedValue where the value type V is converted to the target type T using the given converter. -
Uses of StyleConverter in javafx.css.converter
Modifier and TypeClassDescriptionfinal class
Converter to convert aString
to aBoolean
.final class
Converter to convert aString
to aColor
.final class
Converter to convert aString
to aCursor
.final class
Converter to convert a combination of color and brightness values to a derivedColor
.final class
Converter to combine twoSize
values.final class
Converter to Convert aSize
toDuration
.class
Converter to convert a string representation of anEffect
to anEffect
.static final class
Converter to convert aDropShadow
effect.static final class
Converter to convert anInnerShadow
effect.final class
EnumConverter<E extends Enum<E>>
Converter to convert a string representation of anEnum
to anEnum
.final class
Converter to convert a parsed representation of aFont
to aFont
.static final class
Converter to convert a parsed font size value to aNumber
object.static final class
Converter to convert aString
value to aFontPosture
object.static final class
Converter to convert aString
value to aFontWeight
object.final class
Converter to convert a parsed value array of 1 to 4 size components to anInsets
.static final class
Converter to convert an array of parsed values, each of which is an array of 1 to 4 size components, to an array ofInsets
objects.final class
Converter to convert a parsed representation of color ladder values to aColor
.final class
Converter to convert a parsed representation of aPaint
to aPaint
.static final class
Converter to convert image pattern parsed values to aPaint
object.static final class
Converter to convert linear gradient parsed values to aPaint
object.static final class
Converter to convert radial gradient parsed values to aPaint
object.static final class
Converter to convert repeating image pattern parsed values to aPaint
object.static final class
Converter to convert a sequence of parsed values to an array ofPaint
objects.class
Converter to convert a SVG shape string into aShape
object.final class
Converter to convert aSize
to aNumber
.static final class
Converter to convert a sequence of sizes to an array ofNumber
.final class
Converter to convert aStop
from aSize
and aColor
.final class
Converter for quoted strings which may have embedded unicode characters.static final class
Converter to convert a sequence ofString
s to an array ofString
s.final class
Converter to convert a parsed value representing URL to a URL string that is resolved relative to the location of the stylesheet.static final class
Converter to convert a sequence of URLs to an array ofString
s.Modifier and TypeMethodDescriptionstatic StyleConverter
<String, Boolean> BooleanConverter.getInstance()
Get theBooleanConverter
instance.static StyleConverter
<String, Color> ColorConverter.getInstance()
Gets theColorConverter
instance.static StyleConverter
<String, Cursor> CursorConverter.getInstance()
Gets theCursorConverter
instance.static StyleConverter
<ParsedValue<?, Size>, Duration> DurationConverter.getInstance()
Gets theDurationConverter
instance.static StyleConverter
<ParsedValue[], Effect> EffectConverter.getInstance()
Gets theEffectConverter
instance.static StyleConverter
<?, ?> EnumConverter.getInstance
(String ename) Gets anEnumConverter
instance for a given enum name.static StyleConverter
<ParsedValue[], Font> FontConverter.getInstance()
Gets theFontConverter
instance.static StyleConverter
<ParsedValue[], Insets> InsetsConverter.getInstance()
Gets theInsetsConverter
instance.static StyleConverter
<ParsedValue<?, Paint>, Paint> PaintConverter.getInstance()
Gets thePaintConverter
instance.static StyleConverter
<String, Shape> ShapeConverter.getInstance()
Gets theShapeConverter
instance.static StyleConverter
<ParsedValue<?, Size>, Number> SizeConverter.getInstance()
Gets theSizeConverter
instance.static StyleConverter
<String, String> StringConverter.getInstance()
Get theStringConverter
instance.static StyleConverter
<ParsedValue[], String> URLConverter.getInstance()
Gets theURLConverter
instance.static StyleConverter
<?, ?> EnumConverter.readBinary
(DataInputStream is, String[] strings) Reads binaryStyleConverter
data from a givenDataInputStream
.