home *** CD-ROM | disk | FTP | other *** search
/ Java 1.2 How-To / JavaHowTo.iso / 3rdParty / jbuilder / unsupported / JDK1.2beta3 / SOURCE / SRC.ZIP / java / awt / CompositeContext.java < prev    next >
Encoding:
Java Source  |  1998-03-20  |  1.5 KB  |  51 lines

  1. /*
  2.  * @(#)CompositeContext.java    1.15 98/03/18
  3.  *
  4.  * Copyright 1997 by Sun Microsystems, Inc.,
  5.  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
  6.  * All rights reserved.
  7.  *
  8.  * This software is the confidential and proprietary information
  9.  * of Sun Microsystems, Inc. ("Confidential Information").  You
  10.  * shall not disclose such Confidential Information and shall use
  11.  * it only in accordance with the terms of the license agreement
  12.  * you entered into with Sun.
  13.  */
  14.  
  15. package java.awt;
  16.  
  17. import java.awt.image.Raster;
  18. import java.awt.image.WritableRaster;
  19.  
  20. /**
  21.  * This interface defines the encapsulated and optimized environment for
  22.  * a compositing operation.  CompositeContext objects maintain state for
  23.  * compositing operations.  In a multi-threaded environment, several
  24.  * contexts may exist simultaneously for a single Composite object.
  25.  * @see Composite
  26.  * @version 10 Feb 1997
  27.  */
  28.  
  29. public interface CompositeContext {
  30.     /**
  31.      * Release resources allocated for context.
  32.      */
  33.     public void dispose();
  34.  
  35.     /**
  36.      * This method composes the two source rasters
  37.      * and places the result in the destination raster. Note that
  38.      * the destination can be the same object as either
  39.      * the first or second source.
  40.      * @param src1 The first source for the compositing operation.
  41.      * @param src2 The second source for the compositing operation.
  42.      * @param dst The tile where the result of the operation is stored.
  43.      */
  44.     public void compose(Raster src1,
  45.                         Raster src2,
  46.             WritableRaster dst);
  47.  
  48.  
  49. }
  50.  
  51.