//
// Description:
//    SWFGradientI Class
//
// Authors:
//    Jonathan Shore <jshore@e-shuppan.com>
//    Based on php wrapper developed by <dave@opaque.net>
//
// Copyright:
//    Copyright 2001 E-Publishing Group Inc.  Permission is granted to use or
//    modify this code provided that the original copyright notice is included.
//
//    This software is distributed with no warranty of liability, merchantability,
//    or fitness for a specific purpose.
//



import SWFGradientI;



//
//  SWFGradient Class
//	gradient
//
//  Notes
//    -	
//
public class SWFGradient extends SWFObject implements SWFGradientI {

    public SWFGradient ()
	throws SWFException
    {
	setHandle (nNew ()); 
    }

    protected void finalize()
	throws Throwable
    {
	nDestroy (handle);
	super.finalize();
    }

    public void	addEntry (float ratio, int r, int g, int b, int alpha)
    { 
	nAddEntry (handle, ratio, r,g,b, alpha); 
    }

    
    // native methods

    protected native int	nNew ();
    protected native void	nDestroy (int handle);
    protected native void	nAddEntry (int handle, float ratio, int r, int g, int b, int alpha);

};



    
