home *** CD-ROM | disk | FTP | other *** search
/ S283 Planetary Science &n…he Search for Life DVD 2 / DVD-ROM.iso / install / jre1_3 / lib / rt.jar / javax / swing / plaf / basic / BasicIconFactory.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  2.0 KB  |  80 lines

  1. package javax.swing.plaf.basic;
  2.  
  3. import java.io.Serializable;
  4. import javax.swing.Icon;
  5.  
  6. public class BasicIconFactory implements Serializable {
  7.    private static Icon frame_icon;
  8.    private static Icon checkBoxIcon;
  9.    private static Icon radioButtonIcon;
  10.    private static Icon checkBoxMenuItemIcon;
  11.    private static Icon radioButtonMenuItemIcon;
  12.    private static Icon menuItemCheckIcon;
  13.    private static Icon menuItemArrowIcon;
  14.    private static Icon menuArrowIcon;
  15.  
  16.    public static Icon getMenuItemCheckIcon() {
  17.       if (menuItemCheckIcon == null) {
  18.          menuItemCheckIcon = new MenuItemCheckIcon((1)null);
  19.       }
  20.  
  21.       return menuItemCheckIcon;
  22.    }
  23.  
  24.    public static Icon getMenuItemArrowIcon() {
  25.       if (menuItemArrowIcon == null) {
  26.          menuItemArrowIcon = new MenuItemArrowIcon((1)null);
  27.       }
  28.  
  29.       return menuItemArrowIcon;
  30.    }
  31.  
  32.    public static Icon getMenuArrowIcon() {
  33.       if (menuArrowIcon == null) {
  34.          menuArrowIcon = new MenuArrowIcon((1)null);
  35.       }
  36.  
  37.       return menuArrowIcon;
  38.    }
  39.  
  40.    public static Icon getCheckBoxIcon() {
  41.       if (checkBoxIcon == null) {
  42.          checkBoxIcon = new CheckBoxIcon((1)null);
  43.       }
  44.  
  45.       return checkBoxIcon;
  46.    }
  47.  
  48.    public static Icon getRadioButtonIcon() {
  49.       if (radioButtonIcon == null) {
  50.          radioButtonIcon = new RadioButtonIcon((1)null);
  51.       }
  52.  
  53.       return radioButtonIcon;
  54.    }
  55.  
  56.    public static Icon getCheckBoxMenuItemIcon() {
  57.       if (checkBoxMenuItemIcon == null) {
  58.          checkBoxMenuItemIcon = new CheckBoxMenuItemIcon((1)null);
  59.       }
  60.  
  61.       return checkBoxMenuItemIcon;
  62.    }
  63.  
  64.    public static Icon getRadioButtonMenuItemIcon() {
  65.       if (radioButtonMenuItemIcon == null) {
  66.          radioButtonMenuItemIcon = new RadioButtonMenuItemIcon((1)null);
  67.       }
  68.  
  69.       return radioButtonMenuItemIcon;
  70.    }
  71.  
  72.    public static Icon createEmptyFrameIcon() {
  73.       if (frame_icon == null) {
  74.          frame_icon = new EmptyFrameIcon((1)null);
  75.       }
  76.  
  77.       return frame_icon;
  78.    }
  79. }
  80.