home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 144 / DPCS0200.iso / Internet / Supanet / system / swing.jar / javax / swing / plaf / metal / MetalIconFactory.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-11-05  |  6.6 KB  |  217 lines

  1. package javax.swing.plaf.metal;
  2.  
  3. import java.awt.Dimension;
  4. import java.io.Serializable;
  5. import javax.swing.Icon;
  6.  
  7. public class MetalIconFactory implements Serializable {
  8.    private static Icon fileChooserDetailViewIcon;
  9.    private static Icon fileChooserHomeFolderIcon;
  10.    private static Icon fileChooserListViewIcon;
  11.    private static Icon fileChooserNewFolderIcon;
  12.    private static Icon fileChooserUpFolderIcon;
  13.    private static Icon internalFrameAltMaximizeIcon;
  14.    private static Icon internalFrameCloseIcon;
  15.    private static Icon internalFrameDefaultMenuIcon;
  16.    private static Icon internalFrameMaximizeIcon;
  17.    private static Icon internalFrameMinimizeIcon;
  18.    private static Icon radioButtonIcon;
  19.    private static Icon treeComputerIcon;
  20.    private static Icon treeFloppyDriveIcon;
  21.    private static Icon treeHardDriveIcon;
  22.    private static Icon menuArrowIcon;
  23.    private static Icon menuItemCheckIcon;
  24.    private static Icon menuItemArrowIcon;
  25.    private static Icon checkBoxMenuItemIcon;
  26.    private static Icon radioButtonMenuItemIcon;
  27.    public static final boolean DARK = false;
  28.    public static final boolean LIGHT = true;
  29.    private static final Dimension folderIcon16Size = new Dimension(16, 16);
  30.    private static final Dimension fileIcon16Size = new Dimension(16, 16);
  31.    private static final Dimension treeControlSize = new Dimension(18, 18);
  32.    private static final Dimension menuArrowIconSize = new Dimension(4, 8);
  33.    private static final Dimension menuCheckIconSize = new Dimension(12, 10);
  34.    private static final int xOff = 4;
  35.  
  36.    // $FF: synthetic method
  37.    static Dimension access$0() {
  38.       return folderIcon16Size;
  39.    }
  40.  
  41.    // $FF: synthetic method
  42.    static Dimension access$1() {
  43.       return fileIcon16Size;
  44.    }
  45.  
  46.    // $FF: synthetic method
  47.    static Dimension access$2() {
  48.       return treeControlSize;
  49.    }
  50.  
  51.    // $FF: synthetic method
  52.    static Dimension access$3() {
  53.       return menuArrowIconSize;
  54.    }
  55.  
  56.    // $FF: synthetic method
  57.    static Dimension access$4() {
  58.       return menuCheckIconSize;
  59.    }
  60.  
  61.    public static Icon getCheckBoxMenuItemIcon() {
  62.       if (checkBoxMenuItemIcon == null) {
  63.          checkBoxMenuItemIcon = new CheckBoxMenuItemIcon();
  64.       }
  65.  
  66.       return checkBoxMenuItemIcon;
  67.    }
  68.  
  69.    public static Icon getFileChooserDetailViewIcon() {
  70.       if (fileChooserDetailViewIcon == null) {
  71.          fileChooserDetailViewIcon = new FileChooserDetailViewIcon();
  72.       }
  73.  
  74.       return fileChooserDetailViewIcon;
  75.    }
  76.  
  77.    public static Icon getFileChooserHomeFolderIcon() {
  78.       if (fileChooserHomeFolderIcon == null) {
  79.          fileChooserHomeFolderIcon = new FileChooserHomeFolderIcon();
  80.       }
  81.  
  82.       return fileChooserHomeFolderIcon;
  83.    }
  84.  
  85.    public static Icon getFileChooserListViewIcon() {
  86.       if (fileChooserListViewIcon == null) {
  87.          fileChooserListViewIcon = new FileChooserListViewIcon();
  88.       }
  89.  
  90.       return fileChooserListViewIcon;
  91.    }
  92.  
  93.    public static Icon getFileChooserNewFolderIcon() {
  94.       if (fileChooserNewFolderIcon == null) {
  95.          fileChooserNewFolderIcon = new FileChooserNewFolderIcon();
  96.       }
  97.  
  98.       return fileChooserNewFolderIcon;
  99.    }
  100.  
  101.    public static Icon getFileChooserUpFolderIcon() {
  102.       if (fileChooserUpFolderIcon == null) {
  103.          fileChooserUpFolderIcon = new FileChooserUpFolderIcon();
  104.       }
  105.  
  106.       return fileChooserUpFolderIcon;
  107.    }
  108.  
  109.    public static Icon getHorizontalSliderThumbIcon() {
  110.       return new HorizontalSliderThumbIcon();
  111.    }
  112.  
  113.    public static Icon getInternalFrameAltMaximizeIcon(int var0) {
  114.       return new InternalFrameAltMaximizeIcon(var0);
  115.    }
  116.  
  117.    public static Icon getInternalFrameCloseIcon(int var0) {
  118.       return new InternalFrameCloseIcon(var0);
  119.    }
  120.  
  121.    public static Icon getInternalFrameDefaultMenuIcon() {
  122.       if (internalFrameDefaultMenuIcon == null) {
  123.          internalFrameDefaultMenuIcon = new InternalFrameDefaultMenuIcon();
  124.       }
  125.  
  126.       return internalFrameDefaultMenuIcon;
  127.    }
  128.  
  129.    public static Icon getInternalFrameMaximizeIcon(int var0) {
  130.       return new InternalFrameMaximizeIcon(var0);
  131.    }
  132.  
  133.    public static Icon getInternalFrameMinimizeIcon(int var0) {
  134.       return new InternalFrameMinimizeIcon(var0);
  135.    }
  136.  
  137.    public static Icon getMenuArrowIcon() {
  138.       if (menuArrowIcon == null) {
  139.          menuArrowIcon = new MenuArrowIcon();
  140.       }
  141.  
  142.       return menuArrowIcon;
  143.    }
  144.  
  145.    public static Icon getMenuItemArrowIcon() {
  146.       if (menuItemArrowIcon == null) {
  147.          menuItemArrowIcon = new MenuItemArrowIcon();
  148.       }
  149.  
  150.       return menuItemArrowIcon;
  151.    }
  152.  
  153.    public static Icon getMenuItemCheckIcon() {
  154.       if (menuItemCheckIcon == null) {
  155.          menuItemCheckIcon = new MenuItemCheckIcon();
  156.       }
  157.  
  158.       return menuItemCheckIcon;
  159.    }
  160.  
  161.    public static Icon getRadioButtonIcon() {
  162.       if (radioButtonIcon == null) {
  163.          radioButtonIcon = new RadioButtonIcon();
  164.       }
  165.  
  166.       return radioButtonIcon;
  167.    }
  168.  
  169.    public static Icon getRadioButtonMenuItemIcon() {
  170.       if (radioButtonMenuItemIcon == null) {
  171.          radioButtonMenuItemIcon = new RadioButtonMenuItemIcon();
  172.       }
  173.  
  174.       return radioButtonMenuItemIcon;
  175.    }
  176.  
  177.    public static Icon getTreeComputerIcon() {
  178.       if (treeComputerIcon == null) {
  179.          treeComputerIcon = new TreeComputerIcon();
  180.       }
  181.  
  182.       return treeComputerIcon;
  183.    }
  184.  
  185.    public static Icon getTreeControlIcon(boolean var0) {
  186.       return new TreeControlIcon(var0);
  187.    }
  188.  
  189.    public static Icon getTreeFloppyDriveIcon() {
  190.       if (treeFloppyDriveIcon == null) {
  191.          treeFloppyDriveIcon = new TreeFloppyDriveIcon();
  192.       }
  193.  
  194.       return treeFloppyDriveIcon;
  195.    }
  196.  
  197.    public static Icon getTreeFolderIcon() {
  198.       return new TreeFolderIcon();
  199.    }
  200.  
  201.    public static Icon getTreeHardDriveIcon() {
  202.       if (treeHardDriveIcon == null) {
  203.          treeHardDriveIcon = new TreeHardDriveIcon();
  204.       }
  205.  
  206.       return treeHardDriveIcon;
  207.    }
  208.  
  209.    public static Icon getTreeLeafIcon() {
  210.       return new TreeLeafIcon();
  211.    }
  212.  
  213.    public static Icon getVerticalSliderThumbIcon() {
  214.       return new VerticalSliderThumbIcon();
  215.    }
  216. }
  217.