public class JSNIInterpolatorFactory<O> extends com.google.gwt.core.client.JavaScriptObject implements InterpolatorFactory<O>
This class is used by D3
to allow java code to invoke built-in interpolator factories. You should not instanciate this object
unless you know what you are doing.
Modifier | Constructor and Description |
---|---|
protected |
JSNIInterpolatorFactory() |
Modifier and Type | Method and Description |
---|---|
com.google.gwt.core.client.JavaScriptObject |
asJSOFunction()
Return a one-arg JS function wrapping the interpolation.
|
<I> Interpolator<O> |
create(I a,
I b)
Create an interpolator appropriate for interpolating the input value, or return null if the factory does not support the two
specified input values.
|
<I> JavascriptFunctionInterpolator |
createInterpolator(I a,
I b) |
public final com.google.gwt.core.client.JavaScriptObject asJSOFunction()
InterpolatorFactory
Consider using CallableInterpolator
for your own interpolation.
asJSOFunction
in interface InterpolatorFactory<O>
public final <I> Interpolator<O> create(I a, I b)
InterpolatorFactory
create
in interface InterpolatorFactory<O>
a
- the start input paramb
- the end input parampublic final <I> JavascriptFunctionInterpolator createInterpolator(I a, I b)
Copyright © 2015 gwt-d3. All rights reserved.