org.argouml.ui
Class ArgoDiagram

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

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

This class represents all Diagrams within ArgoUML. It is based upon the GEF Diagram.

See Also:
Serialized Form

Field Summary
private  ItemUID id
           
(package private) static long serialVersionUID
           
private static ArgoDiagram theInstance
          Hack to use vetocheck in constructing names.
 
Fields inherited from class org.tigris.gef.base.Diagram
_comments, _name, _toolBar, NAME_KEY, SCALE_KEY
 
Constructor Summary
ArgoDiagram()
          The constructor.
ArgoDiagram(String diagramName)
          The constructor.
 
Method Summary
 void damage()
          This will mark the entire visible area of all Editors to be repaired from any damage - i.e.
 org.tigris.gef.presentation.Fig getContainingFig(Object obj)
          Finds the presentation (the Fig) for some object.
 Collection getEdges(Collection c)
           
 ItemUID getItemUID()
           
 Collection getNodes(Collection c)
           
 String getVetoMessage(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(Object owner)
           
 void setItemUID(ItemUID i)
           
 void setName(String n)
           
 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

private ItemUID id

theInstance

private static ArgoDiagram theInstance
Hack to use vetocheck in constructing names.


serialVersionUID

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

ArgoDiagram

public ArgoDiagram()
The constructor.


ArgoDiagram

public ArgoDiagram(String diagramName)
The constructor.

Parameters:
diagramName - the name of the diagram
Method Detail

setName

public void setName(String n)
             throws PropertyVetoException
Throws:
PropertyVetoException
See Also:
Diagram.setName(java.lang.String)

setItemUID

public void setItemUID(ItemUID i)
Parameters:
i - the new id

getItemUID

public ItemUID getItemUID()
Returns:
the item UID

getVetoMessage

public String getVetoMessage(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? This method is never used!

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

getContainingFig

public org.tigris.gef.presentation.Fig getContainingFig(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(Object owner)
See Also:
Diagram.initialize(Object)

damage

public void damage()
This will mark the entire visible area of all Editors to be repaired from any damage - i.e. repainted.


getEdges

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

getNodes

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

toString

public String toString()
See Also:
Object.toString()


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