Methods Summary |
---|
public boolean | equals(java.lang.Object obj)Compares the specified Object with current FontRenderContext object.
if (obj == this) {
return true;
}
if (obj != null) {
try {
return equals((FontRenderContext) obj);
} catch (ClassCastException e) {
return false;
}
}
return false;
|
public boolean | equals(java.awt.font.FontRenderContext frc)Compares the specified FontRenderContext object with current
FontRenderContext.
if (this == frc){
return true;
}
if (frc == null){
return false;
}
if (!frc.getTransform().equals(this.getTransform()) &&
!frc.isAntiAliased() == this.fAntiAliased &&
!frc.usesFractionalMetrics() == this.fFractionalMetrics){
return false;
}
return true;
|
public java.awt.geom.AffineTransform | getTransform()Gets the transform which is used for scaling typographical points to
pixels in this FontRenderContext.
if (transform != null){
return new AffineTransform(transform);
}
return new AffineTransform();
|
public int | hashCode()Returns hash code of the FontRenderContext object.
return this.getTransform().hashCode() ^
new Boolean(this.fFractionalMetrics).hashCode() ^
new Boolean(this.fAntiAliased).hashCode();
|
public boolean | isAntiAliased()Returns true if anti-aliasing is used in this FontRenderContext.
return this.fAntiAliased;
|
public boolean | usesFractionalMetrics()Returns true if the text fractional metrics are used in this
FontRenderContext.
return this.fFractionalMetrics;
|