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

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

@@ -21,14 +21,13 @@
  * 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;
+package javafx.css.converter;
 
-import com.sun.javafx.css.Size;
-import com.sun.javafx.css.StyleConverterImpl;
+import javafx.css.Size;
 import javafx.css.ParsedValue;
 import javafx.css.StyleConverter;
 import javafx.geometry.Insets;
 import javafx.scene.text.Font;
 

@@ -36,12 +35,14 @@
  * Convert <size>{1,4} to Insets. The size values are interpreted as
  * top, right, bottom, left.
  * If only top is given, that value is used on all sides.
  * If there is only top and right, then bottom is set to top and left is set to right.
  * If top, right and bottom are given, then left is set to right.
+ *
+ * @since 9
  */
-public final class InsetsConverter extends StyleConverterImpl<ParsedValue[], Insets> {
+public final class InsetsConverter extends StyleConverter<ParsedValue[], Insets> {
 
     // lazy, thread-safe instatiation
     private static class Holder {
         static final InsetsConverter INSTANCE = new InsetsConverter();
         static final SequenceConverter SEQUENCE_INSTANCE = new SequenceConverter();

@@ -71,11 +72,11 @@
     }
 
     /**
      * Convert a <size>{1,4} [,<size>{1,4}]*  an Insets[]
      */
-    public static final class SequenceConverter extends StyleConverterImpl<ParsedValue<ParsedValue[], Insets>[], Insets[]> {
+    public static final class SequenceConverter extends StyleConverter<ParsedValue<ParsedValue[], Insets>[], Insets[]> {
 
         public static SequenceConverter getInstance() {
             return Holder.SEQUENCE_INSTANCE;
         }