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. |
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. |