KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > batik > svggen > SVGConverter


1 /*
2
3    Copyright 2001 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.svggen;
19
20 import java.util.List JavaDoc;
21
22 import org.apache.batik.ext.awt.g2d.GraphicContext;
23
24 /**
25  * Defines the interface for classes that are able to convert
26  * part or all of a GraphicContext.
27  *
28  * @author <a HREF="mailto:vincent.hardy@eng.sun.com">Vincent Hardy</a>
29  * @version $Id: SVGConverter.java,v 1.6 2004/08/18 07:14:59 vhardy Exp $
30  * @see org.apache.batik.ext.awt.g2d.GraphicContext
31  */

32 public interface SVGConverter extends SVGSyntax{
33     /**
34      * Converts part or all of the input GraphicContext into
35      * a set of attribute/value pairs and related definitions
36      *
37      * @param gc GraphicContext to be converted
38      * @return descriptor of the attributes required to represent
39      * some or all of the GraphicContext state, along
40      * with the related definitions
41      * @see org.apache.batik.svggen.SVGDescriptor
42      */

43     public SVGDescriptor toSVG(GraphicContext gc);
44
45     /**
46      * @return set of definitions referenced by the attribute
47      * values created by the implementation since its
48      * creation. The return value should never be null.
49      * If no definition is needed, an empty set should be
50      * returned.
51      */

52     public List JavaDoc getDefinitionSet();
53 }
54
Popular Tags