Imported GNU Classpath 0.19 + gcj-import-20051115.

* sources.am: Regenerated.
       * Makefile.in: Likewise.
       * scripts/makemake.tcl: Use glob -nocomplain.

From-SVN: r107049
This commit is contained in:
Mark Wielaard 2005-11-15 23:20:01 +00:00
parent 02e549bfaa
commit 8f523f3a10
1241 changed files with 97711 additions and 25284 deletions

View file

@ -362,6 +362,18 @@ public abstract class FontMetrics implements java.io.Serializable
rc = gRC;
return font.getLineMetrics(chars, begin, limit, rc);
}
/**
* Returns the bounds of the largest character in a Graphics context.
* @param context the Graphics context object.
* @return a <code>Rectangle2D</code> representing the bounds
*/
public Rectangle2D getMaxCharBounds(Graphics context)
{
if( context instanceof Graphics2D )
return font.getMaxCharBounds(((Graphics2D)context).getFontRenderContext());
return font.getMaxCharBounds( gRC );
}
/**
* Returns a {@link LineMetrics} object constructed with the
@ -424,4 +436,13 @@ public abstract class FontMetrics implements java.io.Serializable
return gRC;
}
/**
* Returns if the font has uniform line metrics.
* @see Font#hasUniformLineMetrics()
*/
public boolean hasUniformLineMetrics()
{
return font.hasUniformLineMetrics();
}
}