< prev index next >
src/java.desktop/share/classes/java/awt/font/TransformAttribute.java
Print this page
@@ -43,19 +43,19 @@
import java.awt.geom.AffineTransform;
import java.io.Serializable;
import java.io.ObjectStreamException;
/**
- * The <code>TransformAttribute</code> class provides an immutable
+ * The {@code TransformAttribute} class provides an immutable
* wrapper for a transform so that it is safe to use as an attribute.
*/
public final class TransformAttribute implements Serializable {
/**
- * The <code>AffineTransform</code> for this
- * <code>TransformAttribute</code>, or <code>null</code>
- * if <code>AffineTransform</code> is the identity transform.
+ * The {@code AffineTransform} for this
+ * {@code TransformAttribute}, or {@code null}
+ * if {@code AffineTransform} is the identity transform.
*/
private AffineTransform transform;
/**
* Wraps the specified transform. The transform is cloned and a
@@ -72,31 +72,31 @@
}
}
/**
* Returns a copy of the wrapped transform.
- * @return a <code>AffineTransform</code> that is a copy of the wrapped
- * transform of this <code>TransformAttribute</code>.
+ * @return a {@code AffineTransform} that is a copy of the wrapped
+ * transform of this {@code TransformAttribute}.
*/
public AffineTransform getTransform() {
AffineTransform at = transform;
return (at == null) ? new AffineTransform() : new AffineTransform(at);
}
/**
- * Returns <code>true</code> if the wrapped transform is
+ * Returns {@code true} if the wrapped transform is
* an identity transform.
- * @return <code>true</code> if the wrapped transform is
- * an identity transform; <code>false</code> otherwise.
+ * @return {@code true} if the wrapped transform is
+ * an identity transform; {@code false} otherwise.
* @since 1.4
*/
public boolean isIdentity() {
return transform == null;
}
/**
- * A <code>TransformAttribute</code> representing the identity transform.
+ * A {@code TransformAttribute} representing the identity transform.
* @since 1.6
*/
public static final TransformAttribute IDENTITY = new TransformAttribute(null);
private void writeObject(java.io.ObjectOutputStream s)
@@ -129,16 +129,16 @@
public int hashCode() {
return transform == null ? 0 : transform.hashCode();
}
/**
- * Returns <code>true</code> if rhs is a <code>TransformAttribute</code>
- * whose transform is equal to this <code>TransformAttribute</code>'s
+ * Returns {@code true} if rhs is a {@code TransformAttribute}
+ * whose transform is equal to this {@code TransformAttribute}'s
* transform.
* @param rhs the object to compare to
- * @return <code>true</code> if the argument is a <code>TransformAttribute</code>
- * whose transform is equal to this <code>TransformAttribute</code>'s
+ * @return {@code true} if the argument is a {@code TransformAttribute}
+ * whose transform is equal to this {@code TransformAttribute}'s
* transform.
* @since 1.6
*/
public boolean equals(Object rhs) {
if (rhs != null) {
< prev index next >