/[classpath]/classpath/java/awt/FontMetrics.java
ViewVC logotype

Diff of /classpath/java/awt/FontMetrics.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8.2.6 by gnu_andrew, Sat Sep 10 15:31:43 2005 UTC revision 1.8.2.7 by gnu_andrew, Wed Nov 2 00:43:30 2005 UTC
# Line 362  public abstract class FontMetrics implem Line 362  public abstract class FontMetrics implem
362        rc = gRC;        rc = gRC;
363      return font.getLineMetrics(chars, begin, limit, rc);      return font.getLineMetrics(chars, begin, limit, rc);
364    }    }
365      
366      /**
367       * Returns the bounds of the largest character in a Graphics context.
368       * @param context the Graphics context object.
369       * @return a <code>Rectangle2D</code> representing the bounds
370       */
371      public Rectangle2D getMaxCharBounds(Graphics context)
372      {
373        if( context instanceof Graphics2D )
374          return font.getMaxCharBounds(((Graphics2D)context).getFontRenderContext());
375        return font.getMaxCharBounds( gRC );
376      }
377    
378    /**    /**
379     * Returns a {@link LineMetrics} object constructed with the     * Returns a {@link LineMetrics} object constructed with the
# Line 424  public abstract class FontMetrics implem Line 436  public abstract class FontMetrics implem
436    
437      return gRC;      return gRC;
438    }    }
439    
440      /**
441       * Returns if the font has uniform line metrics.
442       * @see Font#hasUniformLineMetrics()
443       */
444      public boolean hasUniformLineMetrics()
445      {
446        return font.hasUniformLineMetrics();
447      }
448  }  }

Legend:
Removed from v.1.8.2.6  
changed lines
  Added in v.1.8.2.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26