|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.argouml.uml.diagram.UmlDiagramRenderer
org.argouml.uml.diagram.use_case.ui.UseCaseDiagramRenderer
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 --- FigUseCaseProvides
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.
Field Summary | |
private static Logger |
LOG
|
(package private) static long |
serialVersionUID
|
Constructor Summary | |
UseCaseDiagramRenderer()
|
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. |
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. |
private void |
setDestPort(org.tigris.gef.presentation.FigEdge edge,
org.tigris.gef.presentation.FigNode dest)
|
private void |
setSourcePort(org.tigris.gef.presentation.FigEdge edge,
org.tigris.gef.presentation.FigNode source)
|
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 |
private static final Logger LOG
static final long serialVersionUID
Constructor Detail |
public UseCaseDiagramRenderer()
Method Detail |
public org.tigris.gef.presentation.FigNode getFigNodeFor(org.tigris.gef.graph.GraphModel gm, org.tigris.gef.base.Layer lay, Object node, Map styleAttributes)
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)styleAttributes
- an optional map of attributes to style the fig
null
if we can't create
one.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 it's very related to it. Deal with each of the edge types in turn.
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)styleAttributes
- an optional map of attributes to style the fig
null
if we can't create
one.org.tigris.gef.graph.GraphEdgeRenderer#getFigEdgeFor(
org.tigris.gef.graph.GraphModel, org.tigris.gef.base.Layer,
java.lang.Object)
private void setSourcePort(org.tigris.gef.presentation.FigEdge edge, org.tigris.gef.presentation.FigNode source)
private void setDestPort(org.tigris.gef.presentation.FigEdge edge, org.tigris.gef.presentation.FigNode dest)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20050222) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |