Overview Package Class Tree Deprecated Index Help
PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

diva.graph.toolbox
Class GraphLogger

java.lang.Object
 extended bydiva.graph.toolbox.GraphLogger
All Implemented Interfaces:
java.util.EventListener, GraphListener

public class GraphLogger
extends java.lang.Object
implements GraphListener

A logger of graph events. Every event that is sent to this logger is stored in a log which can then be printed out or otherwise analyzed.

Version:
$Id: GraphLogger.java,v 1.15 2005年07月08日 19:55:08 cxh Exp $
Author:
Michael Shilman
Accepted Rating:
Red

Constructor Summary
GraphLogger()
Method Summary
void edgeHeadChanged(GraphEvent e)
Add this event to the log.
void edgeTailChanged(GraphEvent e)
Add this event to the log.
java.util.Iterator iterator()
Return a sequentially-sorted iterator over the GraphEvent objects contained by the log.
void nodeAdded(GraphEvent e)
Add this event to the log.
void nodeRemoved(GraphEvent e)
Add this event to the log.
void structureChanged(GraphEvent e)
Add this event to the log.
java.lang.String toString()
Print the contents of the log into a string.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

GraphLogger

public GraphLogger()
Method Detail

edgeHeadChanged

public void edgeHeadChanged(GraphEvent e)
Add this event to the log.

Specified by:
edgeHeadChanged in interface GraphListener

edgeTailChanged

public void edgeTailChanged(GraphEvent e)
Add this event to the log.

Specified by:
edgeTailChanged in interface GraphListener

nodeAdded

public void nodeAdded(GraphEvent e)
Add this event to the log.

Specified by:
nodeAdded in interface GraphListener

nodeRemoved

public void nodeRemoved(GraphEvent e)
Add this event to the log.

Specified by:
nodeRemoved in interface GraphListener

structureChanged

public void structureChanged(GraphEvent e)
Add this event to the log.

Specified by:
structureChanged in interface GraphListener

iterator

public java.util.Iterator iterator()
Return a sequentially-sorted iterator over the GraphEvent objects contained by the log.


toString

public java.lang.String toString()
Print the contents of the log into a string.


Overview Package Class Tree Deprecated Index Help
PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

AltStyle によって変換されたページ (->オリジナル) /