Class AbstractDataPoint

    • Constructor Detail

      • AbstractDataPoint

        protected AbstractDataPoint​(NativeObject nativeObject)
        Creates the object with a native object passed as argument.
        Parameters:
        nativeObject - native object which maps a data point
    • Method Detail

      • setAttribute

        public final void setAttribute​(Key key,
                                       double value)
        Sets a custom field to data point.
        Parameters:
        key - key of java script object to set.
        value - value to set.
      • getAttribute

        public final double getAttribute​(Key key)
        Returns a custom field value from data point.
        Parameters:
        key - key of java script object to get.
        Returns:
        custom field value from data point.
      • setAttribute

        public final void setAttribute​(Key key,
                                       String value)
        Sets a custom field to data point.
        Parameters:
        key - key of java script object to set.
        value - value to set.
      • getAttributeAsString

        public final String getAttributeAsString​(Key key)
        Returns a custom field value from data point.
        Parameters:
        key - key of java script object to get.
        Returns:
        custom field value from data point.
      • setAttribute

        public final void setAttribute​(Key key,
                                       Date value)
        Sets a custom field to data point.
        Parameters:
        key - key of java script object to set.
        value - value to set.
      • getAttributeAsDate

        public final Date getAttributeAsDate​(Key key)
        Returns a custom field value from data point.
        Parameters:
        key - key of java script object to get.
        Returns:
        custom field value from data point.
      • setAttribute

        public final <T extends NativeObjectContainer> void setAttribute​(Key key,
                                                                         T value)
        Sets a custom field to data point.
        Type Parameters:
        T - type of user object
        Parameters:
        key - key of java script object to set.
        value - value to set.
      • getAttributeAsObject

        public final <T extends NativeObjectContainer> T getAttributeAsObject​(Key key,
                                                                              NativeObjectContainerFactory<T> factory)
        Returns a custom field value from data point.
        Type Parameters:
        T - type of user object
        Parameters:
        key - key of java script object to get.
        factory - instance of factory to create the native object
        Returns:
        custom field value from data point.