Class NativeInteraction
- java.lang.Object
-
- org.pepstock.charba.client.interaction.NativeInteraction
-
- All Implemented Interfaces:
IsJSType
@JsType(isNative=true, name="Function", namespace="<global>") public final class NativeInteraction extends Object implements IsJSTypeEnables the capability to create custom interaction directly in java script language.
This could be helpful when for performance reason, you don't want to wraps all objects.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ArrayObjectcall(Chart chart, NativeObject event, NativeObject options, boolean useFinalPosition)Method of function to be called to invoke a custom interactioner.static NativeInteractioncreate(String code)Creates a custom interaction in java script.StringtoSource()Returns a string representing the source code of the function.
-
-
-
Method Detail
-
create
@JsOverlay public static NativeInteraction create(String code)
Creates a custom interaction in java script.- Parameters:
code- the code of the custom interaction to execute- Returns:
- a custom interaction in java script
-
call
@JsOverlay public ArrayObject call(Chart chart, NativeObject event, NativeObject options, boolean useFinalPosition)
Method of function to be called to invoke a custom interactioner.- Parameters:
chart- the chart we are returning items fromevent- the event we are find things atoptions- options to useuseFinalPosition- use final element position (animation target)- Returns:
- items that are found
-
toSource
@JsMethod(name="toString") public String toSource()
Returns a string representing the source code of the function.- Returns:
- a string representing the source code of the function
-
-