org.argouml.uml.diagram
Class UmlDiagramRenderer

java.lang.Object
  extended by org.argouml.uml.diagram.UmlDiagramRenderer
Direct Known Subclasses:
ClassDiagramRenderer, CollabDiagramRenderer, DeploymentDiagramRenderer, SequenceDiagramRenderer, StateDiagramRenderer, UseCaseDiagramRenderer

public abstract class UmlDiagramRenderer
extends java.lang.Object

Factory methods to create Figs based an model elements with supplementary data provided by a map of name value pairs.

Provides org.tigris.gef.graph.GraphNodeRenderer#getFigNodeFor( Object, int, int, Map) to implement the GraphNodeRenderer interface and org.tigris.gef.graph.GraphEdgeRenderer#getFigEdgeFor(Object, Map) to implement the GraphEdgeRenderer interface.


Constructor Summary
UmlDiagramRenderer()
           
 
Method Summary
 FigEdge getFigEdgeFor(java.lang.Object edge, java.util.Map styleAttributes)
          Deprecated. for 0.27.3 by tfmorris. Use method of same name which takes a GraphModel argument in the subclasses of this class.
 FigNode getFigNodeFor(java.lang.Object node, int x, int y, java.util.Map styleAttributes)
          Deprecated. for 0.27.3 by tfmorris. Only used by DiagramFactory#createRenderingElement(Object, Object) which is itself unused (and now deprecated).
protected  FigNode getFigNodeForAssociationEnd(ArgoDiagram diagram, java.lang.Object associationEnd)
           
protected  void setPorts(Layer layer, FigEdge newEdge)
          Find the Figs in the given layer that should be the source and destination and attach these to either end of the FigEdge
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UmlDiagramRenderer

public UmlDiagramRenderer()
Method Detail

getFigNodeFor

@Deprecated
public FigNode getFigNodeFor(java.lang.Object node,
                                        int x,
                                        int y,
                                        java.util.Map styleAttributes)
Deprecated. for 0.27.3 by tfmorris. Only used by DiagramFactory#createRenderingElement(Object, Object) which is itself unused (and now deprecated).


getFigEdgeFor

@Deprecated
public FigEdge getFigEdgeFor(java.lang.Object edge,
                                        java.util.Map styleAttributes)
Deprecated. for 0.27.3 by tfmorris. Use method of same name which takes a GraphModel argument in the subclasses of this class.

See Also:
org.tigris.gef.graph.GraphEdgeRenderer#getFigEdgeFor(java.lang.Object, java.util.Map)

setPorts

protected final void setPorts(Layer layer,
                              FigEdge newEdge)
Find the Figs in the given layer that should be the source and destination and attach these to either end of the FigEdge

Parameters:
layer - the layer to look for the FigNodes
newEdge - The edge to attach

getFigNodeForAssociationEnd

protected FigNode getFigNodeForAssociationEnd(ArgoDiagram diagram,
                                              java.lang.Object associationEnd)


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook