Documentation of 'de.erichseifert.gral.util.SerializablePoint2D' Java class
SerializablePoint2D
de.erichseifert.gral.util

Class SerializablePoint2D

  • All Implemented Interfaces:
    SerializationWrapper<java.awt.geom.Point2D>, java.io.Serializable


    public class SerializablePoint2D
    extends java.lang.Object
    implements SerializationWrapper<java.awt.geom.Point2D>
    A wrapper for creating serializable objects from instances of Point2D.Double and Point2D.Float.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      SerializablePoint2D(java.awt.geom.Point2D point)
      Initializes a new wrapper with a Point2D instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.awt.geom.Point2D unwrap()
      Creates a new point instance of the wrapped class using the data from the wrapper.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SerializablePoint2D

        public SerializablePoint2D(java.awt.geom.Point2D point)
        Initializes a new wrapper with a Point2D instance.
        Parameters:
        point - Wrapped object.
    • Method Detail

      • unwrap

        public java.awt.geom.Point2D unwrap()
        Creates a new point instance of the wrapped class using the data from the wrapper. This is used for deserialization.
        Specified by:
        unwrap in interface SerializationWrapper<java.awt.geom.Point2D>
        Returns:
        A point instance containing the data from the wrapper.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.