Main Page Cookbook/Overview ImageMeister the jcprops file Licensing Binary Installation & Configuration [ Win · Mac · Nix · OSX ] Changes Public API Source Code Main Page Java [ Common · Win · Mac · Nix ] Native Code [ Common · Win · Mac · Nix ] Manifest Native Code Overviews [ Common · Win · Mac · Nix · Strings ] Macros [ General · Native Macros ] Walkthroughs [ Java only · Java and native ] Building [ Win · Mac · Nix · OSX ] Distribution Issues

    All Packages  This Package  Class Hierarchy  Class Search  Index

Class com.jconfig.nix.DefaultIconManager

    java.lang.Object
       |
       +----com.jconfig.nix.DefaultIconManager

Summary

    class  DefaultIconManager
         extends java.lang.Object
    {
              // Fields 23
         private static final String copyrightString;
         static final int kLargeDir;
         static final int kLargeFile;
         private static final String kLargeFileName;
         private static final String kLargeFolderName;
         private static final int kLargeH;
         static final int kLargeVolume;
         private static final String kLargeVolumeName;
         private static final int kLargeW;
         static final int kSmallDir;
         static final int kSmallFile;
         private static final String kSmallFileName;
         private static final String kSmallFolderName;
         private static final int kSmallH;
         static final int kSmallVolume;
         private static final String kSmallVolumeName;
         private static final int kSmallW;
         private int[] pixLargeFile;
         private int[] pixLargeFolder;
         private int[] pixLargeVolume;
         private int[] pixSmallFile;
         private int[] pixSmallFolder;
         private int[] pixSmallVolume;

              // Constructors 1
         DefaultIconManager(File);

              // Methods 2
         int getIcon(int, int[]);
         boolean init(File, String, int, int, int[]);
    }

This is a preliminary class which manages the disk object icons on Unix.

These icons are stored in a seris of 8-bit uncompressed Windows .bmp files: 'filel.bmp', etc. This class is created with the directory containing these files; it read each file, and converts it into an array of ints, stored in Java's ARGB format.

The 'getIcon()' method copies these ARGB values into the given int array for the indicated icon.

Author:
  Copyright (c) 1997-2002 Samizdat Productions. All Rights Reserved.

Fields

### · copyrightString | Summary | Top

       private static final String copyrightString

### · kLargeFile | Summary | Top

       static final int kLargeFile

### · kLargeDir | Summary | Top

       static final int kLargeDir

### · kLargeVolume | Summary | Top

       static final int kLargeVolume

### · kSmallFile | Summary | Top

       static final int kSmallFile

### · kSmallDir | Summary | Top

       static final int kSmallDir

### · kSmallVolume | Summary | Top

       static final int kSmallVolume

### · kLargeW | Summary | Top

       private static final int kLargeW

### · kLargeH | Summary | Top

       private static final int kLargeH

### · kSmallW | Summary | Top

       private static final int kSmallW

### · kSmallH | Summary | Top

       private static final int kSmallH

### · kLargeFileName | Summary | Top

       private static final String kLargeFileName

> File containing the large file icon.

### · kLargeFolderName | Summary | Top

       private static final String kLargeFolderName

> File containing the large folder icon.

### · kLargeVolumeName | Summary | Top

       private static final String kLargeVolumeName

> File containing the large volume icon.

### · kSmallFileName | Summary | Top

       private static final String kSmallFileName

> File containing the small file icon.

### · kSmallFolderName | Summary | Top

       private static final String kSmallFolderName

> File containing the small folder icon.

### · kSmallVolumeName | Summary | Top

       private static final String kSmallVolumeName

> File containing the small volume icon.

### · pixLargeFile | Summary | Top

       private int[] pixLargeFile

### · pixLargeFolder | Summary | Top

       private int[] pixLargeFolder

### · pixLargeVolume | Summary | Top

       private int[] pixLargeVolume

### · pixSmallFile | Summary | Top

       private int[] pixSmallFile

### · pixSmallFolder | Summary | Top

       private int[] pixSmallFolder

### · pixSmallVolume | Summary | Top

       private int[] pixSmallVolume

Constructors

### · DefaultIconManager | Summary | Top

       DefaultIconManager(File dir)

> Construct using a File object which indicates the directory containing the BMP files.

Methods

### · init | Summary | Top

       boolean init(File dir,
                    String fileName,
                    int w,
                    int h,
                    int[] pData)

### · getIcon | Summary | Top

       int getIcon(int type,
                   int[] pData)

    All Packages  This Package  Class Hierarchy  Class Search  Index

Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7