Methods Summary |
---|
public boolean | equals(java.lang.Object rhs)Returns true if rhs is a TransformAttribute
whose transform is equal to this TransformAttribute 's
transform.
try {
TransformAttribute that = (TransformAttribute)rhs;
if (transform == null) {
return that.transform == null;
}
return transform.equals(that.transform);
}
catch (ClassCastException e) {
}
return false;
|
public java.awt.geom.AffineTransform | getTransform()Returns a copy of the wrapped transform.
AffineTransform at = transform;
return (at == null) ? new AffineTransform() : new AffineTransform(at);
|
public int | hashCode()
return transform == null ? 0 : transform.hashCode();
|
public boolean | isIdentity()Returns true if the wrapped transform is
an identity transform.
return transform == null;
|
private java.lang.Object | readResolve()
if (transform == null || transform.isIdentity()) {
return IDENTITY;
}
return this;
|
private void | writeObject(java.io.ObjectOutputStream s)
// 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();
|