// Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

import java.awt.*;
import java.awt.image.*;
import java.io.PrintStream;
import sign.signlink;

public class Class15
    implements ImageProducer, ImageObserver
{

    public Class15(int i, int j, Component component, int k)
    {
        anInt238 = j;
        anInt239 = i;
        anIntArray237 = new int[j * i];
        aColorModel240 = new DirectColorModel(32, 0xff0000, 65280, 255);
        anImage242 = component.createImage(this);
        method215();
        component.prepareImage(anImage242, this);
        method215();
        component.prepareImage(anImage242, this);
        method215();
        component.prepareImage(anImage242, this);
        method213(0);
        if(k != 0)
            anInt236 = -62;
    }

    public void method213(int i)
    {
        Class31_Sub3_Sub1.method345(anInt239, anInt238, -357, anIntArray237);
        if(i == 0);
    }

    public void method214(Graphics g, int i, int j, int k)
    {
        method215();
        if(j != 0)
        {
            return;
        } else
        {
            g.drawImage(anImage242, i, k, this);
            return;
        }
    }

    public synchronized void addConsumer(ImageConsumer imageconsumer)
    {
        anImageConsumer241 = imageconsumer;
        imageconsumer.setDimensions(anInt238, anInt239);
        imageconsumer.setProperties(null);
        imageconsumer.setColorModel(aColorModel240);
        imageconsumer.setHints(14);
    }

    public synchronized boolean isConsumer(ImageConsumer imageconsumer)
    {
        return anImageConsumer241 == imageconsumer;
    }

    public synchronized void removeConsumer(ImageConsumer imageconsumer)
    {
        if(anImageConsumer241 == imageconsumer)
            anImageConsumer241 = null;
    }

    public void startProduction(ImageConsumer imageconsumer)
    {
        addConsumer(imageconsumer);
    }

    public void requestTopDownLeftRightResend(ImageConsumer imageconsumer)
    {
        System.out.println("TDLR");
    }

    public synchronized void method215()
    {
        if(anImageConsumer241 == null)
        {
            return;
        } else
        {
            anImageConsumer241.setPixels(0, 0, anInt238, anInt239, aColorModel240, anIntArray237, 0, anInt238);
            anImageConsumer241.imageComplete(2);
            return;
        }
    }

    public boolean imageUpdate(Image image, int i, int j, int k, int l, int i1)
    {
        return true;
    }

    public int anInt236;
    public int anIntArray237[];
    public int anInt238;
    public int anInt239;
    public ColorModel aColorModel240;
    public ImageConsumer anImageConsumer241;
    public Image anImage242;
}
