Package org.gephi.datalab.spi.rows.merge
Interface AttributeRowsMergeStrategy
-
- All Superinterfaces:
Manipulator
public interface AttributeRowsMergeStrategy extends Manipulator
Service for defining strategies for merging a column of rows of a table.
Has the same interface as a manipulator.
When a
RowsMergeStrategy
is executed it must reduce all values to one that should be returned later whengetReducedValue
is called- Author:
- Eduardo Ramos
- See Also:
Manipulator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
getReducedValue()
This method is always called after the strategy is set up and executed.void
setup(Element[] rows, Element selectedRow, Column column)
Prepare column and rows for this merge strategy.-
Methods inherited from interface org.gephi.datalab.spi.Manipulator
canExecute, execute, getDescription, getIcon, getName, getPosition, getType, getUI
-
-
-
-
Method Detail
-
setup
void setup(Element[] rows, Element selectedRow, Column column)
Prepare column and rows for this merge strategy. At least 1 row will be set up to merge always.- Parameters:
rows
- Rows to mergeselectedRow
- Main row of the row group to mergecolumn
- Column to merge
-
getReducedValue
Object getReducedValue()
This method is always called after the strategy is set up and executed.- Returns:
- Reduced value from all rows and the column
-
-