Class Elements

  • All Implemented Interfaces:
    IsDefaultElements

    public final class Elements
    extends AbstractModel<Options,​IsDefaultElements>
    implements IsDefaultElements
    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
    • Method Detail

      • getArc

        public Arc getArc()
        Returns the arc element.
        Specified by:
        getArc in interface IsDefaultElements
        Returns:
        the arc element
      • getLine

        public Line getLine()
        Returns the line element.
        Specified by:
        getLine in interface IsDefaultElements
        Returns:
        the line element
      • getBar

        public Bar getBar()
        Returns the bar element.
        Specified by:
        getBar in interface IsDefaultElements
        Returns:
        the bar element
      • 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.