Class JavaGeomConverter


  • public abstract class JavaGeomConverter
    extends java.lang.Object
    • Constructor Detail

      • JavaGeomConverter

        public JavaGeomConverter()
    • Method Detail

      • registerDefault

        static <T> void registerDefault​(DslJson<T> json)
      • serializeLocationNullable

        public static void serializeLocationNullable​(@Nullable
                                                     java.awt.geom.Point2D value,
                                                     JsonWriter sw)
      • serializeLocation

        public static void serializeLocation​(java.awt.geom.Point2D value,
                                             JsonWriter sw)
      • deserializeLocation

        public static java.awt.geom.Point2D.Double deserializeLocation​(JsonReader reader)
                                                                throws java.io.IOException
        Throws:
        java.io.IOException
      • deserializeLocationCollection

        public static java.util.ArrayList<java.awt.geom.Point2D> deserializeLocationCollection​(JsonReader reader)
                                                                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • deserializeLocationCollection

        public static void deserializeLocationCollection​(JsonReader reader,
                                                         java.util.Collection<java.awt.geom.Point2D> res)
                                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • deserializeLocationNullableCollection

        public static java.util.ArrayList<java.awt.geom.Point2D> deserializeLocationNullableCollection​(JsonReader reader)
                                                                                                throws java.io.IOException
        Throws:
        java.io.IOException
      • deserializeLocationNullableCollection

        public static void deserializeLocationNullableCollection​(JsonReader reader,
                                                                 java.util.Collection<java.awt.geom.Point2D> res)
                                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • serializePointNullable

        public static void serializePointNullable​(@Nullable
                                                  java.awt.Point value,
                                                  JsonWriter sw)
      • serializePoint

        public static void serializePoint​(java.awt.Point value,
                                          JsonWriter sw)
      • deserializePoint

        public static java.awt.Point deserializePoint​(JsonReader reader)
                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • deserializePointCollection

        public static java.util.ArrayList<java.awt.Point> deserializePointCollection​(JsonReader reader)
                                                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • deserializePointCollection

        public static void deserializePointCollection​(JsonReader reader,
                                                      java.util.Collection<java.awt.Point> res)
                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • deserializePointNullableCollection

        public static java.util.ArrayList<java.awt.Point> deserializePointNullableCollection​(JsonReader reader)
                                                                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • deserializePointNullableCollection

        public static void deserializePointNullableCollection​(JsonReader reader,
                                                              java.util.Collection<java.awt.Point> res)
                                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • serializeRectangleNullable

        public static void serializeRectangleNullable​(@Nullable
                                                      java.awt.geom.Rectangle2D value,
                                                      JsonWriter sw)
      • serializeRectangle

        public static void serializeRectangle​(java.awt.geom.Rectangle2D value,
                                              JsonWriter sw)
      • deserializeRectangle

        public static java.awt.geom.Rectangle2D.Double deserializeRectangle​(JsonReader reader)
                                                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • deserializeRectangleCollection

        public static java.util.ArrayList<java.awt.geom.Rectangle2D> deserializeRectangleCollection​(JsonReader reader)
                                                                                             throws java.io.IOException
        Throws:
        java.io.IOException
      • deserializeRectangleCollection

        public static void deserializeRectangleCollection​(JsonReader reader,
                                                          java.util.Collection<java.awt.geom.Rectangle2D> res)
                                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • deserializeRectangleNullableCollection

        public static java.util.ArrayList<java.awt.geom.Rectangle2D> deserializeRectangleNullableCollection​(JsonReader reader)
                                                                                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • deserializeRectangleNullableCollection

        public static void deserializeRectangleNullableCollection​(JsonReader reader,
                                                                  java.util.Collection<java.awt.geom.Rectangle2D> res)
                                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • deserializeImage

        public static java.awt.image.BufferedImage deserializeImage​(JsonReader reader)
                                                             throws java.io.IOException
        Throws:
        java.io.IOException
      • deserializeImageCollection

        public static java.util.ArrayList<java.awt.image.BufferedImage> deserializeImageCollection​(JsonReader reader)
                                                                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • deserializeImageCollection

        public static void deserializeImageCollection​(JsonReader reader,
                                                      java.util.Collection<java.awt.image.BufferedImage> res)
                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • deserializeImageNullableCollection

        public static java.util.ArrayList<java.awt.image.BufferedImage> deserializeImageNullableCollection​(JsonReader reader)
                                                                                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • deserializeImageNullableCollection

        public static void deserializeImageNullableCollection​(JsonReader reader,
                                                              java.util.Collection<java.awt.image.BufferedImage> res)
                                                       throws java.io.IOException
        Throws:
        java.io.IOException