[Patch][gui] SwingUtilities.getFontMetrics() removed
Michael Koch
konqueror@gmx.de
Fri Jan 28 12:27:00 GMT 2005
Hi list,
I commited the attached patch to remove the method
javax.swing.SwingUtilities.getFontMetrics(Font). It's not in SUNs public
API and never used in our own implementation.
Michael
2005-01-28 Michael Koch <konqueror@gmx.de>
* javax/swing/SwingUtilities.java
(getFontMetrics): Removed.
-------------- next part --------------
Index: javax/swing/SwingUtilities.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/javax/swing/SwingUtilities.java,v
retrieving revision 1.6.2.18
diff -u -r1.6.2.18 SwingUtilities.java
--- javax/swing/SwingUtilities.java 21 Jan 2005 11:24:06 -0000 1.6.2.18
+++ javax/swing/SwingUtilities.java 28 Jan 2005 12:24:48 -0000
@@ -176,22 +176,6 @@
}
/**
- * Returns the font metrics object for a given font. The metrics can be
- * used to calculate crude bounding boxes and positioning information,
- * for laying out components with textual elements.
- *
- * @param font The font to get metrics for
- *
- * @return The font's metrics
- *
- * @see java.awt.font.GlyphMetrics
- */
- public static FontMetrics getFontMetrics(Font font)
- {
- return Toolkit.getDefaultToolkit().getFontMetrics(font);
- }
-
- /**
* If <code>comp</code> is a RootPaneContainer, return its JRootPane.
* Otherwise call <code>getAncestorOfClass(JRootPane.class, a)</code>.
*
More information about the Java-patches
mailing list