de.erichseifert.gral.util
Class SerializableBasicStroke
- java.lang.Object
-
- de.erichseifert.gral.util.SerializableBasicStroke
-
- All Implemented Interfaces:
- SerializationWrapper<java.awt.BasicStroke>, java.io.Serializable
public class SerializableBasicStroke extends java.lang.Object implements SerializationWrapper<java.awt.BasicStroke>
A wrapper for creating serializable objects from instances ofBasicStroke.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description SerializableBasicStroke(java.awt.BasicStroke stroke)Initializes a new wrapper with aBasicStrokeinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.awt.BasicStrokeunwrap()Creates a new stroke instance of the wrapped class using the data from the wrapper.
-
-
-
Constructor Detail
-
SerializableBasicStroke
public SerializableBasicStroke(java.awt.BasicStroke stroke)
Initializes a new wrapper with aBasicStrokeinstance.- Parameters:
stroke- Wrapped object.
-
-
Method Detail
-
unwrap
public java.awt.BasicStroke unwrap()
Creates a new stroke instance of the wrapped class using the data from the wrapper. This is used for deserialization.- Specified by:
unwrapin interfaceSerializationWrapper<java.awt.BasicStroke>- Returns:
- A stroke instance containing the data from the wrapper.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG