/[classpath]/classpath/javax/swing/SwingUtilities.java
ViewVC logotype

Diff of /classpath/javax/swing/SwingUtilities.java

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

revision 1.18 by mkoch, Tue Nov 16 10:13:18 2004 UTC revision 1.19 by mkoch, Sun Nov 21 11:29:23 2004 UTC
# Line 76  public class SwingUtilities implements S Line 76  public class SwingUtilities implements S
76     */     */
77    private static OwnerFrame ownerFrame;    private static OwnerFrame ownerFrame;
78    
79      private SwingUtilities()
80      {
81        // Do nothing.
82      }
83      
84    /**    /**
85     * Calculates the portion of the base rectangle which is inside the     * Calculates the portion of the base rectangle which is inside the
86     * insets.     * insets.
# Line 1120  public class SwingUtilities implements S Line 1125  public class SwingUtilities implements S
1125    
1126      return new Rectangle(0, 0, 0, 0);      return new Rectangle(0, 0, 0, 0);
1127    }    }
1128      
1129      /**
1130       * Calculates the width of a given string.
1131       *
1132       * @param fm the <code>FontMetrics</code> object to use
1133       * @param str the string
1134       *
1135       * @return the width of the the string.
1136       */
1137      public static int computeStringWidth(FontMetrics fm, String str)
1138      {
1139        return fm.stringWidth(str);
1140      }
1141    
1142    /**    /**
1143     * Calculates the union of two rectangles.     * Calculates the union of two rectangles.

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

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