|
Gephi Toolkit Javadoc | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Item
An item is a visual element built by an ItemBuilder and later used
by a Renderer to be displayed.
An item simply stores the reference to the original object (e.g. node, edge) and
all the information useful for the Renderer like the color, size or
position.
All items can be retrieved from the PreviewModel.
| Field Summary | |
|---|---|
static java.lang.String |
EDGE
|
static java.lang.String |
EDGE_LABEL
|
static java.lang.String |
NODE
|
static java.lang.String |
NODE_LABEL
|
| Method Summary | ||
|---|---|---|
|
getData(java.lang.String key)
Returns data associated to this item. |
|
java.lang.String[] |
getKeys()
Returns all the keys. |
|
java.lang.Object |
getSource()
Returns the source of the item. |
|
java.lang.String |
getType()
Returns the type of the item. |
|
void |
setData(java.lang.String key,
java.lang.Object value)
Sets data to this item. |
|
| Field Detail |
|---|
static final java.lang.String NODE
static final java.lang.String EDGE
static final java.lang.String NODE_LABEL
static final java.lang.String EDGE_LABEL
| Method Detail |
|---|
java.lang.Object getSource()
Node or Edge.
java.lang.String getType()
Item.NODE,
Item.EDGE, Item.NODE_LABEL and Item.EDGE_LABEL.
<D> D getData(java.lang.String key)
D - the type of the datakey - the key
key, or null if
not exist
void setData(java.lang.String key,
java.lang.Object value)
key - the keyvalue - the value to be associated with keyjava.lang.String[] getKeys()
|
Gephi Toolkit Javadoc | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||