T - the type to be interpolatedpublic abstract class CallableInterpolator<T> extends Object implements Interpolator<T>
This is useful when you want to create an implementation of Interpolator in Java that must be used in JSNI side.
| Constructor and Description |
|---|
CallableInterpolator() |
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.core.client.JavaScriptObject |
asJSOFunction()
Return a one-arg JS function wrapping the interpolation.
|
abstract T |
interpolate(double t)
Return the domain value corresponding to the parametric value t.
|
public abstract T interpolate(double t)
Interpolatorinterpolate in interface Interpolator<T>t - the parameterpublic final com.google.gwt.core.client.JavaScriptObject asJSOFunction()
Interpolator
Consider using CallableInterpolator for your own interpolation.
asJSOFunction in interface Interpolator<T>Copyright © 2015 gwt-d3. All rights reserved.