Class DataLaboratoryHelper


  • public class DataLaboratoryHelper
    extends Object
    Helper class for simplifying the use of Data Laboratory API and SPI.
    • Constructor Detail

      • DataLaboratoryHelper

        public DataLaboratoryHelper()
    • Method Detail

      • getNodesManipulators

        public NodesManipulator[] getNodesManipulators()

        Prepares an array with one new instance of every NodesManipulator that has a builder registered and returns it.

        It also returns the manipulators ordered first by type and then by position.

        Returns:
        Array of all NodesManipulator implementations
      • getEdgesManipulators

        public EdgesManipulator[] getEdgesManipulators()

        Prepares an array with one new instance of every EdgesManipulator that has a builder registered and returns it.

        It also returns the manipulators ordered first by type and then by position.

        Returns:
        Array of all EdgesManipulator implementations
      • getGeneralActionsManipulators

        public GeneralActionsManipulator[] getGeneralActionsManipulators()

        Prepares an array with one instance of every GeneralActionsManipulator that is registered.

        It also returns the manipulators ordered first by type and then by position.

        Returns:
        Array of all GeneralActionsManipulator implementations
      • getPluginGeneralActionsManipulators

        public PluginGeneralActionsManipulator[] getPluginGeneralActionsManipulators()

        Prepares an array with one instance of every PluginGeneralActionsManipulator that is registered.

        It also returns the manipulators ordered first by type and then by position.

        Returns:
        Array of all PluginGeneralActionsManipulator implementations
      • getAttributeColumnsManipulators

        public AttributeColumnsManipulator[] getAttributeColumnsManipulators()

        Prepares an array that has one instance of every AttributeColumnsManipulator implementation that has a builder registered and returns it.

        It also returns the manipulators ordered first by type and then by position.

        Returns:
        Array of all AttributeColumnsManipulator implementations
      • getAttributeValueManipulators

        public AttributeValueManipulator[] getAttributeValueManipulators()

        Prepares an array with one new instance of every AttributeValueManipulator that has a builder registered and returns it.

        It also returns the manipulators ordered first by type and then by position.

        Returns:
        Array of all AttributeValueManipulator implementations
      • getAttributeColumnsMergeStrategies

        public AttributeColumnsMergeStrategy[] getAttributeColumnsMergeStrategies()

        Prepares an array that has one new instance of every AttributeColumnsMergeStrategy implementation that is registered.

        It also returns the manipulators ordered first by type and then by position.

        Returns:
        Array of all AttributeColumnsMergeStrategy implementations
      • getAttributeRowsMergeStrategies

        public AttributeRowsMergeStrategy[] getAttributeRowsMergeStrategies()

        Prepares an array that has one new instance of every AttributeRowsMergeStrategy implementation that is registered.

        It also returns the manipulators ordered first by type and then by position.

        Returns:
        Array of all AttributeRowsMergeStrategy implementations
      • executeManipulator

        public void executeManipulator​(Manipulator m)
        Prepares the dialog UI of a manipulator if it has one and executes the manipulator in a separate Thread when the dialog is accepted or directly if there is no UI.
        Parameters:
        m - Manipulator to execute
      • showAttributeRowsMergeStrategyUIDialog

        public boolean showAttributeRowsMergeStrategyUIDialog​(AttributeRowsMergeStrategy m)
        This method shows the UI of an AttributeRowsMergeStrategy if it is provided and the AttributeRowsMergeStrategy can be executed. These UI only configures (calls unSetup) the AttributeRowsMergeStrategy if the dialog is accepted, and it does not execute the AttributeRowsMergeStrategy.
        Parameters:
        m - AttributeRowsMergeStrategy
        Returns:
        True if the AttributeRowsMergeStrategy UI is provided
      • executeAttributeColumnsManipulator

        public void executeAttributeColumnsManipulator​(AttributeColumnsManipulator m,
                                                       GraphModel graphModel,
                                                       Table table,
                                                       Column column)
        Prepares the dialog UI of a AttributeColumnsManipulator if it has one and executes the manipulator in a separate Thread when the dialog is accepted or directly if there is no UI.
        Parameters:
        m - AttributeColumnsManipulator
        graphModel - Graph model of the table
        table - Table of the column
        column - Column to manipulate
      • getNodesManipulatorByName

        public NodesManipulator getNodesManipulatorByName​(String name)
        Returns the AttributeColumnsMergeStrategy with that class name or null if it does not exist
      • getEdgesManipulatorByName

        public EdgesManipulator getEdgesManipulatorByName​(String name)
        Returns the AttributeColumnsMergeStrategy with that class name or null if it does not exist
      • getGeneralActionsManipulatorByName

        public GeneralActionsManipulator getGeneralActionsManipulatorByName​(String name)
        Returns the AttributeColumnsMergeStrategy with that class name or null if it does not exist
      • getPluginGeneralActionsManipulatorByName

        public PluginGeneralActionsManipulator getPluginGeneralActionsManipulatorByName​(String name)
        Returns the AttributeColumnsMergeStrategy with that class name or null if it does not exist
      • getAttributeColumnsManipulatorByName

        public AttributeColumnsManipulator getAttributeColumnsManipulatorByName​(String name)
        Returns the AttributeColumnsMergeStrategy with that class name or null if it does not exist
      • getAttributeValueManipulatorByName

        public AttributeValueManipulator getAttributeValueManipulatorByName​(String name)
        Returns the AttributeColumnsMergeStrategy with that class name or null if it does not exist
      • getAttributeColumnsMergeStrategyByName

        public AttributeColumnsMergeStrategy getAttributeColumnsMergeStrategyByName​(String name)
        Returns the AttributeColumnsMergeStrategy with that class name or null if it does not exist
      • getAttributeRowsMergeStrategyByName

        public AttributeRowsMergeStrategy getAttributeRowsMergeStrategyByName​(String name)
        Returns the AttributeRowsMergeStrategy with that class name or null if it does not exist