org.argouml.util
Class ChangeRegistry

java.lang.Object
  |
  +--org.argouml.util.ChangeRegistry
All Implemented Interfaces:
java.util.EventListener, org.tigris.gef.graph.GraphListener
Direct Known Subclasses:
UMLChangeRegistry

public class ChangeRegistry
extends java.lang.Object
implements org.tigris.gef.graph.GraphListener

This class holds the information about the saving state of the current project. The state is changed by every change made to its diagrams.

See Also:
Project

Field Summary
protected  boolean changeFlag
           
 
Constructor Summary
ChangeRegistry()
           
 
Method Summary
 void edgeAdded(org.tigris.gef.graph.GraphEvent e)
           
 void edgeRemoved(org.tigris.gef.graph.GraphEvent e)
           
 void graphChanged(org.tigris.gef.graph.GraphEvent e)
           
 boolean hasChanged()
           
 void nodeAdded(org.tigris.gef.graph.GraphEvent e)
           
 void nodeRemoved(org.tigris.gef.graph.GraphEvent e)
           
 void setChangeFlag(boolean newValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

changeFlag

protected boolean changeFlag
Constructor Detail

ChangeRegistry

public ChangeRegistry()
Method Detail

setChangeFlag

public void setChangeFlag(boolean newValue)

hasChanged

public boolean hasChanged()

nodeAdded

public void nodeAdded(org.tigris.gef.graph.GraphEvent e)
Specified by:
nodeAdded in interface org.tigris.gef.graph.GraphListener

edgeAdded

public void edgeAdded(org.tigris.gef.graph.GraphEvent e)
Specified by:
edgeAdded in interface org.tigris.gef.graph.GraphListener

nodeRemoved

public void nodeRemoved(org.tigris.gef.graph.GraphEvent e)
Specified by:
nodeRemoved in interface org.tigris.gef.graph.GraphListener

edgeRemoved

public void edgeRemoved(org.tigris.gef.graph.GraphEvent e)
Specified by:
edgeRemoved in interface org.tigris.gef.graph.GraphListener

graphChanged

public void graphChanged(org.tigris.gef.graph.GraphEvent e)
Specified by:
graphChanged in interface org.tigris.gef.graph.GraphListener


ArgoUML (c) 1996-2002
ArgoUML Project Home
ArgoUML Cookbook