modules/graphics/src/main/java/javafx/scene/layout/BackgroundConverter.java

Print this page
rev 9240 : 8076423: JEP 253: Prepare JavaFX UI Controls & CSS APIs for Modularization

*** 23,48 **** * questions. */ package javafx.scene.layout; - import com.sun.javafx.css.StyleConverterImpl; import com.sun.javafx.css.StyleManager; import com.sun.javafx.scene.layout.region.RepeatStruct; import java.util.Map; import javafx.css.CssMetaData; import javafx.css.ParsedValue; import javafx.css.StyleConverter; import javafx.css.Styleable; import javafx.geometry.Insets; import javafx.scene.image.Image; import javafx.scene.paint.Paint; /** * Converts the CSS for -fx-background items into a Background. */ ! class BackgroundConverter extends StyleConverterImpl<ParsedValue[], Background> { static final StyleConverter<ParsedValue[], Background> INSTANCE = new BackgroundConverter(); @Override public Background convert(Map<CssMetaData<? extends Styleable, ?>,Object> convertedValues) { final Paint[] fills = (Paint[]) convertedValues.get(Background.BACKGROUND_COLOR); --- 23,48 ---- * questions. */ package javafx.scene.layout; import com.sun.javafx.css.StyleManager; import com.sun.javafx.scene.layout.region.RepeatStruct; import java.util.Map; import javafx.css.CssMetaData; import javafx.css.ParsedValue; import javafx.css.StyleConverter; import javafx.css.Styleable; + import javafx.css.StyleConverter; import javafx.geometry.Insets; import javafx.scene.image.Image; import javafx.scene.paint.Paint; /** * Converts the CSS for -fx-background items into a Background. */ ! class BackgroundConverter extends StyleConverter<ParsedValue[], Background> { static final StyleConverter<ParsedValue[], Background> INSTANCE = new BackgroundConverter(); @Override public Background convert(Map<CssMetaData<? extends Styleable, ?>,Object> convertedValues) { final Paint[] fills = (Paint[]) convertedValues.get(Background.BACKGROUND_COLOR);