public final class HIFunction
extends java.lang.Object
Constructor and Description |
---|
HIFunction(HIConsumer<HIChartContext> hiConsumer,
java.lang.String[] properties)
Constructor to use when creating an event with chart properties
|
HIFunction(HIFunctionInterface<HIChartContext,java.lang.String> function,
java.lang.String[] properties)
Constructor to use when returning a String with chart properties
|
HIFunction(java.lang.Runnable runnable)
Simple constructor to use when creating an event
|
HIFunction(java.lang.String jsFunction)
Use this constructor if you want to put pure Javascript code as a String.
|
public HIFunction(HIConsumer<HIChartContext> hiConsumer, java.lang.String[] properties)
hiConsumer
- a callback to be invoked when an attached option is clickedproperties
- properties to pull from the chart contextpublic HIFunction(HIFunctionInterface<HIChartContext,java.lang.String> function, java.lang.String[] properties)
function
- a callback to be invoked when an attached option is clickedproperties
- properties to pull from the chart contextpublic HIFunction(java.lang.Runnable runnable)
runnable
- a callback to be invoked when an attached option is clickedpublic HIFunction(java.lang.String jsFunction)
jsFunction
- example: function() { return "String representation"; }