public class JavascriptFunctionInterpolator extends com.google.gwt.core.client.JavaScriptObject implements Interpolator<Value>
This class is used by D3 to allow java code to invoke built-in
interpolators. You should not instanciate this object unless you know what
you are doing.
| Modifier | Constructor and Description |
|---|---|
protected |
JavascriptFunctionInterpolator() |
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.core.client.JavaScriptObject |
asJSOFunction()
Return a one-arg JS function wrapping the interpolation.
|
Value |
interpolate(double t)
Return the domain value corresponding to the parametric value t.
|
public final Value interpolate(double t)
Interpolatorinterpolate in interface Interpolator<Value>t - the parameterpublic final com.google.gwt.core.client.JavaScriptObject asJSOFunction()
Interpolator
Consider using CallableInterpolator for your own interpolation.
asJSOFunction in interface Interpolator<Value>Copyright © 2013 gwt-d3. All Rights Reserved.