public class SerializableShape extends java.lang.Object implements SerializationWrapper<java.awt.Shape>
Shape
(e.g. Path2D
).Constructor and Description |
---|
SerializableShape(java.awt.Shape shape)
Initializes a new wrapper with a
Shape instance. |
Modifier and Type | Method and Description |
---|---|
java.awt.Shape |
unwrap()
Creates a new instance of the wrapped class using the data from the
wrapper.
|
public SerializableShape(java.awt.Shape shape)
Shape
instance.shape
- Wrapped object.public java.awt.Shape unwrap()
unwrap
in interface SerializationWrapper<java.awt.Shape>