01: /*
02:
03: Licensed to the Apache Software Foundation (ASF) under one or more
04: contributor license agreements. See the NOTICE file distributed with
05: this work for additional information regarding copyright ownership.
06: The ASF licenses this file to You under the Apache License, Version 2.0
07: (the "License"); you may not use this file except in compliance with
08: the License. You may obtain a copy of the License at
09:
10: http://www.apache.org/licenses/LICENSE-2.0
11:
12: Unless required by applicable law or agreed to in writing, software
13: distributed under the License is distributed on an "AS IS" BASIS,
14: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15: See the License for the specific language governing permissions and
16: limitations under the License.
17:
18: */
19: package org.apache.batik.svggen;
20:
21: import java.awt.Rectangle;
22: import java.awt.image.BufferedImageOp;
23: import java.util.List;
24:
25: /**
26: * Defines the interface for classes that are able to convert
27: * a BufferedImageOp filter.
28: *
29: * @author <a href="mailto:vincent.hardy@eng.sun.com">Vincent Hardy</a>
30: * @version $Id: SVGFilterConverter.java 478176 2006-11-22 14:50:50Z dvholten $
31: * @see org.apache.batik.svggen.SVGFilterDescriptor
32: */
33: public interface SVGFilterConverter extends SVGSyntax {
34: /**
35: * Converts a Java 2D API BufferedImageOp into
36: * a set of attribute/value pairs and related definitions
37: *
38: * @param filter BufferedImageOp filter to be converted
39: * @param filterRect Rectangle, in device space, that defines the area
40: * to which filtering applies. May be null, meaning that the
41: * area is undefined.
42: * @return descriptor of the attributes required to represent
43: * the input filter
44: * @see org.apache.batik.svggen.SVGFilterDescriptor
45: */
46: SVGFilterDescriptor toSVG(BufferedImageOp filter,
47: Rectangle filterRect);
48:
49: /**
50: * @return set of definitions referenced by the attribute
51: * values created by the implementation since its
52: * creation. The return value should never be null.
53: * If no definition is needed, an empty set should be
54: * returned.
55: */
56: List getDefinitionSet();
57: }
|