|
Gephi Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GraphEvent
Graph event interface, that GraphListener
receives when the graph is
modified. Each event is specific to a particular view, which can be get
from the getSource()
method.
- ADD_NODES: | Add nodes to the graph |
- REMOVE_NODES: | Remove nodes from the graph, with their edges |
- ADD_EDGES: | Add edges to the graph |
- REMOVE_EDGES: | Remove edges from the graph |
- MOVE_NODE: | Move nodes on the hierarchy, parent node is changed |
- VISIBLE_VIEW: | Current visible view is changed |
- NEW_VIEW: | A new view is created |
- DESTROY_VIEW: | A view is destroyed |
- EXPAND: | Expand nodes in the hierarchy |
- RETRACT: | Retract nodes in the hierarchy |
- META_EDGES_UPDATE | Meta-Edges are updated |
GraphView
Nested Class Summary | |
---|---|
static class |
GraphEvent.EventType
- ADD_NODES:Add nodes to the graph - REMOVE_NODES:Remove nodes from the graph, with their edges - ADD_EDGES:Add edges to the graph - REMOVE_EDGES:Remove edges from the graph - MOVE_NODE:Move nodes on the hierarchy, parent node is changed - VISIBLE_VIEW:Current visible view is changed - NEW_VIEW:A new view is created - DESTROY_VIEW:A view is destroyed - EXPAND:Expand nodes in the hierarchy - RETRACT:Retract nodes in the hierarchy - META_EDGES_UPDATEMeta-Edges are updated |
Method Summary | |
---|---|
GraphEventData |
getData()
Returns the data associated to this event. |
GraphEvent.EventType |
getEventType()
Returns the type of event. |
GraphView |
getSource()
Returns the view this event is triggered. |
boolean |
is(GraphEvent.EventType... type)
Returns true if this event is one of these in parameters. |
Method Detail |
---|
GraphEvent.EventType getEventType()
null
GraphEventData getData()
GraphView getSource()
boolean is(GraphEvent.EventType... type)
true
if this event is one of these in parameters.
type
- the event types that are to be compared with this event
true
if this event is type
,
false
otherwise
|
Gephi Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |