Changeset 95 for trunk/src/org/expeditee/items/ItemUtils.java
- Timestamp:
- 06/06/08 16:42:37 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/items/ItemUtils.java
r90 r95 1 1 package org.expeditee.items; 2 2 3 import java.awt.Font;4 import java.awt.FontMetrics;5 import java.awt.Image;6 3 import java.awt.image.ImageObserver; 7 4 import java.io.File; … … 17 14 import java.util.Map; 18 15 19 import javax.swing.JFrame;20 21 16 import org.expeditee.gui.AttributeUtils; 22 17 import org.expeditee.gui.DisplayIO; … … 30 25 */ 31 26 public class ItemUtils { 32 private static JFrame _jf = new JFrame();33 34 27 // Tag constants 35 28 public static final int TAG_SORT = 0; … … 321 314 322 315 /** 323 * Returns a FontMetrics object that corresponds to the given Font.324 *325 * @param font326 * The Font to derive the FontMetrics from327 * @return FontMetrics that correspond to the given Font328 */329 public static FontMetrics getFontMetrics(Font font) {330 return _jf.getFontMetrics(font);331 }332 333 public static Image CreateImage(int x, int y) {334 return _jf.createImage(x, y);335 }336 337 /**338 316 * Creates a picture object from the information stored in the given Text 339 317 * object. <br>
Note:
See TracChangeset
for help on using the changeset viewer.