KickJava   Java API By Example, From Geeks To Geeks.

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


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.ext.awt.image.renderable;
19
20 import java.awt.geom.Rectangle2D JavaDoc;
21
22 import org.apache.batik.ext.awt.image.Light;
23
24 /**
25  * This filter follows the specification of the feSpecularLighting filter in
26  * the SVG 1.0 specification.
27  *
28  * @author <a HREF="mailto:vincent.hardy@eng.sun.com">Vincent Hardy</a>
29  * @version $Id: SpecularLightingRable.java,v 1.7 2005/03/27 08:58:33 cam Exp $
30  */

31 public interface SpecularLightingRable extends FilterColorInterpolation {
32     /**
33      * Returns the source to be filtered
34      */

35     public Filter getSource();
36
37     /**
38      * Sets the source to be filtered
39      */

40     public void setSource(Filter src);
41
42     /**
43      * @return Light object used for the diffuse lighting
44      */

45     public Light getLight();
46
47     /**
48      * @param light New Light object
49      */

50     public void setLight(Light light);
51
52     /**
53      * @return surfaceScale
54      */

55     public double getSurfaceScale();
56
57     /**
58      * Sets the surface scale
59      */

60     public void setSurfaceScale(double surfaceScale);
61
62     /**
63      * @return specular constant, or ks.
64      */

65     public double getKs();
66
67     /**
68      * Sets the specular constant, or ks
69      */

70     public void setKs(double ks);
71
72     /**
73      * @return specular exponent, or kd
74      */

75     public double getSpecularExponent();
76
77     /**
78      * Sets the specular exponent
79      */

80     public void setSpecularExponent(double specularExponent);
81
82     /**
83      * @return the litRegion for this filter
84      */

85     public Rectangle2D JavaDoc getLitRegion();
86
87     /**
88      * Sets the litRegion for this filter
89      */

90     public void setLitRegion(Rectangle2D JavaDoc litRegion);
91
92     /**
93      * Returns the min [dx,dy] distance in user space for evalutation of
94      * the sobel gradient.
95      */

96     public double [] getKernelUnitLength();
97
98     /**
99      * Sets the min [dx,dy] distance in user space for evaluation of the
100      * sobel gradient. If set to zero or null then device space will be used.
101      */

102     public void setKernelUnitLength(double [] kernelUnitLength);
103 }
104
105
Popular Tags