Gephi Toolkit Javadoc

org.gephi.graph.api
Interface Attributes

All Known Subinterfaces:
AttributeRow

public interface Attributes

Get and set any object to this attributes class. See AttributesAPI module to look at columns definition. This interface is extended by AttributeRow that one can find in the AttributesAPI. Cast this class to AttributeRow to profit from all features.

In few words, attribute values can be get with the column index or id.

Author:
Mathieu Bastian

Method Summary
 int countValues()
          Returns the number of values this row has.
 java.lang.Object getValue(int index)
          Returns the value located at the specified column position.
 java.lang.Object getValue(java.lang.String column)
          Returns the value located at the specified column.
 void reset()
          Resets the content of the row.
 void setValue(int index, java.lang.Object value)
          Sets the value for a specified column position.
 void setValue(java.lang.String column, java.lang.Object value)
          Sets the value for a specified column.
 

Method Detail

countValues

int countValues()
Returns the number of values this row has.

Returns:
the number of values

getValue

java.lang.Object getValue(java.lang.String column)
Returns the value located at the specified column.

Parameters:
column - the column id or title
Returns:
the value for the specified column position, or null if not found

getValue

java.lang.Object getValue(int index)
Returns the value located at the specified column position.

Parameters:
index - the column index
Returns:
the value for the specified column position, or null if index out of range

setValue

void setValue(java.lang.String column,
              java.lang.Object value)
Sets the value for a specified column. Accepts null values.

Parameters:
column - the column id or title
value - the value that is to be set at the specified column position

setValue

void setValue(int index,
              java.lang.Object value)
Sets the value for a specified column position. Accepts null values.

Parameters:
index - the column index
value - the value that is to be set at the specified column position

reset

void reset()
Resets the content of the row.


Gephi Toolkit Javadoc