org.argouml.ui
Class ArgoDiagram

java.lang.Object
  extended byorg.tigris.gef.base.Diagram
      extended byorg.argouml.ui.ArgoDiagram
All Implemented Interfaces:
java.util.EventListener, org.tigris.gef.graph.GraphListener, java.io.Serializable
Direct Known Subclasses:
DiagramHelper, UMLDiagram

public class ArgoDiagram
extends org.tigris.gef.base.Diagram

See Also:
Serialized Form

Field Summary
(package private)  ItemUID _id
           
(package private) static long serialVersionUID
           
protected static ArgoDiagram TheInstance
           
 
Fields inherited from class org.tigris.gef.base.Diagram
_comments, _name, _toolBar, NAME_KEY, SCALE_KEY
 
Constructor Summary
ArgoDiagram()
           
ArgoDiagram(java.lang.String diagramName)
           
 
Method Summary
 void addChangeRegistryAsListener(ChangeRegistry change)
           
 void damage()
           
 org.tigris.gef.presentation.Fig getContainingFig(java.lang.Object obj)
          Finds the presentation (the Fig) for some object.
 java.util.Collection getEdges(java.util.Collection c)
           
 ItemUID getItemUID()
           
 java.util.Vector getNodes()
          Deprecated. 0.15.3 in favour of getNodes(Collection)
 java.util.Collection getNodes(java.util.Collection c)
           
 java.lang.String getVetoMessage(java.lang.String propertyName)
          TODO: The reference to the method org.argouml.uml.ui.VetoablePropertyChange#getVetoMessage(String) was here but the class does exist anymore.
 void initialize(java.lang.Object owner)
           
 void removeChangeRegistryAsListener(ChangeRegistry change)
           
 void setItemUID(ItemUID id)
           
 void setName(java.lang.String n)
           
 java.lang.String toString()
           
 
Methods inherited from class org.tigris.gef.base.Diagram
add, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, bringForward, bringToFront, countContained, edgeAdded, edgeRemoved, elements, elementsIn, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getClassAndModelID, getComments, getGraphController, getGraphModel, getLayer, getName, getScale, getShowSingleMultiplicity, getToolBar, graphChanged, hit, initToolBar, nodeAdded, nodeRemoved, postLoad, postSave, preSave, presentationFor, remove, remove, removeAll, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, reorder, sendBackward, sendToBack, setComments, setGraphModel, setLayer, setScale, setShowSingleMultiplicity, setToolBar
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_id

ItemUID _id

TheInstance

protected static ArgoDiagram TheInstance

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

ArgoDiagram

public ArgoDiagram()

ArgoDiagram

public ArgoDiagram(java.lang.String diagramName)
Method Detail

setName

public void setName(java.lang.String n)
             throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

setItemUID

public void setItemUID(ItemUID id)

getItemUID

public ItemUID getItemUID()

addChangeRegistryAsListener

public void addChangeRegistryAsListener(ChangeRegistry change)

removeChangeRegistryAsListener

public void removeChangeRegistryAsListener(ChangeRegistry change)

getVetoMessage

public java.lang.String getVetoMessage(java.lang.String propertyName)
TODO: The reference to the method org.argouml.uml.ui.VetoablePropertyChange#getVetoMessage(String) was here but the class does exist anymore. Where is it?

Parameters:
propertyName - is the name of the property
Returns:
a message or null if not applicable.

getContainingFig

public org.tigris.gef.presentation.Fig getContainingFig(java.lang.Object obj)
Finds the presentation (the Fig) for some object. If the object is a modelelement that is contained in some other modelelement that has its own fig, that fig is returned. It extends presentationFor that only gets the fig belonging to the node obj.

Parameters:
obj - is th object
Returns:
the Fig for the object

initialize

public void initialize(java.lang.Object owner)
See Also:
Diagram.initialize(Object)

damage

public void damage()

getEdges

public java.util.Collection getEdges(java.util.Collection c)
See Also:
Diagram.getEdges(Collection)

getNodes

public java.util.Vector getNodes()
Deprecated. 0.15.3 in favour of getNodes(Collection)


getNodes

public java.util.Collection getNodes(java.util.Collection c)
See Also:
Diagram.getNodes(Collection)

toString

public java.lang.String toString()


ArgoUML © 1996-2004 (20040316)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook