Class DataLaboratoryHelper
- java.lang.Object
-
- org.gephi.datalab.api.DataLaboratoryHelper
-
public class DataLaboratoryHelper extends Object
Helper class for simplifying the use of Data Laboratory API and SPI.
-
-
Constructor Summary
Constructors Constructor Description DataLaboratoryHelper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.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.AttributeColumnsManipulator
getAttributeColumnsManipulatorByName(String name)
Returns the AttributeColumnsMergeStrategy with that class name or null if it does not existAttributeColumnsManipulator[]
getAttributeColumnsManipulators()
Prepares an array that has one instance of every AttributeColumnsManipulator implementation that has a builder registered and returns it.AttributeColumnsMergeStrategy[]
getAttributeColumnsMergeStrategies()
Prepares an array that has one new instance of every AttributeColumnsMergeStrategy implementation that is registered.AttributeColumnsMergeStrategy
getAttributeColumnsMergeStrategyByName(String name)
Returns the AttributeColumnsMergeStrategy with that class name or null if it does not existAttributeRowsMergeStrategy[]
getAttributeRowsMergeStrategies()
Prepares an array that has one new instance of every AttributeRowsMergeStrategy implementation that is registered.AttributeRowsMergeStrategy
getAttributeRowsMergeStrategyByName(String name)
Returns the AttributeRowsMergeStrategy with that class name or null if it does not existAttributeValueManipulator
getAttributeValueManipulatorByName(String name)
Returns the AttributeColumnsMergeStrategy with that class name or null if it does not existAttributeValueManipulator[]
getAttributeValueManipulators()
Prepares an array with one new instance of every AttributeValueManipulator that has a builder registered and returns it.static DataLaboratoryHelper
getDefault()
EdgesManipulator
getEdgesManipulatorByName(String name)
Returns the AttributeColumnsMergeStrategy with that class name or null if it does not existEdgesManipulator[]
getEdgesManipulators()
Prepares an array with one new instance of every EdgesManipulator that has a builder registered and returns it.GeneralActionsManipulator
getGeneralActionsManipulatorByName(String name)
Returns the AttributeColumnsMergeStrategy with that class name or null if it does not existGeneralActionsManipulator[]
getGeneralActionsManipulators()
Prepares an array with one instance of every GeneralActionsManipulator that is registered.NodesManipulator
getNodesManipulatorByName(String name)
Returns the AttributeColumnsMergeStrategy with that class name or null if it does not existNodesManipulator[]
getNodesManipulators()
Prepares an array with one new instance of every NodesManipulator that has a builder registered and returns it.PluginGeneralActionsManipulator
getPluginGeneralActionsManipulatorByName(String name)
Returns the AttributeColumnsMergeStrategy with that class name or null if it does not existPluginGeneralActionsManipulator[]
getPluginGeneralActionsManipulators()
Prepares an array with one instance of every PluginGeneralActionsManipulator that is registered.boolean
showAttributeRowsMergeStrategyUIDialog(AttributeRowsMergeStrategy m)
This method shows the UI of an AttributeRowsMergeStrategy if it is provided and the AttributeRowsMergeStrategy can be executed.
-
-
-
Method Detail
-
getDefault
public static DataLaboratoryHelper getDefault()
-
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
- AttributeColumnsManipulatorgraphModel
- Graph model of the tabletable
- Table of the columncolumn
- 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
-
-