home *** CD-ROM | disk | FTP | other *** search
/ S283 Planetary Science &n…he Search for Life DVD 2 / DVD-ROM.iso / install / jre1_3 / lib / rt.jar / java / awt / Font$FontLineMetrics.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  1.6 KB  |  89 lines

  1. package java.awt;
  2.  
  3. import java.awt.font.LineMetrics;
  4.  
  5. final class Font$FontLineMetrics extends LineMetrics {
  6.    int numchars;
  7.    float ascent;
  8.    float descent;
  9.    float leading;
  10.    float height;
  11.    int baselineIndex;
  12.    float[] baselineOffsets;
  13.    float strikethroughOffset;
  14.    float strikethroughThickness;
  15.    float underlineOffset;
  16.    float underlineThickness;
  17.    // $FF: synthetic field
  18.    private final Font this$0;
  19.  
  20.    private Font$FontLineMetrics(Font var1) {
  21.       this.this$0 = var1;
  22.    }
  23.  
  24.    public final int getNumChars() {
  25.       return this.numchars;
  26.    }
  27.  
  28.    public final float getAscent() {
  29.       return this.ascent;
  30.    }
  31.  
  32.    public final float getDescent() {
  33.       return this.descent;
  34.    }
  35.  
  36.    public final float getLeading() {
  37.       return this.leading;
  38.    }
  39.  
  40.    public final float getHeight() {
  41.       return this.height;
  42.    }
  43.  
  44.    public final int getBaselineIndex() {
  45.       return this.baselineIndex;
  46.    }
  47.  
  48.    public final float[] getBaselineOffsets() {
  49.       return this.baselineOffsets;
  50.    }
  51.  
  52.    public final float getStrikethroughOffset() {
  53.       return this.strikethroughOffset;
  54.    }
  55.  
  56.    public final float getStrikethroughThickness() {
  57.       return this.strikethroughThickness;
  58.    }
  59.  
  60.    public final float getUnderlineOffset() {
  61.       return this.underlineOffset;
  62.    }
  63.  
  64.    public final float getUnderlineThickness() {
  65.       return this.underlineThickness;
  66.    }
  67.  
  68.    public final boolean equals(Object var1) {
  69.       if (var1 != null) {
  70.          if (this == var1) {
  71.             return true;
  72.          }
  73.  
  74.          try {
  75.             Font$FontLineMetrics var2 = (Font$FontLineMetrics)var1;
  76.             return this.ascent == var2.ascent && this.descent == var2.descent && this.leading == var2.leading && this.baselineIndex == var2.baselineIndex && this.baselineOffsets[0] == var2.baselineOffsets[0] && this.baselineOffsets[1] == var2.baselineOffsets[1] && this.baselineOffsets[2] == var2.baselineOffsets[2] && this.strikethroughOffset == var2.strikethroughOffset && this.strikethroughThickness == var2.strikethroughThickness && this.underlineOffset == var2.underlineOffset && this.underlineThickness == var2.underlineThickness;
  77.          } catch (ClassCastException var3) {
  78.          }
  79.       }
  80.  
  81.       return false;
  82.    }
  83.  
  84.    // $FF: synthetic method
  85.    Font$FontLineMetrics(Font var1, Font.1 var2) {
  86.       this(var1);
  87.    }
  88. }
  89.