Class ChartEventContext

    • Constructor Detail

      • ChartEventContext

        public ChartEventContext​(IsChart chart,
                                 Chart nativeChart)
        Creates the object with the chart instance, creating a change native event.
        Parameters:
        chart - chart instance.
        nativeChart - native chart instance.
      • ChartEventContext

        public ChartEventContext​(IsChart chart,
                                 NativeAbstractMouseEvent event)
        Creates the object with the chart instance, creating a change native event.
        Parameters:
        chart - chart instance to store in the object
        event - native event instance to store in the object
      • ChartEventContext

        public ChartEventContext​(ConfigurationEnvelop<NativeObject> envelop)
        Creates the object with envelop envelop with the native object instance to be wrapped.
        Parameters:
        envelop - envelop with the native object instance to be wrapped.
      • ChartEventContext

        public ChartEventContext​(ItemsEnvelop<NativeObject> envelop)
        Creates the object with envelop envelop with the native object instance to be wrapped.
        Parameters:
        envelop - envelop with the native object instance to be wrapped.
      • ChartEventContext

        public ChartEventContext​(InteractionEnvelop<NativeObject> envelop)
        Creates the object with envelop envelop with the native object instance to be wrapped.
        Parameters:
        envelop - envelop with the native object instance to be wrapped.
      • ChartEventContext

        public ChartEventContext​(AnnotationEnvelop<NativeObject> envelop)
        Creates the object with envelop envelop with the native object instance to be wrapped.
        Parameters:
        envelop - envelop with the native object instance to be wrapped.
      • ChartEventContext

        public ChartEventContext​(DataLabelsEnvelop<NativeObject> envelop)
        Creates the object with envelop envelop with the native object instance to be wrapped.
        Parameters:
        envelop - envelop with the native object instance to be wrapped.
    • Method Detail

      • getNativeChart

        public Chart getNativeChart()
        Returns the CHARBA chart instance.
        Returns:
        the CHARBA chart instance
      • getChart

        public IsChart getChart()
        Returns the CHARBA chart instance.
        Returns:
        the CHARBA chart instance
      • getX

        public double getX()
        Returns the X location of event in pixel.
        Specified by:
        getX in interface IsPoint
        Returns:
        the X location of event in pixel.
      • getY

        public double getY()
        Returns the Y location of event in pixel.
        Specified by:
        getY in interface IsPoint
        Returns:
        the Y location of event in pixel.
      • getType

        public String getType()
        Returns the type of the event.
        Returns:
        the type of the event
      • nativeObject

        public NativeObject nativeObject()
        Wraps the protected method to get the java script object in order to consume it.
        Returns:
        the java script object in order to consume it.