Revision 25870 trunk/libraries/libAnimationCommon/src/main/java/com/iver/cit/gvsig/animation/interpolator/InterpolatorTransparency.java
InterpolatorTransparency.java | ||
---|---|---|
32 | 32 |
|
33 | 33 |
|
34 | 34 |
/** |
35 |
* Class to interpolate the transparency of a activated layer. |
|
35 |
* @author ?ngel Fraile Gri??n e-mail: angel.fraile@iver.es |
|
36 |
* @since 1.1 |
|
37 |
* |
|
36 | 38 |
*/ |
37 |
|
|
38 | 39 |
public class InterpolatorTransparency implements IInterpolator { |
39 | 40 |
|
40 | 41 |
public BaseView view; |
... | ... | |
43 | 44 |
|
44 | 45 |
private AnimationObjectTransparency animationObjectTransparency = new AnimationObjectTransparency() ; |
45 | 46 |
|
47 |
/** |
|
48 |
* Class to interpolate the transparency of a activated layer. |
|
49 |
*/ |
|
46 | 50 |
public IKeyFrame interpolate(List<IKeyFrame> kfList, int index, double time) { |
47 | 51 |
KeyFrameTransparency KF = new KeyFrameTransparency(); |
48 | 52 |
|
... | ... | |
91 | 95 |
return KF; |
92 | 96 |
} |
93 | 97 |
|
94 |
|
|
98 |
/** |
|
99 |
* Return a value interpolate |
|
100 |
* |
|
101 |
* @param minX: initial x value in the 2D extent |
|
102 |
* @param minX2: final x value in the 2D extent |
|
103 |
* @param timePos: initial time value |
|
104 |
* @param timePos2: final time value |
|
105 |
* @param time: total time |
|
106 |
* @return |
|
107 |
*/ |
|
95 | 108 |
private double linearInterpolate(double minX, double minX2, double timePos, |
96 | 109 |
double timePos2, double time) { |
97 | 110 |
// P1 + (P2-P1)*((t-t1)/(t2-t1)) |
Also available in: Unified diff