Uses of Class
javafx.css.StyleConverter
| Package | Description |
|---|---|
| javafx.css |
Provides API for making properties styleable via CSS and for supporting
pseudo-class state.
|
| javafx.css.converter |
Provides various
StyleConverter classes
that convert CSS parsed values. |
-
Uses of StyleConverter in javafx.css
Fields in javafx.css declared as StyleConverter Modifier and Type Field Description protected StyleConverter<V,T>ParsedValue. converterTheStyleConverterwhich converts the parsed value to the type of theStyleableProperty.Methods in javafx.css that return StyleConverter Modifier and Type Method Description static StyleConverter<String,Boolean>StyleConverter. getBooleanConverter()Return aStyleConverterthat converts "true" or "false" toBoolean.static StyleConverter<String,Color>StyleConverter. getColorConverter()Return aStyleConverterthat converts a String representation of a web color to aColor.StyleConverter<?,V>CssMetaData. getConverter()StyleConverter<V,T>ParsedValue. getConverter()AStyleConverterconverts the parsed value to the type of theStyleableProperty.static StyleConverter<?,Duration>StyleConverter. getDurationConverter()Return aStyleConverterthat converts a String representation of a duration to aDuration.static StyleConverter<ParsedValue[],Effect>StyleConverter. getEffectConverter()Return aStyleConverterthat converts a parsed representation of anEffectto anEffectstatic <E extends Enum<E>>
StyleConverter<String,E>StyleConverter. getEnumConverter(Class<E> enumClass)Return aStyleConverterthat converts a String representation of anEnumto anEnum.static StyleConverter<ParsedValue[],Font>StyleConverter. getFontConverter()Return aStyleConverterthat converts a parsed representation of aFontto anFont.static StyleConverter<ParsedValue[],Insets>StyleConverter. getInsetsConverter()Return aStyleConverterthat converts a [<length> | <percentage>]{1,4} to anInsets.static StyleConverter<ParsedValue<?,Paint>,Paint>StyleConverter. getPaintConverter()Return aStyleConverterthat converts a parsed representation of aPaintto 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.Constructors in javafx.css with parameters of type StyleConverter Constructor Description 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.CssMetaData(String property, StyleConverter<?,V> converter, V initialValue)Construct a CssMetaData with the given parameters, inherit set to false and no sub-properties.CssMetaData(String property, StyleConverter<?,V> converter, V initialValue, boolean inherits)Construct a CssMetaData with the given parameters and no sub-properties.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.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
Subclasses of StyleConverter in javafx.css.converter Modifier and Type Class Description classBooleanConverterclassColorConverterclassCursorConverterclassDeriveColorConverterDerive a Color from a Color and a brightness valueclassDeriveSizeConverterA type that combines two Size values.classDurationConverterConvert a Size to DurationclassEffectConverterstatic classEffectConverter.DropShadowConverterstatic classEffectConverter.InnerShadowConverterclassEnumConverter<E extends Enum<E>>classFontConverterstatic classFontConverter.FontSizeConverterstatic classFontConverter.FontStyleConverterstatic classFontConverter.FontWeightConverterclassInsetsConverterConverts a parsed value array of 1 to 4 size components to an Insets.static classInsetsConverter.SequenceConverterConverts an array of parsed values, each of which is an array of 1 to 4 size components, to an array of Insets objects.classLadderConverterclassPaintConverterstatic classPaintConverter.ImagePatternConverterstatic classPaintConverter.LinearGradientConverterstatic classPaintConverter.RadialGradientConverterstatic classPaintConverter.RepeatingImagePatternConverterstatic classPaintConverter.SequenceConverterConverts an array of parsed values to an array of Paint objects.classShapeConverterConverts an SVG shape string into a Shape object.classSizeConverterConvert a Size to Numberstatic classSizeConverter.SequenceConverterclassStopConverterconvert a Stop from a Size and a ColorclassStringConverterString type converts embedded unicode charactersstatic classStringConverter.SequenceConverterclassURLConverterConverts a parsed value representing URL to a URL string that is resolved relative to the location of the stylesheet.static classURLConverter.SequenceConverter