Class Elements


  • public class Elements
    extends Object
    Options can be configured for four different types of elements: arc, lines, points, and bars.
    When set, these options apply to the configuration attached to a dataset.
    Author:
    Andrea "Stock" Stocchero
    • Constructor Detail

      • Elements

        protected Elements​(ConfigurationOptions options)
        Builds the object storing the default root options.
        Parameters:
        options - default root options.
    • Method Detail

      • getPoint

        public Point getPoint()
        Returns the point element.
        Returns:
        the point element
      • getLine

        public Line getLine()
        Returns the line element.
        Returns:
        the line element
      • getArc

        public Arc getArc()
        Returns the arc element.
        Returns:
        the arc element
      • getBar

        public Bar getBar()
        Returns the bar element.
        Returns:
        the bar
      • getElement

        public <T extends NativeObjectContainer> T getElement​(ElementFactory<T> factory)
        Returns the options defined for a custom element.
        Type Parameters:
        T - type of the options
        Parameters:
        factory - factory instance to create the element
        Returns:
        the options instance defined for a custom element.
      • getOptions

        protected final ConfigurationOptions getOptions()
        Returns the configuration options.
        Returns:
        the configuration options.
      • getConfiguration

        protected final ExtendedOptions getConfiguration()
        Returns the configuration element.
        Returns:
        the configuration element.
      • getChart

        public final IsChart getChart()
        Returns the chart instance
        Returns:
        the chart