![JAR search and dependency download from the Maven repository](/logo.png)
com.extjs.gxt.ui.client.fx.SingleStyleEffect Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gxt Show documentation
Show all versions of gxt Show documentation
Rich Internet Application Framework for GWT
/*
* Ext GWT - Ext for GWT
* Copyright(c) 2007, 2008, Ext JS, LLC.
* [email protected]
*
* http://extjs.com/license
*/
package com.extjs.gxt.ui.client.fx;
import com.extjs.gxt.ui.client.core.El;
public class SingleStyleEffect extends BaseEffect {
/**
* The css style be adjusted.
*/
public String style;
/**
* The start value.
*/
public double from;
/**
* The end value.
*/
public double to;
public SingleStyleEffect(El el) {
super(el);
}
public SingleStyleEffect(El el, String style, double from, double to) {
this(el);
this.style = style;
this.from = from;
this.to = to;
}
public void increase(double value) {
el.setStyleAttribute(style, value);
}
public void onUpdate(double progress) {
double v = (from + ((to - from) * progress));
increase(v);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy