1 |
/* Copyright (C) 2000, 2002 Free Software Foundation |
/* PaintContext.java -- the environment for performing a paint operation |
2 |
|
Copyright (C) 2000, 2002 Free Software Foundation |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
38 |
|
|
39 |
package java.awt; |
package java.awt; |
40 |
|
|
41 |
/** |
import java.awt.image.ColorModel; |
42 |
* @author Warren Levy <warrenl@cygnus.com> |
import java.awt.image.Raster; |
|
* @date March 16, 2000. |
|
|
*/ |
|
43 |
|
|
44 |
/** |
/** |
45 |
* Written using on-line Java Platform 1.2 API Specification, as well |
* @author Warren Levy <warrenl@cygnus.com> |
46 |
* as "The Java Class Libraries", 2nd edition (Addison-Wesley, 1998). |
* @see Paint |
47 |
* Status: Partially stubbed. |
* @since 1.1 |
48 |
|
* @status updated to 1.4 |
49 |
*/ |
*/ |
|
|
|
50 |
public interface PaintContext |
public interface PaintContext |
51 |
{ |
{ |
52 |
|
/** |
53 |
|
* Release the resources allocated for the paint. |
54 |
|
*/ |
55 |
public void dispose(); |
public void dispose(); |
56 |
// FIXME |
|
57 |
// public ColorModel getColorModel(); |
/** |
58 |
// public Raster getRaster(int x, int y, int w, int h); |
* Return the color model of this context. It may be different from the |
59 |
} |
* hint specified during createContext, as not all contexts can generate |
60 |
|
* color patterns in an arbitrary model. |
61 |
|
* |
62 |
|
* @return the context color model |
63 |
|
*/ |
64 |
|
ColorModel getColorModel(); |
65 |
|
|
66 |
|
/** |
67 |
|
* Return a raster containing the colors for the graphics operation. |
68 |
|
* |
69 |
|
* @param x the x-coordinate, in device space |
70 |
|
* @param y the y-coordinate, in device space |
71 |
|
* @param w the width, in device space |
72 |
|
* @param h the height, in device space |
73 |
|
* @return a raster for the given area and color |
74 |
|
*/ |
75 |
|
Raster getRaster(int x, int y, int w, int h); |
76 |
|
} // interface PaintContext |