Class ChartElementFactories


  • public final class ChartElementFactories
    extends Object
    Utility which is registering all ChartElementFactory for element type.
    Author:
    Andrea "Stock" Stocchero
    • Method Detail

      • get

        public static ChartElementFactories get()
        Returns the singleton instance.
        Returns:
        the singleton instance
      • register

        public boolean register​(ChartElementFactory factory)
        Registers the factory. It ignores if the factory is already registered.
        Parameters:
        factory - factory instance to register
        Returns:
        true if the factory has been registered otherwise false
      • getFactory

        public ChartElementFactory getFactory​(DatasetItem item)
        Returns the factory related to the dataset item.
        Parameters:
        item - the dataset item to use for searching the related factory
        Returns:
        the factory related to the dataset item
      • getFactory

        public ChartElementFactory getFactory​(String type)
        Returns the factory related to the element type.
        Parameters:
        type - the element type to use for searching the related factory
        Returns:
        the factory related to the element type