Revision 25870
trunk/libraries/libAnimationCommon/src/main/java/com/iver/cit/gvsig/animation/animationType/AnimationTypeFactoryTransparency.java | ||
---|---|---|
21 | 21 |
|
22 | 22 |
import com.iver.cit.gvsig.animation.AnimationFactory; |
23 | 23 |
|
24 |
|
|
24 |
/** |
|
25 |
* @author ?ngel Fraile Gri??n e-mail: angel.fraile@iver.es |
|
26 |
* @since 1.1 |
|
27 |
* |
|
28 |
*/ |
|
25 | 29 |
public class AnimationTypeFactoryTransparency extends AnimationFactory { |
26 | 30 |
|
27 | 31 |
public static String registerName = "AnimationTransparency"; |
trunk/libraries/libAnimationCommon/src/main/java/com/iver/cit/gvsig/animation/animationType/AnimationKeyFrameTransparencyFactory.java | ||
---|---|---|
22 | 22 |
import com.iver.cit.gvsig.animation.AnimationFactory; |
23 | 23 |
import com.iver.cit.gvsig.animation.keyFrame.KeyFrameTransparency; |
24 | 24 |
|
25 |
|
|
25 |
/** |
|
26 |
* @author ?ngel Fraile Gri??n e-mail: angel.fraile@iver.es |
|
27 |
* @since 1.1 |
|
28 |
* |
|
29 |
*/ |
|
26 | 30 |
public class AnimationKeyFrameTransparencyFactory extends AnimationFactory { |
27 | 31 |
|
28 | 32 |
public static String registerName = "KeyFrameTransparency"; |
trunk/libraries/libAnimationCommon/src/main/java/com/iver/cit/gvsig/animation/animationType/AnimationTransparency.java | ||
---|---|---|
36 | 36 |
import com.iver.utiles.XMLEntity; |
37 | 37 |
|
38 | 38 |
|
39 |
/** |
|
40 |
* @author ?ngel Fraile Gri??n e-mail: angel.fraile@iver.es |
|
41 |
* @since 1.1 |
|
42 |
* |
|
43 |
*/ |
|
39 | 44 |
public class AnimationTransparency implements IAnimationTypeKeyFrame { |
40 | 45 |
|
41 | 46 |
private String description = "Animacion basada en Transparencias"; |
... | ... | |
115 | 120 |
this.interpolator = interpolator; |
116 | 121 |
} |
117 | 122 |
|
123 |
/** |
|
124 |
* Getting the animated object, in movement track animation; the view |
|
125 |
*/ |
|
118 | 126 |
public Object getAnimatedObject() { |
119 | 127 |
if(this.animationObjectTransparency != null){ |
120 | 128 |
// getting all views. |
trunk/libraries/libAnimationCommon/src/main/java/com/iver/cit/gvsig/animation/interpolator/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)) |
trunk/libraries/libAnimationCommon/src/main/java/com/iver/cit/gvsig/animation/keyFrame/AnimationKeyFrameTransparencyFactory.java | ||
---|---|---|
21 | 21 |
|
22 | 22 |
import com.iver.cit.gvsig.animation.AnimationFactory; |
23 | 23 |
|
24 |
|
|
24 |
/** |
|
25 |
* @author ?ngel Fraile Gri??n e-mail: angel.fraile@iver.es |
|
26 |
* @since 1.1 |
|
27 |
* |
|
28 |
*/ |
|
25 | 29 |
public class AnimationKeyFrameTransparencyFactory extends AnimationFactory { |
26 | 30 |
|
27 | 31 |
public static String registerName = "KeyFrameTransparency"; |
... | ... | |
36 | 40 |
} |
37 | 41 |
|
38 | 42 |
/** |
39 |
* Registers in the points of extension the Factory with alias. |
|
43 |
* Registers in the points of extension the Factory with an alias.
|
|
40 | 44 |
*/ |
41 | 45 |
public static void register() { |
42 | 46 |
register(registerName, new AnimationKeyFrameTransparencyFactory(), "com.iver.cit.gvsig.animation.KeyFrameTransparency"); |
trunk/libraries/libAnimationCommon/src/main/java/com/iver/cit/gvsig/animation/keyFrame/KeyFrameTransparency.java | ||
---|---|---|
27 | 27 |
|
28 | 28 |
|
29 | 29 |
/** |
30 |
* |
|
31 |
* @author ?ngel. |
|
32 |
* |
|
33 |
* Class to create a keyframe used in animation with transparency. |
|
34 |
* |
|
30 |
* @author ?ngel Fraile Gri??n e-mail: angel.fraile@iver.es |
|
31 |
* @since 1.1 |
|
32 |
* * Class to create a keyframe used in animation with transparency. |
|
35 | 33 |
*/ |
36 | 34 |
|
37 | 35 |
public class KeyFrameTransparency implements IKeyFrame { |
trunk/libraries/libAnimationCommon/src/main/java/com/iver/cit/gvsig/animation/animatedObject/AnimationObjectTransparency.java | ||
---|---|---|
21 | 21 |
|
22 | 22 |
import com.iver.cit.gvsig.fmap.layers.FLyrDefault; |
23 | 23 |
|
24 |
/** |
|
25 |
* @author ?ngel Fraile Gri??n e-mail: angel.fraile@iver.es |
|
26 |
* @since 1.1 |
|
27 |
* |
|
28 |
*/ |
|
24 | 29 |
public class AnimationObjectTransparency extends AnimatedObjectBase{ |
25 | 30 |
|
26 | 31 |
private String nameLayer; |
Also available in: Unified diff