KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > batik > ext > awt > image > renderable > PadRable


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.ext.awt.image.renderable;
19
20 import java.awt.geom.Rectangle2D JavaDoc;
21
22 import org.apache.batik.ext.awt.image.PadMode;
23
24 /**
25  * Pads image to the given Rectangle (the rect may be smaller than the
26  * image in which case this is actually a crop). The rectangle is
27  * specified in the user coordinate system of this Renderable.
28  *
29  * @author <a HREF="mailto:Thomas.DeWeeese@Kodak.com">Thomas DeWeese</a>
30  * @version $Id: PadRable.java,v 1.6 2005/03/27 08:58:33 cam Exp $ */

31 public interface PadRable extends Filter {
32     /**
33      * Returns the source to be padded
34      */

35     public Filter getSource();
36
37     /**
38      * Sets the source to be padded
39      * @param src image to offset.
40      */

41     public void setSource(Filter src);
42
43     /**
44      * Set the current rectangle for padding.
45      * @param rect the new rectangle to use for pad.
46      */

47     public void setPadRect(Rectangle2D JavaDoc rect);
48
49     /**
50      * Get the current rectangle for padding
51      * @return Rectangle currently in use for pad.
52      */

53     public Rectangle2D JavaDoc getPadRect();
54
55     /**
56      * Set the current extension mode for pad
57      * @param mode the new pad mode
58      */

59     public void setPadMode(PadMode mode);
60
61     /**
62      * Get the current extension mode for pad
63      * @return Mode currently in use for pad
64      */

65     public PadMode getPadMode();
66 }
67
Popular Tags