Revision 24449
trunk/libraries/libAnimationCommon/src/main/java/com/iver/cit/gvsig/animation/animationType/AnimationTransparency.java | ||
---|---|---|
20 | 20 |
package com.iver.cit.gvsig.animation.animationType; |
21 | 21 |
|
22 | 22 |
import com.iver.andami.PluginServices; |
23 |
|
|
23 | 24 |
import com.iver.andami.ui.mdiManager.IWindow; |
24 | 25 |
import com.iver.cit.gvsig.animation.IAnimationType; |
25 | 26 |
import com.iver.cit.gvsig.animation.animatedObject.AnimationObjectTransparency; |
... | ... | |
89 | 90 |
// System.err.println("antes: " + System.currentTimeMillis()); |
90 | 91 |
// long antes = System.currentTimeMillis(); |
91 | 92 |
|
92 |
layer.setTransparency(trans); |
|
93 |
layer.setDirty(true); |
|
93 |
layer.setTransparency(trans); |
|
94 | 94 |
layer.getMapContext().invalidate(); |
95 | 95 |
|
96 | 96 |
// System.err.println("despues: " + System.currentTimeMillis()); |
... | ... | |
128 | 128 |
if(window.getWindowInfo().getTitle().equals(this.titleWindow)){ |
129 | 129 |
BaseView newView = (BaseView)window; |
130 | 130 |
this.animationObjectTransparency.addAnimatedObject("view", newView); |
131 |
// this.animationObject3DFlat.setAnimatedView(newView); |
|
132 | 131 |
this.setAnimatedObject(this.animationObjectTransparency); |
133 | 132 |
IInterpolatorTimeFuntion funtion = FuntionFactory.createObject("com.iver.cit.gvsig.animation.keyframe.interpolator.LinearFuntion"); |
134 | 133 |
this.interpolator.setFuntion(funtion); |
... | ... | |
143 | 142 |
} |
144 | 143 |
|
145 | 144 |
public void setAnimatedObject(Object object) { |
146 |
//this.animationObjectTransparency = (AnimationObjectTransparency) object; |
|
147 | 145 |
this.animationObjectTransparency = (IAnimatedObject) object; |
148 | 146 |
} |
149 | 147 |
|
... | ... | |
186 | 184 |
objPersist.setXMLEntity(xmlInterpolator); |
187 | 185 |
this.interpolator = (IInterpolator) obj; |
188 | 186 |
this.setInterpolator(interpolator); |
189 |
//this.setAnimatedObject(); |
|
190 | 187 |
|
191 | 188 |
} catch (Exception e) { |
192 | 189 |
e.printStackTrace(); |
Also available in: Unified diff