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

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

*** 21,35 **** * 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.util.Utils; ! import com.sun.javafx.css.Size; ! import com.sun.javafx.css.StyleConverterImpl; import javafx.css.CssMetaData; import javafx.css.ParsedValue; import javafx.css.StyleConverter; import javafx.css.Styleable; import javafx.scene.text.Font; --- 21,34 ---- * 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 com.sun.javafx.util.Utils; ! import javafx.css.Size; import javafx.css.CssMetaData; import javafx.css.ParsedValue; import javafx.css.StyleConverter; import javafx.css.Styleable; import javafx.scene.text.Font;
*** 38,48 **** import java.util.Locale; import java.util.Map; import java.util.Map.Entry; ! public final class FontConverter extends StyleConverterImpl<ParsedValue[], Font> { // lazy, thread-safe instatiation private static class Holder { static final FontConverter INSTANCE = new FontConverter(); } --- 37,50 ---- import java.util.Locale; import java.util.Map; import java.util.Map.Entry; ! /** ! * @since 9 ! */ ! public final class FontConverter extends StyleConverter<ParsedValue[], Font> { // lazy, thread-safe instatiation private static class Holder { static final FontConverter INSTANCE = new FontConverter(); }
*** 106,116 **** @Override public String toString() { return "FontConverter"; } ! public static final class FontStyleConverter extends StyleConverterImpl<String, FontPosture> { // lazy, thread-safe instatiation private static class Holder { static final FontStyleConverter INSTANCE = new FontStyleConverter(); } --- 108,118 ---- @Override public String toString() { return "FontConverter"; } ! public static final class FontStyleConverter extends StyleConverter<String, FontPosture> { // lazy, thread-safe instatiation private static class Holder { static final FontStyleConverter INSTANCE = new FontStyleConverter(); }
*** 152,162 **** public String toString() { return "FontConverter.StyleConverter"; } } ! public static final class FontWeightConverter extends StyleConverterImpl<String, FontWeight> { // lazy, thread-safe instatiation private static class Holder { static final FontWeightConverter INSTANCE = new FontWeightConverter(); } --- 154,164 ---- public String toString() { return "FontConverter.StyleConverter"; } } ! public static final class FontWeightConverter extends StyleConverter<String, FontWeight> { // lazy, thread-safe instatiation private static class Holder { static final FontWeightConverter INSTANCE = new FontWeightConverter(); }
*** 199,209 **** public String toString() { return "FontConverter.WeightConverter"; } } ! public static final class FontSizeConverter extends StyleConverterImpl<ParsedValue<?, Size>, Number> { // lazy, thread-safe instatiation private static class Holder { static final FontSizeConverter INSTANCE = new FontSizeConverter(); } --- 201,211 ---- public String toString() { return "FontConverter.WeightConverter"; } } ! public static final class FontSizeConverter extends StyleConverter<ParsedValue<?, Size>, Number> { // lazy, thread-safe instatiation private static class Holder { static final FontSizeConverter INSTANCE = new FontSizeConverter(); }