Back to index

wims  3.65+svn20090927
Public Member Functions | Package Functions | Private Attributes | Static Private Attributes
atp.f Class Reference
Collaboration diagram for atp.f:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 f ()
Image a (String s, Graphics g)

Package Functions

ImageProducer a (String s)

Private Attributes

ImageProducer _flddo []
String _fldif []
Hashtable _fldfor

Static Private Attributes

static boolean a = true

Detailed Description

Definition at line 12 of file f.java.


Constructor & Destructor Documentation

atp.f.f ( ) [inline]

Definition at line 24 of file f.java.

    {
        _fldfor = new Hashtable(189);
    }

Member Function Documentation

Image atp.f.a ( String  s,
Graphics  g 
) [inline]

Definition at line 29 of file f.java.

    {
        StringTokenizer stringtokenizer = new StringTokenizer(s, "/");
        String s1 = stringtokenizer.nextToken();
        s1 = stringtokenizer.nextToken().substring(5);
        String s2 = stringtokenizer.nextToken();
        int i = -1;
        boolean flag2 = true;
        while(flag2) 
        {
            if(_fldif[++i].equals(s1))
            {
                flag2 = false;
            }
            if(i == 4)
            {
                flag2 = false;
            }
        }
        if(_flddo[i] == null)
        {
            _flddo[i] = a("Fonts" + s1 + ".gif");
            String s3 = "Des" + s1 + ".gif";
            BufferedInputStream bufferedinputstream = null;
            try
            {
                InputStream inputstream = getClass().getResourceAsStream(s3);
                   bufferedinputstream = new BufferedInputStream(getClass().getResourceAsStream(s3));
                ObjectInputStream objectinputstream = new ObjectInputStream(bufferedinputstream);
                int j = objectinputstream.readInt();
                for(int k = 0; k < j; k++)
                {
                    String s4 = (String)objectinputstream.readObject();
                    _fldfor.put(s1 + s4, new Rectangle((Rectangle)objectinputstream.readObject()));
                }

                bufferedinputstream.close();
            }
            catch(Exception exception1)
            {
                //System.out.println(exception1.toString());
                _flddo[i] = null;
            }
        }
        Image image = null;
        if(_flddo[i] != null)
        {
            Rectangle rectangle = (Rectangle)_fldfor.get(s1 + s2);
            image = Toolkit.getDefaultToolkit().createImage(new FilteredImageSource(new FilteredImageSource(_flddo[i], new CropImageFilter(rectangle.x, rectangle.y, rectangle.width, rectangle.height)), new a(g.getColor())));
        }
        return image;
    }
ImageProducer atp.f.a ( String  s) [inline, package]

Definition at line 82 of file f.java.

    {
        ImageProducer imageproducer = null;
        try
        {
            InputStream inputstream = getClass().getResourceAsStream(s);
            int i = inputstream.available();
            byte abyte0[] = new byte[i];
            int j = 0;
            for(int k = 0; k != -1;)
            {
                k = inputstream.read(abyte0, j, i);
                if(k != -1)
                {
                    j += k;
                    i = inputstream.available();
                    int l = j + i;
                    if(l > abyte0.length)
                    {
                        byte abyte1[] = (byte[])abyte0.clone();
                        abyte0 = new byte[l];
                        System.arraycopy(abyte1, 0, abyte0, 0, j);
                    }
                }
                if(i == 0)
                {
                    break;
                }
            }

            imageproducer = Toolkit.getDefaultToolkit().createImage(abyte0).getSource();
        }
        catch(Exception exception) { }
        return imageproducer;
    }

Member Data Documentation

ImageProducer atp.f._flddo[] [private]
Initial value:
 {
        null, null, null, null, null
    }

Definition at line 15 of file f.java.

Hashtable atp.f._fldfor [private]

Definition at line 21 of file f.java.

String atp.f._fldif[] [private]
Initial value:
 {
        "8", "10", "12", "14", "18"
    }

Definition at line 18 of file f.java.

boolean atp.f.a = true [static, private]

Definition at line 22 of file f.java.


The documentation for this class was generated from the following file: