Class ExtendedOptions

    • Constructor Detail

      • ExtendedOptions

        public ExtendedOptions​(IsChart chart,
                               IsDefaultScaledOptions defaultValues,
                               ConfigurationEnvelop<NativeObject> envelop)
        Creates an options with default provider.
        Parameters:
        chart - chart instance
        defaultValues - default provider.
        envelop - the envelop for options as native options
      • ExtendedOptions

        public ExtendedOptions​(IsChart chart,
                               IsDefaultScaledOptions defaultValues,
                               ChartEnvelop<NativeObject> envelop)
        Creates an options with default provider.
        Parameters:
        chart - chart instance
        defaultValues - default provider
        envelop - the envelop for options as native options
    • Method Detail

      • getChart

        public IsChart getChart()
        Returns the chart instance which is using the options.
        Returns:
        the chart instance which is using the options
      • setCharbaId

        public void setCharbaId​(String id)
        Sets the CHARBA id when new chart instance is created.
        Parameters:
        id - CHARBA id.
      • getSegment

        public Segment getSegment()
        Returns the segment configuration for LineOptions.
        Line segment styles can be overridden by scriptable options in the segment object..
        Returns:
        the segment configuration for LineOptions
      • setCallback

        public void setCallback​(ConfigurationEnvelop<AbstractNode> envelop,
                                Key property,
                                CallbackProxy.Proxy proxy)
        Adds a callback proxy function to a element node instance.
        Parameters:
        envelop - contains the element node to update
        property - property name
        proxy - the function proxy to activate
      • setCallback

        public void setCallback​(ConfigurationEnvelop<AbstractNode> envelop,
                                Key property,
                                NativeCallback callback)
        Adds a native callback function to a element node instance.
        Parameters:
        envelop - contains the element node to update
        property - property name
        callback - the function callback to activate
      • setEvent

        public void setEvent​(AbstractNode node,
                             Key property,
                             ConfigurationEnvelop<CallbackProxy.Proxy> envelop)
        Adds a event proxy function to animation element instance.
        Parameters:
        node - options node element instance.
        property - property name.
        envelop - contains the function proxy to activate.
      • getRemappedOptions

        public final <T extends NativeObjectContainer> T getRemappedOptions​(ControllerMapperFactory<T> factory)
        Returns the options, mapped with a custom object, used for controllers to map the options.
        It uses a factory instance to create a customized options.
        If factory argument is not consistent, null is returned.
        Type Parameters:
        T - type of customized options to return
        Parameters:
        factory - factory instance to create a customized options
        Returns:
        customized options.
        If factory argument is not consistent, null is returned.