Class PluginEventArgument


  • public final class PluginEventArgument
    extends NativeObjectContainer
    This is a wrapper of java script object which represents a event.
    This object is used in the plugins methods of CHART.JS.
    Author:
    Andrea "Stock" Stocchero
    • Constructor Detail

      • PluginEventArgument

        public PluginEventArgument​(PluginsEnvelop<NativeObject> envelop)
        Creates the item using an envelop of the native java script object which contains all properties.
        Parameters:
        envelop - envelop of the native java script object which contains all properties.
    • Method Detail

      • getEventContext

        public ChartEventContext getEventContext()
        Returns the event context in the CHART.JS event.
        Returns:
        the native event in the CHART.JS event or null if doen't not exist.
      • isReplay

        public boolean isReplay()
        Returns true if this event is replayed from IsChart.update().
        Returns:
        true if this event is replayed from IsChart.update()
      • isInChartArea

        public boolean isInChartArea()
        Returns true if this event is in chart area.
        Returns:
        true if this event is in chart area
      • setChanged

        public void setChanged​(boolean changed)
        Set to true if the plugin needs a render.
        Parameters:
        changed - true if the plugin needs a render
      • isChanged

        public boolean isChanged()
        Returns true if the plugin needs a render.
        Returns:
        true if the plugin needs a render.