org.argouml.uml.diagram.collaboration.ui
Class CollabDiagramRenderer

java.lang.Object
  extended byorg.argouml.uml.diagram.UmlDiagramRenderer
      extended byorg.argouml.uml.diagram.collaboration.ui.CollabDiagramRenderer
All Implemented Interfaces:
org.tigris.gef.graph.GraphEdgeRenderer, org.tigris.gef.graph.GraphNodeRenderer, Serializable

public class CollabDiagramRenderer
extends UmlDiagramRenderer

This class defines a renderer object for UML Collaboration Diagrams. In a collaboration Diagram the following UML objects are displayed with the following Figs:

   UML Object       ---  Fig
   ---------------------------------------
   MClassifierRole  ---  FigClassifierRole
   MMessage         ---  FigMessage
   MComment         ---  FigComment
 

Provides getFigNodeFor(org.tigris.gef.graph.GraphModel, org.tigris.gef.base.Layer, java.lang.Object, java.util.Map) to implement the GraphNodeRenderer interface and getFigEdgeFor(org.tigris.gef.graph.GraphModel, org.tigris.gef.base.Layer, java.lang.Object, java.util.Map) to implement the GraphEdgeRenderer interface.

Note. Should be implemented as a singleton - we don't really need a separate instance for each use case diagram.

See Also:
Serialized Form

Field Summary
private static Logger LOG
           
 
Constructor Summary
CollabDiagramRenderer()
           
 
Method Summary
 org.tigris.gef.presentation.FigEdge getFigEdgeFor(org.tigris.gef.graph.GraphModel gm, org.tigris.gef.base.Layer lay, Object edge, Map styleAttributes)
          Return a Fig that can be used to represent the given edge, Generally the same code as for the ClassDiagram, since its very related to it.
 org.tigris.gef.presentation.FigNode getFigNodeFor(org.tigris.gef.graph.GraphModel gm, org.tigris.gef.base.Layer lay, Object node, Map styleAttributes)
          Return a Fig that can be used to represent the given node
 
Methods inherited from class org.argouml.uml.diagram.UmlDiagramRenderer
getFigEdgeFor, getFigNodeFor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static final Logger LOG
Constructor Detail

CollabDiagramRenderer

public CollabDiagramRenderer()
Method Detail

getFigNodeFor

public org.tigris.gef.presentation.FigNode getFigNodeFor(org.tigris.gef.graph.GraphModel gm,
                                                         org.tigris.gef.base.Layer lay,
                                                         Object node,
                                                         Map styleAttributes)
Return a Fig that can be used to represent the given node

See Also:
org.tigris.gef.graph.GraphNodeRenderer#getFigNodeFor( org.tigris.gef.graph.GraphModel, org.tigris.gef.base.Layer, java.lang.Object)

getFigEdgeFor

public org.tigris.gef.presentation.FigEdge getFigEdgeFor(org.tigris.gef.graph.GraphModel gm,
                                                         org.tigris.gef.base.Layer lay,
                                                         Object edge,
                                                         Map styleAttributes)
Return a Fig that can be used to represent the given edge, Generally the same code as for the ClassDiagram, since its very related to it.

See Also:
org.tigris.gef.graph.GraphEdgeRenderer#getFigEdgeFor( org.tigris.gef.graph.GraphModel, org.tigris.gef.base.Layer, java.lang.Object)


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