KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > batik > ext > awt > image > ComponentTransferFunction


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;
19
20 /**
21  * Defines the interface expected from a component
22  * transfer function.
23  *
24  * @author <a HREF="mailto:vincent.hardy@eng.sun.com">Vincent Hardy</a>
25  * @version $Id: ComponentTransferFunction.java,v 1.3 2004/08/18 07:13:48 vhardy Exp $
26  */

27 public interface ComponentTransferFunction {
28     /**
29      * The various transfer types
30      */

31     public static final int IDENTITY = 0;
32     public static final int TABLE = 1;
33     public static final int DISCRETE = 2;
34     public static final int LINEAR = 3;
35     public static final int GAMMA = 4;
36
37     /**
38      * Returns the type of this transfer function
39      */

40     public int getType();
41
42     /**
43      * Returns the slope value for this transfer function
44      */

45     public float getSlope();
46
47     /**
48      * Returns the table values for this transfer function
49      */

50     public float[] getTableValues();
51
52     /**
53      * Returns the intercept value for this transfer function
54      */

55     public float getIntercept();
56
57     /**
58      * Returns the amplitude value for this transfer function
59      */

60     public float getAmplitude();
61
62     /**
63      * Returns the exponent value for this transfer function
64      */

65     public float getExponent();
66
67     /**
68      * Returns the offset value for this transfer function
69      */

70     public float getOffset();
71 }
72
73
Popular Tags