|
Gephi Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AttributeModel
Represents the data model, like a standard database would do. As a database, contains a list of tables, where columns are defined. By default, a model owns a node and edge table, but more could exist, depending of the model implementation.
The model also provides factories that are linked to this model. Use row
factory to build new rows and value factory to push new values to these
rows. Columns are manipulated from the AttributeTable
class.
AttributeController
Method Summary | |
---|---|
void |
addAttributeListener(AttributeListener listener)
Adds listener to the listeners of this table. |
AttributeTable |
getEdgeTable()
Returns the edge table. |
AttributeTable |
getNodeTable()
Returns the node table. |
AttributeTable |
getTable(java.lang.String name)
Returns the AttributeTable which has the given name
or null if this table doesn't exist. |
AttributeTable[] |
getTables()
Returns all tables this model contains. |
void |
mergeModel(AttributeModel model)
Merge model in this model. |
void |
removeAttributeListener(AttributeListener listener)
Removes listener to the listeners of this table. |
AttributeRowFactory |
rowFactory()
Returns the row factory. |
AttributeValueFactory |
valueFactory()
Return the value factory. |
Method Detail |
---|
AttributeTable getNodeTable()
An AttributeModel
has always node and edge
tables by default.
AttributeTable getEdgeTable()
An AttributeModel
has always node and edge
tables by default.
AttributeTable getTable(java.lang.String name)
AttributeTable
which has the given name
or null
if this table doesn't exist.
name
- the table's name
null
AttributeTable[] getTables()
AttributeValueFactory valueFactory()
AttributeRowFactory rowFactory()
void addAttributeListener(AttributeListener listener)
listener
to the listeners of this table. It receives
events when columns are added or removed, as well as when values are set.
listener
- the listener that is to be addedvoid removeAttributeListener(AttributeListener listener)
listener
to the listeners of this table.
listener
- the listener that is to be removedvoid mergeModel(AttributeModel model)
model
in this model. Makes the union of tables and
columns of both models. Copy tables this model don't
have and merge existing ones. For existing tables, call
AttributeTable.mergeTable(AttributeTable)
to merge columns.
Columns are compared according to their id
and type
.
Columns found in model
are appended only if they no column
exist with the same id
and type
.
model
- the model that is to be merged in this model
|
Gephi Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |