Package org.graphstream.stream.file.gexf
Class GEXFNodes
java.lang.Object
org.graphstream.stream.SinkAdapter
org.graphstream.stream.file.gexf.GEXFNodes
- All Implemented Interfaces:
AttributeSink,ElementSink,GEXFElement,Sink
public class GEXFNodes extends SinkAdapter implements GEXFElement
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.graphstream.stream.file.gexf.GEXFElement
GEXFElement.AttrType, GEXFElement.ClassType, GEXFElement.DefaultEdgeType, GEXFElement.Extension, GEXFElement.IDType, GEXFElement.Mode, GEXFElement.TimeFormat -
Constructor Summary
-
Method Summary
Modifier and Type Method Description voidexport(SmartXMLWriter stream)voidgraphCleared(String sourceId, long timeId)The whole graph was cleared.voidnodeAdded(String sourceId, long timeId, String nodeId)A node was inserted in the given graph.voidnodeAttributeAdded(String sourceId, long timeId, String nodeId, String attribute, Object value)A node attribute was added.voidnodeAttributeChanged(String sourceId, long timeId, String nodeId, String attribute, Object oldValue, Object newValue)A node attribute was changed.voidnodeAttributeRemoved(String sourceId, long timeId, String nodeId, String attribute)A node attribute was removed.voidnodeRemoved(String sourceId, long timeId, String nodeId)A node was removed from the graph.Methods inherited from class org.graphstream.stream.SinkAdapter
edgeAdded, edgeAttributeAdded, edgeAttributeChanged, edgeAttributeRemoved, edgeRemoved, graphAttributeAdded, graphAttributeChanged, graphAttributeRemoved, stepBegins
-
Constructor Details
-
Method Details
-
export
- Specified by:
exportin interfaceGEXFElement- Throws:
XMLStreamException
-
nodeAdded
Description copied from interface:ElementSinkA node was inserted in the given graph.- Specified by:
nodeAddedin interfaceElementSink- Overrides:
nodeAddedin classSinkAdapter- Parameters:
sourceId- Identifier of the graph where the node was added.nodeId- Identifier of the added node.
-
nodeRemoved
Description copied from interface:ElementSinkA node was removed from the graph.- Specified by:
nodeRemovedin interfaceElementSink- Overrides:
nodeRemovedin classSinkAdapter- Parameters:
sourceId- Identifier of the graph where the node will be removed.nodeId- Identifier of the removed node.
-
nodeAttributeAdded
public void nodeAttributeAdded(String sourceId, long timeId, String nodeId, String attribute, Object value)Description copied from interface:AttributeSinkA node attribute was added.- Specified by:
nodeAttributeAddedin interfaceAttributeSink- Overrides:
nodeAttributeAddedin classSinkAdapter- Parameters:
sourceId- Identifier of the graph where the change occurred.nodeId- Identifier of the node whose attribute changed.attribute- The attribute name.value- The attribute new value.
-
nodeAttributeChanged
public void nodeAttributeChanged(String sourceId, long timeId, String nodeId, String attribute, Object oldValue, Object newValue)Description copied from interface:AttributeSinkA node attribute was changed.- Specified by:
nodeAttributeChangedin interfaceAttributeSink- Overrides:
nodeAttributeChangedin classSinkAdapter- Parameters:
sourceId- Identifier of the graph where the change occurred.nodeId- Identifier of the node whose attribute changed.attribute- The attribute name.oldValue- The attribute old value.newValue- The attribute new value.
-
nodeAttributeRemoved
Description copied from interface:AttributeSinkA node attribute was removed.- Specified by:
nodeAttributeRemovedin interfaceAttributeSink- Overrides:
nodeAttributeRemovedin classSinkAdapter- Parameters:
sourceId- Identifier of the graph where the attribute was removed.nodeId- Identifier of the node whose attribute was removed.attribute- The removed attribute name.
-
graphCleared
Description copied from interface:ElementSinkThe whole graph was cleared. All the nodes, edges and attributes of the graph are removed.- Specified by:
graphClearedin interfaceElementSink- Overrides:
graphClearedin classSinkAdapter- Parameters:
sourceId- The graph cleared.
-