|
Gephi Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 |
---|
int countValues()
java.lang.Object getValue(java.lang.String column)
column
- the column id or title
null
if not foundjava.lang.Object getValue(int index)
index
- the column index
null
if index out of rangevoid setValue(java.lang.String column, java.lang.Object value)
null
values.
column
- the column id or titlevalue
- the value that is to be set at the specified column positionvoid setValue(int index, java.lang.Object value)
null
values.
index
- the column indexvalue
- the value that is to be set at the specified column positionvoid reset()
|
Gephi Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |