src/share/classes/sun/font/FontLineMetrics.java
Print this page
*** 48,115 ****
this.numchars = numchars;
this.cm = cm;
this.frc = frc;
}
! public final int getNumChars() {
return numchars;
}
! public final float getAscent() {
return cm.ascent;
}
! public final float getDescent() {
return cm.descent;
}
! public final float getLeading() {
return cm.leading;
}
! public final float getHeight() {
return cm.height;
}
! public final int getBaselineIndex() {
return cm.baselineIndex;
}
! public final float[] getBaselineOffsets() {
return cm.baselineOffsets.clone();
}
! public final float getStrikethroughOffset() {
return cm.strikethroughOffset;
}
! public final float getStrikethroughThickness() {
return cm.strikethroughThickness;
}
! public final float getUnderlineOffset() {
return cm.underlineOffset;
}
! public final float getUnderlineThickness() {
return cm.underlineThickness;
}
! public final int hashCode() {
return cm.hashCode();
}
! public final boolean equals(Object rhs) {
try {
return cm.equals(((FontLineMetrics)rhs).cm);
}
catch (ClassCastException e) {
return false;
}
}
! public final Object clone() {
// frc, cm do not need deep clone
try {
return super.clone();
}
catch (CloneNotSupportedException e) {
--- 48,115 ----
this.numchars = numchars;
this.cm = cm;
this.frc = frc;
}
! public int getNumChars() {
return numchars;
}
! public float getAscent() {
return cm.ascent;
}
! public float getDescent() {
return cm.descent;
}
! public float getLeading() {
return cm.leading;
}
! public float getHeight() {
return cm.height;
}
! public int getBaselineIndex() {
return cm.baselineIndex;
}
! public float[] getBaselineOffsets() {
return cm.baselineOffsets.clone();
}
! public float getStrikethroughOffset() {
return cm.strikethroughOffset;
}
! public float getStrikethroughThickness() {
return cm.strikethroughThickness;
}
! public float getUnderlineOffset() {
return cm.underlineOffset;
}
! public float getUnderlineThickness() {
return cm.underlineThickness;
}
! public int hashCode() {
return cm.hashCode();
}
! public boolean equals(Object rhs) {
try {
return cm.equals(((FontLineMetrics)rhs).cm);
}
catch (ClassCastException e) {
return false;
}
}
! public Object clone() {
// frc, cm do not need deep clone
try {
return super.clone();
}
catch (CloneNotSupportedException e) {