modules/graphics/src/main/java/javafx/css/converter/ShapeConverter.java

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

*** 21,45 **** * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ ! package com.sun.javafx.css.converters; - import com.sun.javafx.css.StyleConverterImpl; import javafx.css.ParsedValue; import javafx.css.StyleConverter; import javafx.scene.shape.SVGPath; import javafx.scene.shape.Shape; import javafx.scene.text.Font; import java.util.Map; /** * Converts an SVG shape string into a Shape object. */ ! public class ShapeConverter extends StyleConverterImpl<String, Shape> { private static final ShapeConverter INSTANCE = new ShapeConverter(); public static StyleConverter<String, Shape> getInstance() { return INSTANCE; } @Override public Shape convert(ParsedValue<String, Shape> value, Font font) { --- 21,46 ---- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ ! package javafx.css.converter; import javafx.css.ParsedValue; import javafx.css.StyleConverter; import javafx.scene.shape.SVGPath; import javafx.scene.shape.Shape; import javafx.scene.text.Font; import java.util.Map; /** * Converts an SVG shape string into a Shape object. + * + * @since 9 */ ! public class ShapeConverter extends StyleConverter<String, Shape> { private static final ShapeConverter INSTANCE = new ShapeConverter(); public static StyleConverter<String, Shape> getInstance() { return INSTANCE; } @Override public Shape convert(ParsedValue<String, Shape> value, Font font) {