KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > batik > gvt > renderer > ImageRenderer


1 /*
2
3    Copyright 2001-2003 The Apache Software Foundation
4
5    Licensed under the Apache License, Version 2.0 (the "License");
6    you may not use this file except in compliance with the License.
7    You may obtain a copy of the License at
8
9        http://www.apache.org/licenses/LICENSE-2.0
10
11    Unless required by applicable law or agreed to in writing, software
12    distributed under the License is distributed on an "AS IS" BASIS,
13    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14    See the License for the specific language governing permissions and
15    limitations under the License.
16
17  */

18 package org.apache.batik.gvt.renderer;
19
20 import java.awt.Rectangle JavaDoc;
21 import java.awt.image.BufferedImage JavaDoc;
22 import java.util.Collection JavaDoc;
23
24 /**
25  * Interface for GVT Renderers that render into raster images.
26  *
27  * @author <a HREF="mailto:vincent.hardy@eng.sun.com">Vincent Hardy</a>
28  * @version $Id: ImageRenderer.java,v 1.7 2004/08/18 07:14:38 vhardy Exp $
29  */

30 public interface ImageRenderer extends Renderer{
31     /**
32      * Update the required size of the offscreen buffer.
33      */

34     public void updateOffScreen(int width, int height);
35
36     /**
37      * Get the Current offscreen buffer used for rendering
38      */

39     public BufferedImage JavaDoc getOffScreen();
40
41     /**
42      * Tells renderer to clear current contents of offscreen buffer
43      */

44     public void clearOffScreen();
45
46     /**
47      * Flush any cached image data (preliminary interface).
48      */

49     public void flush();
50
51     /**
52      * Flush a rectangle of cached image data (preliminary interface).
53      */

54     public void flush(Rectangle JavaDoc r);
55
56     /**
57      * Flush a list of rectangles of cached image data (preliminary
58      * interface). Each area are transformed via the usr2dev's renderer
59      * transform before the flush(Rectangle) is called.
60      */

61     public void flush(Collection JavaDoc areas);
62 }
63
Popular Tags