de.erichseifert.gral.util
Class SerializableShape
- java.lang.Object
-
- de.erichseifert.gral.util.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 ofShape(e.g.Path2D).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description SerializableShape(java.awt.Shape shape)Initializes a new wrapper with aShapeinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.awt.Shapeunwrap()Creates a new instance of the wrapped class using the data from the wrapper.
-
-
-
Constructor Detail
-
SerializableShape
public SerializableShape(java.awt.Shape shape)
Initializes a new wrapper with aShapeinstance.- 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:
unwrapin interfaceSerializationWrapper<java.awt.Shape>- Returns:
- An instance containing the data from the wrapper.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG