Ignore:
Timestamp:
06/06/08 16:42:37 (16 years ago)
Author:
ra33
Message:

Added a couple of tests for AttributeUtils class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/items/ItemUtils.java

    r90 r95  
    11package org.expeditee.items;
    22
    3 import java.awt.Font;
    4 import java.awt.FontMetrics;
    5 import java.awt.Image;
    63import java.awt.image.ImageObserver;
    74import java.io.File;
     
    1714import java.util.Map;
    1815
    19 import javax.swing.JFrame;
    20 
    2116import org.expeditee.gui.AttributeUtils;
    2217import org.expeditee.gui.DisplayIO;
     
    3025 */
    3126public class ItemUtils {
    32         private static JFrame _jf = new JFrame();
    33 
    3427        // Tag constants
    3528        public static final int TAG_SORT = 0;
     
    321314
    322315        /**
    323          * Returns a FontMetrics object that corresponds to the given Font.
    324          *
    325          * @param font
    326          *            The Font to derive the FontMetrics from
    327          * @return FontMetrics that correspond to the given Font
    328          */
    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         /**
    338316         * Creates a picture object from the information stored in the given Text
    339317         * object. <br>
Note: See TracChangeset for help on using the changeset viewer.