org.argouml.uml.diagram.use_case.ui
Class UseCaseDiagramRenderer

java.lang.Object
  |
  +--org.argouml.uml.diagram.use_case.ui.UseCaseDiagramRenderer

public class UseCaseDiagramRenderer
extends java.lang.Object

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

   UML Object       ---  Fig
   ---------------------------------------
   MActor           ---  FigActor
   MUseCase         ---  FigUseCase
 

Provides getFigNodeFor(GraphModel, Layer, java.lang.Object) to implement the GraphNodeRenderer interface and getFigEdgeFor(GraphModel, Layer, java.lang.Object) 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.


Field Summary
protected static Logger cat
           
(package private) static long serialVersionUID
           
 
Constructor Summary
UseCaseDiagramRenderer()
           
 
Method Summary
 FigEdge getFigEdgeFor(GraphModel gm, Layer lay, java.lang.Object edge)
          Return a Fig that can be used to represent the given edge.
 FigNode getFigNodeFor(GraphModel gm, Layer lay, java.lang.Object node)
          Return a Fig that can be used to represent the given node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cat

protected static Logger cat

serialVersionUID

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

UseCaseDiagramRenderer

public UseCaseDiagramRenderer()
Method Detail

getFigNodeFor

public FigNode getFigNodeFor(GraphModel gm,
                             Layer lay,
                             java.lang.Object node)

Return a Fig that can be used to represent the given node.

Parameters:
gm - The graph model for which we are rendering.
lay - The layer in the graph on which we want this figure.
node - The node to be rendered (an NSUML object)
Returns:
The fig to be used, or null if we can't create one.

getFigEdgeFor

public FigEdge getFigEdgeFor(GraphModel gm,
                             Layer lay,
                             java.lang.Object edge)

Return a Fig that can be used to represent the given edge.

Generally the same code as for the ClassDiagram, since it's very related to it. Deal with each of the edge types in turn.

Parameters:
gm - The graph model for which we are rendering.
lay - The layer in the graph on which we want this figure.
edge - The edge to be rendered (an NSUML object)
Returns:
The fig to be used, or null if we can't create one.


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