Wraps the specified transform. The transform is cloned and a
reference to the clone is kept. The original transform is unchanged.
param
transform the specified {@link AffineTransform} to be wrapped
if (transform == null) {
throw new IllegalArgumentException("transform may not be null");
}
if (!transform.isIdentity()) {
this.transform = new AffineTransform(transform);
}
// sigh -- 1.3 expects transform is never null, so we need to always write one out
if (this.transform == null) {
this.transform = new AffineTransform();
}
s.defaultWriteObject();