KickJava   Java API By Example, From Geeks To Geeks.

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


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 /**
23  * Creates a sourceless image from a turbulence function.
24  *
25  * @author <a HREF="mailto:Thomas.DeWeeese@Kodak.com">Thomas DeWeese</a>
26  * @version $Id: TurbulenceRable.java,v 1.6 2005/03/27 08:58:33 cam Exp $
27  */

28 public interface TurbulenceRable extends FilterColorInterpolation {
29
30     /**
31      * Sets the turbulence region
32      * @param turbulenceRegion region to fill with turbulence function.
33      */

34     public void setTurbulenceRegion(Rectangle2D JavaDoc turbulenceRegion);
35
36     /**
37      * Gets the turbulence region
38      */

39      public Rectangle2D JavaDoc getTurbulenceRegion();
40
41     /**
42      * Gets the current seed value for the pseudo random number generator.
43      * @return The current seed value for the pseudo random number generator.
44      */

45     public int getSeed();
46
47     /**
48      * Gets the current base fequency in x direction.
49      * @return The current base fequency in x direction.
50      */

51     public double getBaseFrequencyX();
52
53     /**
54      * Gets the current base fequency in y direction.
55      * @return The current base fequency in y direction.
56      */

57     public double getBaseFrequencyY();
58
59     /**
60      * Gets the current number of octaves for the noise function .
61      * @return The current number of octaves for the noise function .
62      */

63     public int getNumOctaves();
64
65     /**
66      * Returns true if the turbulence function is currently stitching tiles.
67      * @return true if the turbulence function is currently stitching tiles.
68      */

69     public boolean isStitched();
70
71     /**
72      * Returns true if the turbulence function is using fractal noise,
73      * instead of turbulence noise.
74      * @return true if the turbulence function is using fractal noise,
75      * instead of turbulence noise.
76      */

77     public boolean isFractalNoise();
78
79     /**
80      * Sets the seed value for the pseudo random number generator.
81      * @param seed The new seed value for the pseudo random number generator.
82      */

83     public void setSeed(int seed);
84
85     /**
86      * Sets the base fequency in x direction.
87      * @param xfreq The new base fequency in x direction.
88      */

89     public void setBaseFrequencyX(double xfreq);
90
91     /**
92      * Sets the base fequency in y direction.
93      * @param yfreq The new base fequency in y direction.
94      */

95     public void setBaseFrequencyY(double yfreq);
96
97     /**
98      * Sets the number of octaves for the noise function .
99      * @param numOctaves The new number of octaves for the noise function .
100      */

101     public void setNumOctaves(int numOctaves);
102
103     /**
104      * Sets stitching state for tiles.
105      * @param stitched true if the turbulence operator should stitch tiles.
106      */

107     public void setStitched(boolean stitched);
108
109     /**
110      * Turns on/off fractal noise.
111      * @param fractalNoise true if fractal noise should be used.
112      */

113     public void setFractalNoise(boolean fractalNoise);
114 }
115
116
117
Popular Tags