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

Class SerializableShape

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


    public class SerializableShape
    extends java.lang.Object
    implements SerializationWrapper<java.awt.Shape>
    A wrapper for creating serializable objects from instances of Shape (e.g. Path2D).
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      SerializableShape(java.awt.Shape shape)
      Initializes a new wrapper with a Shape instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.awt.Shape unwrap()
      Creates a new 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

      • SerializableShape

        public SerializableShape(java.awt.Shape shape)
        Initializes a new wrapper with a Shape instance.
        Parameters:
        shape - Wrapped object.
    • Method Detail

      • unwrap

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

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.