Gephi Toolkit Javadoc

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 when getReducedValue is called

Author:
Eduardo Ramos
See Also:
Manipulator

Method Summary
 java.lang.Object getReducedValue()
          This method is always called after the strategy is set up and executed.
 void setup(Attributes[] rows, Attributes selectedRow, AttributeColumn 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(Attributes[] rows,
           Attributes selectedRow,
           AttributeColumn column)
Prepare column and rows for this merge strategy. At least 1 row will be set up to merge always.

Parameters:
rows - Rows to merge
selectedRow - Main row of the row group to merge
column - Column to merge

getReducedValue

java.lang.Object getReducedValue()
This method is always called after the strategy is set up and executed.

Returns:
Reduced value from all rows and the column

Gephi Toolkit Javadoc